Skip to content

Instantly share code, notes, and snippets.

@fastfingertips
Created March 10, 2022 12:46
Show Gist options
  • Save fastfingertips/7bb614dc5794f2fb64d6e06f8c9dc40c to your computer and use it in GitHub Desktop.
Save fastfingertips/7bb614dc5794f2fb64d6e06f8c9dc40c to your computer and use it in GitHub Desktop.
lists saved wlan passwords
(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
@fastfingertips
Copy link
Author

fastfingertips commented Jun 5, 2023

Once you have PowerShell open, paste the following command and press Enter: IEX (Invoke-WebRequest -Uri "gg.gg/pswlan").Content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment