Skip to content

Instantly share code, notes, and snippets.

@mbierman
Created March 31, 2016 16:17
Show Gist options
  • Select an option

  • Save mbierman/11d7a2b9ba653e5b3895c46b7df2eaf4 to your computer and use it in GitHub Desktop.

Select an option

Save mbierman/11d7a2b9ba653e5b3895c46b7df2eaf4 to your computer and use it in GitHub Desktop.
Get the wifi password from an OSX machine
#!/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