Created
March 31, 2016 16:17
-
-
Save mbierman/11d7a2b9ba653e5b3895c46b7df2eaf4 to your computer and use it in GitHub Desktop.
Get the wifi password from an OSX machine
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
| #!/usr/bin/env bash | |
| export DISPLAY=:0:0 | |
| security find-generic-password -ga "$1" | grep "password:" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment