In the previous parts of this series, we’ve explored how Wi-Fi evolved, how wireless signals travel through the air, and how security protocols such as WEP, WPA, WPA2, and WPA3 protect wireless communication.
We’ve also established something important: strong encryption doesn’t automatically guarantee a secure wireless network.
But what does that look like in practice?
For this final part, we’re going hands-on with a WPA2 security assessment. We’ll capture wireless traffic, examine the Four-Way Handshake, prepare authentication material for Hashcat, and explore how a GPU can be used to evaluate password strength.
This is based on an experiment I performed using Kali Linux, an Alfa wireless adapter, and an NVIDIA RTX 4090 rented through RunPod.
The goal isn’t to break WPA2 encryption. It’s to understand how a weak password can undermine an otherwise secure wireless connection.
We’ll use a network we own or have explicit permission to test.
1. Setting Up the Lab
Before capturing anything, let’s look at what we need.
Our lab consists of three main components:
- A wireless access point: Configured with WPA2-Personal and a known test password.
- A client device: A laptop or smartphone that can connect to the access point.
- A Kali Linux machine: Used to capture and analyze wireless traffic.
For my experiment, I used an Alfa USB wireless adapter connected to Kali Linux.
Alfa adapters are popular in wireless security testing because several models support monitor mode and packet injection. However, you don’t necessarily need the same adapter I used.
What matters is that your wireless adapter supports the features required for the assessment.
Do you need an external wireless adapter?
Not necessarily.
If you’re running Kali Linux directly on your laptop, commonly called a bare-metal installation, your laptop’s built-in wireless network interface card (NIC) might already support monitor mode.
Some internal wireless chipsets can switch between managed mode, where they operate as normal Wi-Fi clients, and monitor mode, where they can capture raw 802.11 traffic.
If you’re running Kali inside VirtualBox or VMware, things are slightly different.
Virtual machines typically expose your laptop’s internal Wi-Fi connection as a virtual Ethernet interface. This means the guest operating system usually cannot directly control the wireless radio or switch it into monitor mode.
In that situation, a compatible USB wireless adapter passed through to the Kali virtual machine is usually the easiest solution.
Before purchasing an adapter, check its chipset and Linux driver compatibility. Not every wireless adapter supports monitor mode, and not every adapter that supports monitor mode also supports packet injection.
For our passive capture workflow, monitor mode is the essential capability.
2. Checking the Wireless Adapter
Let’s begin by identifying the wireless interfaces available to Kali Linux.
Open a terminal and run:
iw dev
This displays the wireless interfaces recognized by the system.
For example, your adapter might appear as wlan0, although interface names vary between systems.
Next, check the capabilities of your wireless hardware:
iw list
Under Supported interface modes, look for something similar to:
Supported interface modes:
* managed
* monitor
If monitor appears, your wireless adapter and current driver advertise support for monitor mode.
Switching to monitor mode
Before changing modes, check if there are any processes that might interfere with the adapter in monitor mode and kill them with the command
sudo airmon-ng check kill
Note: When you use this command , mostly it will disable your network manager.
Then run the command below to set the interface to monitor mode:
sudo airmon-ng start wlan0
Replace wlan0 with your actual interface name.
To confirm the change:
iw dev wlan0 info
Look for:
type monitor
Your adapter is now configured to observe raw wireless frames.
One thing to keep in mind: switching your laptop’s only wireless interface into monitor mode will normally disconnect it from the internet. If you need internet access during the experiment, consider using Ethernet or a second network adapter.

3. Observing Nearby Wireless Networks
(Gives Depth , but not really necessary a step to take)
Wireless access points periodically transmit management frames called beacon frames.
These frames advertise information about the network, including its SSID, supported data rates, channel, and security capabilities.
We can observe these frames using Wireshark.
For this experiment, we’ll focus on the access point configured for our lab.
First, identify the channel used by your test access point through its administrative interface.
sudo airodump-ng wlan0 #use this command to get the channel of the test access point
Then configure the wireless adapter to listen on that channel. For example, if your access point uses channel 6:
sudo iw dev wlan0 set channel 6
Now start capturing traffic:
sudo tshark -i wlan0 -w wifi-lab.pcapng
TShark will save the captured frames to wifi-lab.cap.
Let the capture run for a short period, then stop it with Ctrl+C.
Open the file in Wireshark and apply this display filter:
wlan.fc.type_subtype == 0x08
This displays beacon frames.
Select a beacon transmitted by your lab access point and expand the RSN information element.
For a typical WPA2-Personal network using AES-CCMP, you should see information resembling:
Pairwise Cipher Suite: AES (CCM)
Authentication Key Management: PSK
These fields tell us which security mechanisms the access point advertises.
Notice that we haven’t connected to the wireless network or decrypted any traffic. We’re simply examining information broadcast by the access point.
4. Capturing the WPA2 Four-Way Handshake
Now we move to the main part of the experiment.
As discussed in Part 3, WPA2 uses the Four-Way Handshake to establish the cryptographic keys required for protected communication.
The handshake occurs when a client establishes its WPA2 security association with an access point.
For our lab, we’ll capture this exchange by observing our own client reconnecting to our own access point.
First, make sure your adapter is listening on the correct channel.
Start a new capture:
sudo airodump-ng --bssid AA:BB:CC:DD:EE:FF -c 6 -w capture wlan0
While the capture is running, disconnect your test client from the lab Wi-Fi network and reconnect it normally.
Allow the connection to complete, then stop the capture.
Open capture-02.cap in Wireshark and apply the filter:
eapol
If the capture was successful, you should see EAPOL-Key messages exchanged between the access point and client.
The Four-Way Handshake consists of four messages:
- Message 1: The access point sends the ANonce.
- Message 2: The client responds with the SNonce and a Message Integrity Code (MIC).
- Message 3: The access point sends protected key information and a MIC.
- Message 4: The client acknowledges the exchange.
These messages help establish the keys used for encrypted communication.
An important detail is that the Wi-Fi password itself is never transmitted during the handshake.

Instead, the devices exchange cryptographic values that allow them to establish matching session keys.

5. Preparing the Capture for Hashcat
After capturing the handshake, the next step is to understand how the authentication material can be analyzed.
For my original experiment, the capture file contained approximately 22,995 wireless packets, including EAPOL authentication messages.
I used a utility called hcxpcapngtool, which belongs to the hcxtools suite, to extract suitable authentication material from the packet capture.
Hashcat uses a format known as WPA-PBKDF2-PMKID+EAPOL, identified by mode 22000.
hcxpcapngtool -o Lab_wifi_WPA2.hc22000 capture-02.cap
The resulting file commonly uses the .hc22000 extension.
For readers examining the format, the important point is that a packet capture and a Hashcat authentication record serve different purposes.
A packet capture contains raw network traffic, while a Hashcat record contains selected authentication values needed for password verification.
The conversion does not decrypt the network or reveal the password.
It simply prepares the relevant information for analysis.
In my experiment, the conversion identified multiple EAPOL messages and produced a suitable authentication record.

6. Using a GPU for Password Analysis
At this stage, we have the authentication evidence.
But how does computing power affect password recovery?
WPA2-Personal derives key material from the Wi-Fi passphrase and SSID using PBKDF2-HMAC-SHA1 with 4,096 iterations.
This means each password candidate requires repeated cryptographic calculations.
The process is intentionally computationally expensive.
However, GPUs are designed to perform large numbers of similar calculations in parallel, making them particularly effective for certain password-analysis workloads.
For my experiment, I used RunPod, a cloud GPU platform.
I selected a machine equipped with an NVIDIA GeForce RTX 4090, which has 24 GB of VRAM.
After preparing the environment, I checked whether Hashcat recognized the GPU:
hashcat -I
This lists the computing devices available to Hashcat.
Next, I ran a benchmark for WPA-PBKDF2-PMKID+EAPOL:
hashcat -b -m 22000 -D 2
Here:
-bruns Hashcat’s benchmark.-m 22000selects the WPA-PBKDF2-PMKID+EAPOL hash mode.-D 2selects GPU devices.
The benchmark reported approximately 2.51 million candidates per second.
This illustrates how much computing power can be applied to password verification.
7. Understanding the Offline Password-Recovery Process
Unlike an online login attempt, offline password verification does not require sending each candidate password to the wireless access point.
Once sufficient WPA2-Personal authentication material has been collected, the relevant cryptographic calculations can be performed locally.
For my assessment, I used the widely known rockyou.txt password wordlist.
A dictionary attack works by testing candidate passwords from a predefined list.
For each candidate, the software derives the expected cryptographic values and compares them with the authentication evidence collected during the handshake.
If the values match, the candidate password has been identified.
In my experiment, the WPA2 password was successfully recovered.
This was possible because the password was present in the candidate list.
The GPU accelerated the calculations, but it did not bypass WPA2 encryption.
For readers experimenting in their own lab, a good starting point is to configure a deliberately weak, known test password and study how password-verification results differ from those produced by a strong, randomly generated passphrase.

8. What Did We Actually Exploit?
It’s important to understand what happened here.
We did not break AES encryption.
We did not intercept the Wi-Fi password in plaintext.
And we did not exploit a cryptographic flaw in the Four-Way Handshake itself.
Instead, we demonstrated a limitation of WPA2-Personal authentication: captured authentication material can be used to verify password guesses offline.
This becomes a practical security concern when the network relies on a weak or predictable password.
Once the necessary authentication evidence has been captured, an attacker can continue testing password candidates without repeatedly interacting with the access point.
That means router-side login lockouts are not a defence against this particular offline process.
The strength of the passphrase becomes a critical security boundary.
9. Would the Same Approach Work Against WPA3?
Not in the same way.
WPA3-Personal introduced Simultaneous Authentication of Equals (SAE) to improve resistance against passive offline dictionary attacks.
With traditional WPA2-Personal authentication, captured handshake material can be used to verify password candidates offline.
SAE changes the authentication process so that a passive capture does not provide the same unrestricted offline password-testing opportunity.
WPA3 still uses the Four-Way Handshake after SAE establishes the necessary key material.
However, the security properties of the authentication process are different.
This is one of the reasons WPA3 represents an important improvement over WPA2-Personal.
10. Protecting Wireless Networks Against Similar Attacks
The most effective defence against offline password recovery is a strong, unpredictable Wi-Fi passphrase.
Avoid common passwords, personal information, and predictable combinations of words and numbers.
Where supported, WPA3-Personal provides stronger protection against passive offline dictionary attacks.
For WPA2 networks, AES-CCMP should be preferred over outdated security mechanisms such as TKIP.
It’s also advisable to disable WPS PIN enrolment when it isn’t required, since vulnerable WPS implementations can provide a separate route to network access.
Router firmware should be kept updated, and connected devices should be reviewed periodically.
For organizations, properly configured Enterprise authentication can provide individual access control rather than relying on one shared password.
The broader lesson is that secure wireless networking requires more than selecting a strong encryption algorithm.
Final Thoughts
We’ve reached the end of the Inside Wi-Fi series.
Across four parts, we’ve explored how Wi-Fi evolved, how devices communicate through radio waves, how wireless security protocols protect information, and how those mechanisms behave in a practical assessment.
For this final experiment, we observed wireless traffic, captured WPA2 authentication messages, examined the resulting evidence, and used a cloud GPU to assess password strength.
The successful password recovery reinforced an important lesson:
Strong encryption cannot compensate for weak authentication credentials.
Understanding Wi-Fi means looking beyond the password field and the familiar wireless icon.
It means understanding the radio technology, the protocols, the cryptographic mechanisms, and the configuration decisions that make secure wireless communication possible.
And that is what this series set out to explore.

