Created
September 18, 2018 16:45
-
-
Save m4l1c3/b5d413d254c558624f0503a7b47e1fd1 to your computer and use it in GitHub Desktop.
I found this on pastebin, not the author putting here in case it disappears. Original: https://pastebin.com/MuUdJaG7
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 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment