LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

airdecap-ng

Decrypt WEP and WPA/WPA2 encrypted capture files

TLDR

Decrypt WEP capture file
$ airdecap-ng -w [hex_key] [capture.cap]
copy
Decrypt WPA/WPA2 capture file
$ airdecap-ng -p [passphrase] -e [SSID] [capture.cap]
copy
Keep 802.11 headers (don't strip wireless headers)
$ airdecap-ng -l -w [hex_key] [capture.cap]
copy
Decrypt with BSSID filter
$ airdecap-ng -p [passphrase] -e [SSID] -b [00:11:22:33:44:55] [capture.cap]
copy
Decrypt using a Pairwise Master Key (PMK)
$ airdecap-ng -k [pmk_hex] -e [SSID] [capture.cap]
copy

SYNOPSIS

airdecap-ng [-l] [-w key] [-p pass -e essid] [-b bssid] capture-file

DESCRIPTION

airdecap-ng decrypts WEP and WPA/WPA2 encrypted capture files when you know the key. It produces an unencrypted capture file (by default suffixed with -dec.cap) that can be analyzed with tools like Wireshark.By default, 802.11 wireless headers are stripped so the output resembles a standard Ethernet capture. Use -l to preserve the original 802.11 frames.

PARAMETERS

-w key

WEP key in hexadecimal
-p passphrase
WPA/WPA2 passphrase
-e essid
Network name (required for WPA)
-b bssid
Access point MAC address filter
-l
Don't remove the 802.11 header from decrypted output (keep wireless frames).
-k pmk
Use the specified WPA/WPA2 Pairwise Master Key (in hex) instead of passphrase.

CAVEATS

For WPA decryption, you need the passphrase AND the SSID. The capture file must contain a valid 4-way handshake, and only data packets that follow a successful handshake will be decrypted. Output file is named input-dec.cap by default. Single file names are recommended over shell wildcards.

HISTORY

airdecap-ng is part of the aircrack-ng suite, developed in the mid-2000s. It provides the complementary function to aircrack-ng: once a key is recovered, airdecap-ng can decrypt the traffic for analysis.

SEE ALSO

Copied to clipboard
Kai