Guide: Overview¶
WEPWolf turns a directory of captures into recovered WEP keys in one pass. This page walks the end-to-end workflow; the rest of the guide goes deeper on the cryptography, the attacks, the output, and tuning.
The one-liner¶
wepwolf capture.cap
Point WEPWolf at a file or a directory. It scans every capture it finds, identifies the WEP networks, attacks each one, and prints the keys it recovers plus an accounting banner. With several access points present, they are cracked in parallel, and a key found on one network is reused against co-located networks that share it.
wepwolf /captures/ # recurse a whole directory of captures
wepwolf a.pcap b.pcapng c.cap.gz # several files at once (merged per BSSID)
wepwolf --bssid 00:11:22:33:44:55 capture.cap # target one network
The pipeline¶
flowchart LR
A[Ingest<br/>pcap / pcapng / gzip<br/>parallel, multi-file] --> B[Classify<br/>WEP / WPA / open]
B --> C[Harvest<br/>IVs + known-plaintext<br/>keystream per BSSID]
C --> D[Attack<br/>PTW / KoreK / FMS / bias<br/>dict / keygen / SKA / brute]
D --> E[Verify<br/>RC4 + CRC-32 ICV<br/>the only accept path]
E --> F[Report<br/>table / plain / json<br/>+ accounting banner]
1. Ingest¶
WEPWolf reads pcap, pcapng, and gzip-compressed captures over a range of radio link layers (raw 802.11, radiotap, Prism, AVS, PPI, Linux cooked), with tiered FCS recovery for malformed link headers. Files are processed in parallel on a work-stealing pool, and packets are streamed one at a time, so a multi-gigabyte capture is read with bounded memory -- the whole file is never loaded into RAM. The capture front-end is ported from the sibling WPA tool.
2. Classify¶
For every BSSID it sees, WEPWolf decides WEP / WPA / open from the beacon Privacy bit, any RSN or WPA information element, and the data-frame Extended-IV bit -- the same determination aircrack-ng makes. Only the WEP networks are attacked. The closing banner counts all of them.
3. Harvest¶
For each WEP frame, WEPWolf recovers keystream by XORing the ciphertext with known plaintext: the LLC/SNAP header that begins every 802.11 data packet, and -- where it can identify the encapsulated protocol -- the longer fixed headers of ARP, IPv4, IPv6 Neighbor Discovery, and EAPOL. Each (IV, keystream) pair, tagged with its WEP key slot, is the raw material the statistical attacks consume. It also keeps a few complete frames per key slot for the verifier. Plaintext is only taken where it really is known: a later fragment of a fragmented packet starts mid-packet and is not mined, and a frame the capture cut short at a snap length gives up its IV but is never used to confirm a key. See How it works.
4. Attack¶
Each WEP network is run through every applicable attack until one produces a key the verifier accepts. The statistical, dictionary, and keygen attacks run BSSID-parallel (the recovery phase), bounded by a per-network time budget so one hard network cannot starve the run; a key found on one network is then tried against the rest; and the optional 40-bit brute force runs one network at a time on the full machine. See The attacks.
5. Verify¶
No attack declares victory on its own. Every candidate key is routed through one function that RC4-decrypts at least two retained frames and checks the transmitted CRC-32 ICV. Two independent agreements make a false accept negligible (~2⁻⁶⁴), so a reported key is correct -- the same bar aircrack-ng uses.
6. Report¶
WEPWolf prints the recovered keys, a WEP-focused table of the networks (most-IVs first), and an accounting banner reconciling every packet and every BSSID. Machine-readable --plain and --json modes are available, and --carve writes the exact WEP frames it cracked from into a standalone pcap. See Output & diagnostics.
What you need in the capture¶
WEP recovery is statistical, and reliability scales with the number of distinct IVs (WEP reuses its 24-bit IV heavily, so raw frame counts overstate the material). As a rule of thumb:
| Key length | Statistical attacks start at | Practical distinct-IV count |
|---|---|---|
| WEP-40 (5 octets) | 1,000 | ten to twenty thousand |
| WEP-104 (13 octets) | 5,000 | several tens of thousands |
| WEP-232 (29 octets) | 15,000 | more still |
The middle column is the floor below which the statistical attacks are not run for that key length, because they cannot converge there; the right-hand column is where they start to succeed. Measured on random WEP-40 keys in the best case (every IV with a fully known keystream), nothing cracked at 3,000 distinct IVs or fewer, 6% cracked at 5,000, 44% at 8,000, and 97% at 20,000.
A network below the floor is still attempted -- the built-in list of common and default keys, any --wordlist, key reuse, and the potfile need no IVs -- and if none of those finds the key it is reported as "too thin" rather than spun on. If nothing cracks, that is almost always the reason; Tuning & performance and the FAQ explain how to tell, and --debug reports exactly how short a capture falls.
Next¶
- How it works -- WEP, IVs, known plaintext, and the accept path.
- The attacks -- what each attack does and when it fires.
- CLI Reference -- every option.