> 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

A professional ethical hacker or pen tester should be able to detect network sniffing in the network.

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FbYftsnxSCSCCPsbF7X27%2Fimage.png?alt=media&amp;token=a3ae5480-1263-4756-af63-d5aab0c44625" 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="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FFk8T6BvdHvX19lYSxoKn%2Fimage.png?alt=media&amp;token=edeafb64-802d-469f-91af-7ce479e69a51" alt=""><figcaption></figcaption></figure>

From ARP menus, select detect ARP and IP spoofing.

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2F9wRzAqOM2Q8TPy4QQXFN%2Fimage.png?alt=media&amp;token=9c677b71-9cf9-4f9d-b5cb-794d8eb96ea9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FjtFNdI6E3quPhD6zfcio%2Fimage.png?alt=media&amp;token=ce962c7f-1582-4ef9-a4fe-03f82b29a65c" 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="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FhkiRfXasOnB7oashnwLp%2Fimage.png?alt=media&amp;token=2c744bf2-5174-47ba-8545-9712633d0447" 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="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FJFN3Z2vrjDNDpn9l6JkP%2Fimage.png?alt=media&amp;token=190d9123-1ed6-4cd0-8576-6450454480da" 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="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FqVMa34C2Miurybhuo65B%2Fimage.png?alt=media&amp;token=058a8395-60c6-44f9-bc87-09903d0c559a" alt=""><figcaption></figcaption></figure>

### Nmap promiscuous/ Monitor mode detection

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

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2Fiyu65Xeru4bTnamkO9G4%2Fimage.png?alt=media&amp;token=92598157-f115-4025-bf7e-b62d40f84a54" 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>" %}
