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.
cargo build --release.\target\release\wifiHack.exeWorkflow
Open the WLAN service handle and negotiate API 2.0.
Enumerate wireless interfaces and stored profiles.
Request each profile with a plaintext key.
Parse the XML and print SSID, authentication and password.