Added emptythevoid's BadUSB collection

This commit is contained in:
UberGuidoZ
2024-09-06 13:27:37 -07:00
parent 70856507e4
commit 24f5187975
56 changed files with 6279 additions and 0 deletions
@@ -0,0 +1,13 @@
Ducky scripts for the Flipper to automate the GUI for installing Windows 10 Pro, 22H2. Emphasis is on automation, not efficiency (longer delays than necessary)
Part 1 handles the intial setup, including removing any existing partitions and letting Windows create a new scheme.
Part 2 Handles the rest of the setup. It is configured to *always* click "I don't have internet", as trying to get Ducky Script to select the correct Wifi SSID from the list is unpredictable. NOTE: you have to choose in the script which version to run - the one where you have no wifi at all, or the one where you have wifi and at least one access point will show up when it scans for access points. This part also handles creation of the initial local user account. Make sure to fill in the STRINGs that contain the information required: User, Password, and three security answers (the script assumes these aren't important so it always selects the first one from the drop down - adjust as you desire)
Notes about timing: The script implicitly assumes that your computer is relatively fast with an SSD/NVME drive. If the timing is wrong, most commands will accidentally turn on voice assistant. That said, take care when the account is created. If it goes too quickly, it's possible that your password could be added as a user account!
TODO:
-Need to add optional code block for when Ethernet and/or Wifi is available (currently it operates under the assumption that internet isn't available)
-Probably need to set a standard longer delay for part 2, since so many Delay 100 is needed
@@ -0,0 +1,86 @@
REM Automate the first part of Windows 10 install.
REM Target: Windows 10 Pro 22H2
REM Emphasis is on automating the procedure, not efficiency (longer than necessary delays)
REM Start at the Language selection screen
REM Enter language and click Next. Assume defaults.
TAB
TAB
TAB
ENTER
DELAY 100
REM Click Install Now
ENTER
DELAY 20000
REM Windows license
SPACE
TAB
ENTER
DELAY 100
REM Type of install = Custom
TAB
ENTER
DELAY 500
REM Remove all partitions and start fresh
REM Note: If default partitions are absent, it still creates the partitions and completes
REM Defaults to "Primary"
TAB
TAB
ENTER
DELAY 100
LEFT
ENTER
DELAY 500
REM Now at System
TAB
TAB
ENTER
DELAY 100
LEFT
ENTER
DELAY 500
REM Now at "unallocated"
DOWN
REM now at "MSR"
TAB
TAB
ENTER
DELAY 100
LEFT
ENTER
DELAY 500
REM back at "unallocated"
DOWN
REM now at "recovery"
TAB
TAB
ENTER
DELAY 100
LEFT
ENTER
DELAY 15000
REM now at 100% unallocated. Click New
TAB
TAB
ENTER
DELAY 100
REM use all space (default)
TAB
ENTER
DELAY 100
REM notice about additional partitions
ENTER
DELAY 5000
REM press Next
TAB
TAB
TAB
TAB
TAB
ENTER
@@ -0,0 +1,156 @@
REM Automate second half of Windows 10 install
REM Target: Windows 10 Pro 22H2
REM Run this at the "Let's start with the region" screen
REM FLIPPER DOESN'T SUPPORT VARIABLES??
REM Enter in variables here for local user, password, and 3 security answers
REM VAR $USER =
REM VAR $PASSWORD =
REM VAR $RANDOM1 =
REM VAR $RANDOM2 =
REM VAR $RANDOM3 =
REM Defaults to United States
ENTER
DELAY 5000
REM Defaults to US keyboard layout
ENTER
DELAY 5000
REM Add second keyboard layout. Defaults to Skip
ENTER
DELAY 5000
REM No internet available, but assume wifi works and detects at least one access point
REM Need to insert a long delay in case it enumerates Wifi networks
DELAY 15000
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
REM Should be on "I don't have internet"
ENTER
DELAY 5000
REM No Internet Available, no wifi at all
REM TAB
REM ENTER
REM DELAY 5000
REM Continue with limited setup. Defaults to Connect Now
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
ENTER
DELAY 5000
REM Who's going to use this PC?
STRING
ENTER
DELAY 5000
REM Create a super memorable password
STRING
ENTER
DELAY 5000
REM Confirm password
STRING
ENTER
DELAY 5000
REM Security question 1
DOWN
TAB
STRING
ENTER
DELAY 5000
REM Security question 2
DOWN
TAB
STRING
ENTER
DELAY 5000
REM Security question 3
DOWN
TAB
STRING
ENTER
DELAY 5000
REM Skip face sign-in
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
ENTER
DELAY 5000
REM disable all privacy defaults
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
SPACE
DELAY 100
TAB
DELAY 100
SPACE
DELAY 100
TAB
DELAY 100
SPACE
DELAY 100
TAB
DELAY 100
SPACE
DELAY 100
TAB
DELAY 100
SPACE
DELAY 100
TAB
DELAY 100
SPACE
DELAY 100
ENTER
DELAY 5000
REM Just say No to Cortana
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
TAB
DELAY 100
ENTER