Skip to content

Instantly share code, notes, and snippets.

@dardo82
Last active January 9, 2019 14:30
Show Gist options
  • Save dardo82/ae2d0035856548d7162bd065cc59f2d2 to your computer and use it in GitHub Desktop.
Save dardo82/ae2d0035856548d7162bd065cc59f2d2 to your computer and use it in GitHub Desktop.
Find Wi-Fi password
#!/bin/sh
airport="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport"
security find-generic-password -w -a $($airport -I | awk '/ SSID: /{print $2}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment