> For the complete documentation index, see [llms.txt](https://ceh-practical.cavementech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ceh-practical.cavementech.com/module-11.-session-hijacking/2.-detect-session-hijacking.md).

# 2. Detect  Session Hijacking

## 1. Detect Session  Hijacking using Wireshark

### Launch MITM attack

1. Run **bettercap -iface eth0** to set the network interface.

   > **-iface**: specifies the interface to bind to (here, **eth0**).

   ![](https://labondemand.blob.core.windows.net/content/lab168804/screens/5hxk42ti.jpg)
2. Type **net.probe on** and press **Enter**. This module will send different types of probe packets to each IP in the current subnet for the **net.recon** module to detect them.
3. Type **net.recon on** and press **Enter**. This module is responsible for periodically reading the system ARP table to detect new hosts on the network.

   > The net.recon module displays the detected active IP addresses in the network. In real-time, this module will start sniffing network packets.
4. Type **net.sniff on** and press **Enter**. This module is responsible for performing sniffing on the network.
5. You can observe that bettercap starts sniffing network traffic on different machines in the network, as shown in the screenshot.

   ![](https://labondemand.blob.core.windows.net/content/lab168804/screens/hefx1yxb.jpg)

A huge number of Arp requests, indicate attack in progress.

<figure><img src="/files/k6PzZIT2dP25oQ64QJea" alt=""><figcaption></figcaption></figure>

{% embed url="<https://www.udemy.com/course/ethical-hacker-practical/?referralCode=289CF01CF51246BCAD6C>" %}
