Skip to content

Commit

Permalink
feat: add display wifi password script
Browse files Browse the repository at this point in the history
  • Loading branch information
EscapeLife committed Oct 9, 2020
1 parent 7df92d8 commit b53d207
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/wifi_password.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# the command from http://bit.ly/2zWtUhQ
current_wifi=$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}')
security find-generic-password -a "$current_wifi" -g | tail -0

0 comments on commit b53d207

Please sign in to comment.