91 points · by vermontdevil · 11y ago · 44 comments
1. Go to Network Connections.
2. Right click the WiFi connection and click status.
3. Click Wireless Properties
4. Click on the Security Tab, and then click Show Characters.
This doesn't feel very secure at all.
Say I have a party and the neighbor comes over. A few seconds on my unattended computer and they can use my Internet.
I only wish there was a way to view this on iOS...
$ npm i -g wifi-password && wifi-password
https://github.com/kevva/wifi-password#cliThese profiles are located in /etc/netctl, so cat-ing the correct file under sudo will give you it.
This will be a concat-d list of all profiles in a pager: `sudo cat /etc/netctl/* | less`.
Connection configuration, including plain text passwords, are stored in /etc/NetworkManager/system-connections/ for connections that are available to all users. They are readable by root only, obviously. Otherwise the password is stored in your keyring (e.g. Gnome Keyring under Gnome).
sudo grep psk= /etc/NetworkManager/system-connections/*From a terminal as root you can
cat /etc/wicd/wireless-settings.conf
and find the password in the file.depends on the type of linux :)
EDIT: if it has to be the current network, something like this horrible bash oneliner: sudo vim /etc/netctl/$(ifconfig | grep UP | grep RUNNING | grep BROADCAST | cut -d: -f1)-$(iwconfig 2>/dev/null | grep ESSID | cut -d: -f2 | sed -e 's/"//g')
myuser@[~]$ security find-generic-password -ga MySSID | grep password
password: "password"
"desc"<blob>="AirPort network password"
(Obviously I've changed the values here, but this is what it outputs for me.)To find your current SSID:
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I | grep " SSID"
By modern standards the authentication protocol used in WPA2-PSK is dire. You should use long random keys (something like 9oc46NLMbq7ujAEgXcQU), anything dictionary based puts you at real risk.
The most you can get from doing that, is 2 parts of a 4-way handshake (which is enough to mount an an offline attack).
EDIT: Be sure you put your browser in private browsing mode first so you can't be reverse hacked!