# 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>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ceh-practical.cavementech.com/module-11.-session-hijacking/2.-detect-session-hijacking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
