Skip to content

Instantly share code, notes, and snippets.

@BruceWind
Last active May 4, 2021 13:57
Show Gist options
  • Save BruceWind/5e9337ea92813d7d79e5316c9a2bc45a to your computer and use it in GitHub Desktop.
Save BruceWind/5e9337ea92813d7d79e5316c9a2bc45a to your computer and use it in GitHub Desktop.
detect your wifi password from wifi records.

On Mac OS, you should execute:

security find-generic-password -D "AirPort network password" -a $SSID -g | grep "password:"

On Linux, you should execute:

sudo cat /etc/NetworkManager/system-connections/{$SSID}.nmconnection | grep "psk="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment