rauchg / wifi-password

Get the password of the wifi you're on (bash)
4.41k stars 237 forks source link

Make sure you get the wifi password #5

Closed bramus closed 7 years ago

bramus commented 9 years ago

If you have an item in your keychain having the same name as the SSID it will not show you the SSID password, but the one from that item.

To enforce returning the wifi password, one must add the -D 'AirPort network password' to /usr/bin/security (ref: http://apple.stackexchange.com/a/64678).

rauchg commented 7 years ago

Great find @bramus. Thank you!