Computer
WiFi Passwords
So you forgot the WiFi password of your own network or even need to know all WiFi Networks your computer has connected (with their password).
On Windows, use this PowerShell command.
(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]@{ Network=$name; Password=$pass } } |
Format-Table -AutoSize
On MacOs, use this terminal command to find an especific WiFi Network's password. Usualy you will be prompted to enter an adnistrator user and password.
security find-generic-password -ga "WiFi Network Name" | grep "password:"
USE IT AT YOUR OWN RISK!