Episode Details
Back to Episodes
Course 14 - Wi-Fi Pentesting | Episode 4: Cracking WEP Encryption: Gaining Network Access
Published 5 months, 1 week ago
Description
In this lesson, you’ll learn about:
- What WEP encryption is and why it is weak
- How the RC4 algorithm is used (and broken) in WEP
- How Initialization Vectors (IVs) cause WEP to fail
- Capturing WEP traffic using Airodump-ng
- Cracking WEP keys using Aircrack-ng
- Speeding up WEP cracking on idle networks
- Using fake authentication and packet injection
- Preparing for post-connection attacks after cracking WEP
- RC4 encryption algorithm
- A shared secret key for encryption and decryption
- The access point generates a 24-bit Initialization Vector (IV)
- The IV is combined with the network password
- Together they generate a keystream
- This keystream encrypts the packets
- The IV is sent in plain text with every encrypted packet
- A 24-bit IV is very small
- On busy networks:
- IVs repeat very quickly
- Repeated IVs allow:
- Statistical attacks
- Tools like Aircrack-ng to recover the keystream
- The WEP password to be cracked
- Use Airodump-ng to capture packets
- Packets are saved into a capture file
- The “data” counter represents:
- The number of unique IVs collected
- The higher the data count:
- The higher the success rate
- On busy networks:
- IVs increase very fast
- Cracking can take only minutes
- Use Aircrack-ng on the captured file
- Aircrack-ng performs:
- Statistical analysis
- RC4 weaknesses exploitation
- Once the key is recovered:
- You can connect to the network
- You gain full network access
- IV collection becomes extremely slow
- Cracking may take many hours or longer
- Associate with the target network
- Association means:
- The access point accepts your device
- Even though you are not fully connected
- aireplay-ng fake authentication attack
- This tells the access point:
- “I am a valid client”
- The access point does not ignore injected packets
- The attacker injects packets into the network
- This forces the access point to:
- Generate large numbers of new packets
- Create new IVs very quickly
- The IV count rises:
- From a few hundred
- To tens of thousands in minutes
- This allows:
- Very fast WEP cracking
- Even on a completely idle network
- You can:
- Connect to the Wi-Fi network normally
- Intercept traffic
- Gather sensitive information
- Perform