pwn3d.es

TECHNICAL SHEET · Red Team

DOCUMENTATION ONLY

WiFiHack WPA2/3

The WiFi networks stored by Windows, in plain text.

RustWin32 WLAN API
Language
Rust
Platform
Windows 10/11
Type
Console binary
Web demo
No

What it is

wifiHack uses the native Windows WLAN API to open the service, walk the wireless interfaces and read the profiles the machine already knows. With WLAN_PROFILE_GET_PLAINTEXT_KEY it recovers the plaintext key and prints it next to the SSID and the authentication type (WPA2-Personal, Enterprise, WPA3 or open).

What it is for

It audits which WiFi credentials remain stored on a corporate laptop and recovers your own networks. It also shows why physical access to a machine without disk encryption is equivalent to handing over every network it knows.

How it is used

Windows 10 1809 or later, Windows 11 or Server 2019/2022; administrator rights; a WiFi adapter and at least one previously connected network. Rust 1.70 only for building.

Build
cargo build --release
Run as administrator
.\target\release\wifiHack.exe

Workflow

  1. Open the WLAN service handle and negotiate API 2.0.

  2. Enumerate wireless interfaces and stored profiles.

  3. Request each profile with a plaintext key.

  4. Parse the XML and print SSID, authentication and password.

Sheet built from the repository README and public code. Figures and commands are limited to what the project documents.

git · repository code

Explore the repository

$ git ls-tree -r WiFiHackWPA2-3Loading the repository tree…