Skip to content

Instantly share code, notes, and snippets.

@overplumbum
Created March 19, 2013 17:15
Show Gist options
  • Save overplumbum/5198061 to your computer and use it in GitHub Desktop.
Save overplumbum/5198061 to your computer and use it in GitHub Desktop.
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | python -c "import sys; d = (l.split(':', 1) for l in sys.stdin); d = dict((k.lstrip(), v.strip()) for k, v in d); print d['SSID'] + '\t' + d['BSSID']"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment