Skip to content

Instantly share code, notes, and snippets.

@earljon
Created August 12, 2018 07:29
Show Gist options
  • Save earljon/a62b095ad11dda81e716b351c86d1fa0 to your computer and use it in GitHub Desktop.
Save earljon/a62b095ad11dda81e716b351c86d1fa0 to your computer and use it in GitHub Desktop.
Show Saved WiFi Password for OSX and Windows
On Windows:
--------------
1. Open netsh in Command Prompt (Admin)
2. Show all Available WiFi or SSID: netsh> wlan show profile
3. Based on chosen SSID, show its password: netsh> wlan show profile <SSID_NAME_HERE> key=clear
4. The terminal will display your chosen SSID's password in plain text.
Alternatively via GUI, you could just tick the checkbox that says Show Password in Network Connections for each Wireless Networks you're currently connected to.
On OSX:
--------------
REQUIRES: Administrator privileges
1. Open Terminal and type: (Replacing SSID for the name of the WiFi)
$ security find-generic-password -ga SSID | grep password
or this:
$ security find-generic-password -wa SSID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment