views
Using Windows
Open CMD with administrator permissions (as an admin) on the connected device. Press ⊞ Win+R or go to your search bar, type cmd, right click and then select Run as administrator. Using this option requires being on the admin account on the device or at least having the admin password.
Type netsh wlan show profiles to get a list of networks. This command returns a list of networks that the device has previously connected to.
Choose the WiFi profile you’d like to get the password of.
Type "netsh wlan show profiles (profile-name) key=clear". Replace with the name of the profile you’d like the password of (if the profile is two words long put quotes around the name). This command is what returns the password along with a lot of other info.
Find “Security Key” within the list, It's usually under the “Security settings” header. The password is either “Security Key” or “Key content”. If not visible re-check if the WiFi connection is a WPA,WPA2, or WEP; you can find that in the first set of information paired with “Type”. If it's not any of those types, then the WiFi password either varies based on user or has an extra set of protection blocking public access.
Using MacOS
Open Terminal. Hover the mouse near the top of the desktop or screen. Find and click on the search icon you should see a pop up with greyed out text saying "Spotlight Search". An alternative way of opening Spotlight is ⌘ Cmd+Space.
Once Spotlight comes up, type terminal in place of the greyed out text.
Type the command security find-generic-password -wa your-wifi. Make sure to replace "your-wifi" with your WI name. You may have to enter your admin username and password. This command should return the WiFi password of the WiFi you're currently connected to, as long as you replace "your-wifi" with the WiFi you're already connected to.
Comments
0 comment