Last active
January 9, 2019 14:30
-
-
Save dardo82/ae2d0035856548d7162bd065cc59f2d2 to your computer and use it in GitHub Desktop.
Find Wi-Fi password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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