Sniffing Using Kali Linux TCPdump

Sniffing is an action where a user can eavesdrop on the activities and network traffic of the target. Sniffing can be executed by using the tcpdump command in Kali Linux. Using two Kali Linux Virtual Machine (VM), it is possible to test this sniffing method. The first VM is going to be used as the target while the other VM is used to attack the target VM. This tutorial will be using Virtual Box in Windows 10 and running kali-linux 64bit.

These are the steps to sniff a computer’s internet activity:

  1. On the Virtual Box (Vbox) settings, configure both Kali Linux VM Network settings from NAT to Bridged Adapter. 
  2. Under the Network Settings of Vbox, click on Advanced and reset the MAC address of both VMs. 
  3. Confirm the changes to network settings  on both VMs. These edits are to ensure that the Kali Linux does not have the same IP address as one another.
  4. Afterwards connect your device to either a Wifi Adapter, hotspot or a network which is compatible Bridged Adapter.
  5. Once you run both Virtual Machines, in the target VM, open terminal and type the command ifconfig and extract the target VM’s IP address.

    ifconfig command

  6. In the attacking VM, open the terminal in input the command tcpdump -w eth0 host [target ip address] -w filename.pcap. The tcpdump command work similarly to WireShark as it can detect network traffic of a device. The command can capture how many request it Got.
    • For example: tcpdump -w eth0 host -w testdump.pcap
  7. On the targeted VM, browse through the internet and open up websites you normally browse such as Google, Twitter, etc.
  8. After browsing for a designated amount of time, stop the tcpdump command by pressing Ctrl + C on the terminal.
  9. Open the filename.pcap file on your root folder.


Based on the result, the command was able to track how many packets it has captured when the target browse through the internet, but however it did not capture the specific activities the target has browsed on their browser.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.