Skip to content

Instantly share code, notes, and snippets.

@weiland
Created July 21, 2015 07:56
Show Gist options
  • Save weiland/5cd42e574d6f107806e3 to your computer and use it in GitHub Desktop.
Save weiland/5cd42e574d6f107806e3 to your computer and use it in GitHub Desktop.
Show current wifi password (on mac)

Show wifi password

SSID="$(networksetup -getairportnetwork en0 | cut -c 24-)"
security find-generic-password -ga $SSID | grep password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment