So you want to know how to hack a WiFi password using CMD (command prompt) in windows? Well this is possible providing that you have previously connected to the WiFi network on your laptop.
However, you should only experiment with this on your neighbours or friends who have given you prior permission to do so. This guide is meant for educational purposes only and is completely illegal. It is however a good way to find out the password to your own WiFi network if you can't remember it due to its length or complexity.
If you really want to deep dive into hacking WiFi networks and obtaining passwords, I recommend reading How to Hack Wireless Network (Amazon).
Does this work for all routers?
This method will not work for all routers but it will work on WiFi devices that have old hardware (modems and routers). In general, there are two types of WiFi security:
Wired Equivalent Privacy (WEP)
Wired Equivalent Privacy (WEP) is the most widely used WiFi security algorithm in the world. This is a function of age, backwards compatibility, and the fact that it appears first in the encryption type selection menus in many router control panels. Even though WEP uses 128 bit and 256-bit encryption, the system is highly vulnerable and systems that rely on WEP should be upgraded or, if security upgrades are not an option, replaced. This tutorial will enable you to get into 128-bit encryption and hack the WiFi password using the command prompt.
WiFi Protected Access (WPA)
WiFi Protected Access was the WiFi Alliance’s direct response and replacement to the increasingly apparent vulnerabilities of the WEP standard. It was first used in 2003 and uses a 256-bit encryption model which is tough to hack. WAP2 is an updated version of WAP and was introduced in 2006. Since then it has replaced WAP and is now been used mostly in offices and colleges worldwide.
So hacking into a WiFi device is not always easy and this guide requires you to convince your victim to connect their WiFi to your PC or laptop. Having said that, it could enable you to access other remote systems or devices even once you have disconnected from their WiFi.
Here we go:
Open windows command prompt as Administrator
Type: netsh wlan show profiles
Type netsh wlan show profiles (The Name of the WiFi You Selected to Hack) key=clear
In my example, I entered netsh wlan show profiles BTHub5-G9RS key=clear
Then look for "Security Settings" and next to "Key Content" is the WiFi password. I've hidden mine for obvious reasons in the above image ;)