Skip to content

Instantly share code, notes, and snippets.

@maldevel
Created January 24, 2018 09:58
Show Gist options
  • Save maldevel/9f8738ac04246496aaf7ed9149347b4b to your computer and use it in GitHub Desktop.
Save maldevel/9f8738ac04246496aaf7ed9149347b4b to your computer and use it in GitHub Desktop.
Dump WiFi passwords on Windows 10
(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
@lucascage96
Copy link

gfhshetgewrgtertqwrqwedwe

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