hacking-tutorial

Network Hacking - Gaining Access WEP Cracking


WEP encryption algorithm diagram


Theory behing cracking WEP Encryption

flowchart LR
    A[Source Device] --> B["WEP Encryption - RC4 Algorithm"]
    B --> C[Encrypted Data Packet]
    C --> D[Wireless Transmission]
    D --> E[Access Point / Router]
    E --> F[Wireless Transmission]
    F --> G[Destination Device]
    G --> H["WEP Decryption - RC4 Algorithm"]
    H --> I[Original Data]
    I --> J[Destination Device]
sequenceDiagram
    participant Source as Source Device
    participant AP as Access Point / Router
    participant Dest as Destination Device

    Source->>Source: Data to send
    Source->>Source: WEP Encryption (RC4 Algorithm)
    Source->>AP: Encrypted Data Packet (wireless)
    AP->>Dest: Encrypted Data Packet (wireless)
    Dest->>Dest: WEP Decryption (RC4 Algorithm)
    Dest->>Dest: Original Data

WEP Capturing Basics

[!WARNING] If the network is idle the process can be a little more complex, and may require you to use some other techniques like ARP request replay attack, or fake authentication attack to generate more traffic.

[!NOTE] Wait for some time to capture enough packets, the number of packets should be at least 1000000, anything less than that may not be enough to crack the WEP key.

Fake Authentication Attack

[!IMPORTANT] The first 12 characters of the unspec is the MAC Address of the hacker’s adapter, obtained by using the command ifconfig.

ARP Request Replay Attack

[!IMPORTANT] ARP stands for Address Resolution Protocol, and it is used to map IP addresses to MAC addresses. It is used to resolve the MAC address of a device on the network, given its IP address.


Path

<- Previous Lesson: Network Hacking - Pre Connection Attacks Next Lesson: Network Hacking - Gaining Access - WPA/WPA2 Cracking ->