Created
July 31, 2015 07:43
-
-
Save ooooak/7778d5463974fa10f9d4 to your computer and use it in GitHub Desktop.
[unix]Get password from connected wifi connection linux
This file contains 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
# first we need the SSID | |
iwconfig | grep "ESSID\|SSID" | |
# now run this | |
sudo cat /etc/NetworkManager/system-connections/YOUR_SSID | grep "psk=" | |
Example | |
------------------ | |
> iwconfig | grep "ESSID\|SSID" | |
wlan0 IEEE ___ ESSID:"TP-Link" | |
> sudo cat /etc/NetworkManager/system-connections/TP-Link | grep "psk=" | |
psk=password | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment