How To Crack A Wi-Fi Network's WPA Password
How To Crack A Wi-Fi Network's WPA Password
In the first section of this post, I'll walk through the steps required to crack a
WPA password using Reaver. You can follow along with either the video or the
text below. After that, I'll explain how Reaver works, and what you can do to
protect your network against Reaver attacks.
At this point you should have BackTrack burned to a DVD, and you should
To boot into BackTrack, just put the DVD in your drive and boot your machine
from the disc. (Google around if you don't know anything about live
CDs/DVDs and need help with this part.) During the boot process, BackTrack
will prompt you to to choose the boot mode. Select "BackTrack Text - Default
Boot Text Mode" and press Enter.
Reaver has been added to the bleeding edge version of BackTrack, but it's not
yet incorporated with the live DVD, so as of this writing, you need to install
Reaver before proceeding. (Eventually, Reaver will simply be incorporated
with BackTrack by default.) To install Reaver, you'll first need to connect to a
Wi-Fi network that you have the password to.
apt-get update
And then, after the update completes:
In order to use Reaver, you need to get your wireless card's interface name,
the BSSID of the router you're attempting to crack (the BSSID is a unique
series of letters and numbers that identifies a router), and you need to make
sure your wireless card is in monitor mode. So let's do all that.
iwconfig
Press Enter. You should see a wireless device in the subsequent list. Most
likely, it'll be named wlan0, but if you have more than one wireless card, or a
more unusual networking setup, it may be named something different.
Put your wireless card into monitor mode: Assuming your wireless card's
interface name is wlan0, execute the following command to put your wireless
card into monitor mode:
Find the BSSID of the router you want to crack: Lastly, you need to get the
unique identifier of the router you're attempting to crack so that you can
point Reaver in the right direction. To do this, execute the following
command:
airodump-ng wlan0
(Note: If airodump-ng wlan0 doesn't work for you, you may want to try the
monitor interface insteade.g., airodump-ng mon0.)
You'll see a list of the wireless networks in rangeit'll look something like the
screenshot below:
When you see the network you want, press Ctrl+C to stop the list from
refreshing, then copy that network's BSSID (it's the series of letters, numbers,
and colons on the far left). The network should have WPA or WPA2 listed
under the ENC column. (If it's WEP, use our previous guide to cracking WEP
passwords.)
Now, with the BSSID and monitor interface name in hand, you've got
everything you need to start up Reaver.
Now execute the following command in the Terminal, replacing bssid and
moninterface with the BSSID and monitor interface and you copied down
above:
Also of note, you can also pause your progress at any time by pressing Ctrl+C
while Reaver is running. This will quit the process, but Reaver will save any
progress so that next time you run the command, you can pick up where you
left off-as long as you don't shut down your computer (which, if you're
running off a live DVD, will reset everything).
Now that you've seen how to use Reaver, let's take a quick overview of how
Reaver works. The tool takes advantage of a vulnerability in something called
Wi-Fi Protected Setup, or WPS. It's a feature that exists on many routers,
intended to provide an easy setup process, and it's tied to a PIN that's hardcoded into the device. Reaver exploits a flaw in these PINs; the result is that,
with enough time, it can reveal your WPA or WPA2 password.
Read more details about the vulnerability at Sean Gallagher's excellent post
on Ars Technica.
In a phone conversation, Craig Heffner said that the inability to shut this
vulnerability down is widespread. He and others have found it to occur with
every Linksys and Cisco Valet wireless access point they've tested. "On all of
the Linksys routers, you cannot manually disable WPS," he said. While the
Web interface has a radio button that allegedly turns off WPS configuration,
"it's still on and still vulnerable.
So that's kind of a bummer. You may still want to try disabling WPS on your
router if you can, and test it against Reaver to see if it helps.
You could also set up MAC address filtering on your router (which only allows
specifically whitelisted devices to connect to your network), but a sufficiently
savvy hacker could detect the MAC address of a whitelisted device and use
MAC address spoofing to imitate that computer.