Created
September 9, 2020 12:51
-
-
Save xiongnemo/dc79fb585c8ade3eee9b602e11fce639 to your computer and use it in GitHub Desktop.
Powershell script revealing saved WLAN passwords (https://twitter.com/Intel80x86/status/1303636194589372416)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment