> 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-8.-sniffing/3.-detect-network-sniffing.md).

# 3. Detect Network Sniffing

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

## 1. Detect ARP Poisoning and promiscuous mode in a switched network

If you have a doubt on a target machine, ping it.

```
hping3 -c 1000000000 192.168.18.110
```

Now open Wireshark and edit preferences. Click on protocols options

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

From ARP menus, select detect ARP and IP spoofing.

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

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

Click **Analyze** from the menu bar and select **Expert Information** from the drop-down options. The **Wireshark . Expert Information** window appears; click to expand the **Warning** node labeled **Duplicate IP address configured (10.10.1.11)**, running on the **ARP/RARP** protocol.

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

Arrange the **Wireshark . Expert Information** window above the **Wireshark** window so that you can view the packet number and the **Packet details** section. In the **Wireshark . Expert Information** window, click any packet (here, **463**).

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

On selecting the packet number, **Wireshark** highlights the packet, and its associated information is displayed under the packet details section. Close the **Wireshark . Expert Information** window.  The warnings highlighted in yellow indicate that duplicate IP addresses have been detected at one MAC address, as shown in the screenshot.

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

### Nmap promiscuous/ Monitor mode detection

```
sudo nmap --script sniffer-detect 192.168.18.1
```

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

## <mark style="color:red;">2. Detect ARP Poisoning using Capsa Network Analyzer</mark>

{% embed url="<https://www.colasoft.com/download/arp_flood_arp_spoofing_arp_poisoning_attack_solution_with_capsa.php>" %}

Requires use of school and work emails.

We can use hubu framework for arp poisoning

```
hubu.arp.poison 192.168.18.11 192.168.18.12
```

In the diagnosis tab, we can locate the ARP warning.

### CEH Practical Full Course

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