Kali Linux can be used for many things, but it probably is best known for its ability to lớn penetration thử nghiệm, or “haông chồng,” WPA and WPA2 networks. There are hundreds of Windows applications that clayên ổn they can hack WPA; don’t get them! They’re just scams, used by professional hackers, to lớn lure newbie or wannabe hackers into getting hacked themselves. There is only one way that hackers get into lớn your network, và that is with a Linux-based OS, a wireless thẻ capable of monitor mode, và aircrack-ng or similar. Also note that, even with these tools, Wi-Fi cracking is not for beginners. Playing with it requires basic knowledge of how WPA authentication works, and moderate familiarity with Kali Linux & its tools. If you feel you have the necessary skills, let’s begin:
These are things that you’ll need:A successful install of Kali Linux (which you probably have sầu already done). If not, follow my tutorial here: http://lewiscomputerhowkhổng lồ.tudaimynhan.vn.com/complete-guide-on-how-to-install-kali.html A wireless adapter capable of injection/monitor mode. Some computers have network cards capable of this from the factory. If you’re, like most however, you’ll have to buy an external one. Here is a danh mục of the best: http://blackmoreops.com/recommended-usb-wireless-cards-kali-linux A wordlist lớn attempt to “crack” the password once it has been captured Time và patients
If you have sầu these then roll up your sleeves & let’s see how secure your network is!
Important notice: Hacking into anyone’s Wi-Fi without permission is considered an illegal act or crime in most countries. We are performing this tutorial for the sake of penetration testing, hacking lớn become more secure, and are using our own kiểm tra network and router.
By reading and/or using the information below, you are agreeing lớn our Disclaimer
Start Kali Linux and login, preferably as root.
Bạn đang xem: Cách hack mật khẩu wifi với aircrack
Plugin your injection-capable wireless adapter, (Unless your native computer wireless thẻ supports it). If you’re using Kali in VMware, then you might have sầu khổng lồ connect the thẻ via the
Disconnect from all wireless networks, open a Terminal, & type airmon-ng
This will list all of the wireless cards that support monitor (not injection) mode. If no cards are listed, try disconnecting and reconnecting the adapter (if you’re using one) & kiểm tra that it supports monitor mode. If you’re not using an external adapter, and you still don’t see anything listed, then your thẻ doesn’t tư vấn monitor mode, & you’ll have khổng lồ purchase an external one (see the liên kết in the requirements). You can see here that my thẻ supports monitor mode và that it’s listed as wlan0.
Type airmon-ng start followed by the interface name of your wireless card. mine is wlan0, so my command would be: airmon-ng start wlan0
The “(monitor mode enabled)” message means that the thẻ has successfully been put into lớn monitor mode. Note the name of the new monitor interface, mon0.
EDIT:A bug recently discovered in Kali Linux makes airmon-ng set the channel as a fixed “-1” when you first enable mon0. If you receive this error, or simply do not want khổng lồ take the chance, follow these steps after enabling mon0:
Type airodump-ng followed by the name of the new monitor interface, which is probably mon0.
If you receive sầu a “fixed channel –1” error, see the Edit above sầu.
Airodump will now danh mục all of the wireless networks in your area, và a lot of useful information about them. Locate your network or the network that you have permission to penetration test. Once you’ve sầu spotted your network on the ever-populating menu, hit Ctrl + C on your keyboard to stop the process. lưu ý the channel of your target network.
Copy the BSSID of the target network
Now type this command: airodump-ng -c
Now press enter.
Airodump with now monitor only the target network, allowing us to lớn capture more specific information about it. What we’re really doing now is waiting for a device to connect or reconnect to the network, forcing the router khổng lồ sover out the four-way handshake that we need lớn capture in order to crack the password. Also, four files should show up on your desktop, this is where the handshake will be saved when captured, so don’t delete them!
But we’re not really going to wait for a device to lớn connect, no, that’s not what impatient hackers vị. We’re actually going to use another cool-tool that belongs to the aircraông chồng suite called aireplay-ng, to tốc độ up the process. Instead of waiting for a device lớn connect, hackers can use this tool khổng lồ force a device khổng lồ reconnect by sending deauthentication (deauth) packets to lớn one of the networks devices, making it think that it has to reconnect with the network.
Of course, in order for this tool to lớn work, there has lớn be someone else connected to lớn the network first, so watch the airodump-ng and wait for a client to show up. It might take a long time, or it might only take a second before the first one shows. If none show up after a lengthy wait, then the network might be empty right now, or you’re to lớn far away from the network.You can see in this picture, that a client has appeared on our network, allowing us to start the next step.
Leave airodump-ng running & open a second terminal. In this terminal, type this command:aireplay-ng –0 2 –a
My complete command looks like this: aireplay-ng –0 2 –a 00:14:BF:E0:E8:D5 –c 4C:EB:42:59:DE:31 mon0
Upon hitting Enter, you’ll see aireplay-ng sover the packets. If you were cthất bại enough khổng lồ the target client, and the deauthentication process works, this message will appear on the airodump screen (which you left open):
This means that the handshake has been captured, the password is in the hacker’s hands, in some form or another. You can cđại bại the aireplay-ng terminal và hit Ctrl + C on the airodump-ng terminal lớn stop monitoring the network, but don’t cthua kém it yet just incase you need some of the information later.
If you didn’t receive the “handshake message,” then something went wrong in the process of sending the packets. Unfortunately, a variety of things can go wrong. You might just be too far away, và all you need khổng lồ vì is move sầu closer. The device you’re attempting to lớn deauth might not be set to automatically reconnect, in which case you’ll either have khổng lồ try another device, or leave airodump on indefinitely until someone or something connects khổng lồ the network. If you’re very cchiến bại lớn the network, you could try a WiFi spoofing tool like wifi-honey, to try to fool the device into lớn thinking that you’re the router. However, keep in mind that this requires that you be significantly closer to the device than the router itself. So unless you happen khổng lồ be in your victim’s house, this is not recommended.
Do note that, despite your best efforts, there are many WPA networks that simply can’t be cracked by these tools. The network could be empty, or the password could be 64 characters long, etc.
This concludes the external part of this tutorial. From now on, the process is entirely between your computer, and those four files on your Desktop. Actually, it’s the .cap one, that is important. xuất hiện a new Terminal, and type in this command: aircrack-ng -a2 -b
-a is the method aircrachồng will use to craông chồng the handshake, 2=WPA method.-b stands for bssid, replace
My complete commvà looks like this:aircrack-ng –a2 –b 00:14:BF:E0:E8:D5 –w /root/wpa.txt /root/Desktop/*.cap
Now press Enter.
Aircrack-ng will now launch inkhổng lồ the process of cracking the password. However, it will only crack it if the password happens to be in the wordlist that you’ve selected. Sometimes, it’s not. If this is the case, you can try other wordlists. If you simply cannot find the password no matter how many wordlists you try, then it appears your penetration kiểm tra has failed, & the network is at least safe from basic brute-force attacks.
Cracking the password might take a long time depending on the kích thước of the worddanh sách. Mine went very quickly.
If the phrase is in the wordcác mục, then aircrack-ng will show it too you lượt thích this:
The passphrase to our test-network was “notsecure,” and you can see here that it was in the wordlist, & aircrachồng found it.
If you find the password without a decent struggle, then change your password, if it’s your network. If you’re penetration testing for someone, then tell them to change their password as soon as possible.