The Wayback Machine - https://web.archive.org/web/20240812153007/https://www.geeksforgeeks.org/kali-linux-sniffing-and-spoofing/
Open In App

Kali Linux – Sniffing and Spoofing

Last Updated : 07 Nov, 2022
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Sniffing is the process in which all the data packets passing in the network are monitored. Sniffers are usually used by network administrators to monitor and troubleshoot the network traffic. Whereas attackers use Sniffers to monitor and capture data packets to steal sensitive information containing password and user accounts. Sniffers can be hardware or software installed on the system.

Spoofing is the process in which an intruder introduces fake traffic and pretends to be someone else (legal source or the legitimate entity). Spoofing is done by sending packets with incorrect source address over the network. The best way to deal and tackle with spoofing is to use a digital signature.

Though Kali Linux comes packed with many tools for sniffing and spoofing the ones listed below, are mostly used by attackers these days.

Wireshark :

Wireshark is a network protocol analyzer that is termed to be the most used and best tool around the word. With Wireshark, you can see what is happening in your network and apply filters to get the most efficient results for what you are looking for. In Kali, Linux Wireshark is already installed and can be located under Applications — sniffing and spoofing — Wireshark.

Wireshark

Wireshark is a GUI based tool, so once you click on the icon Wireshark GUI will open 

Wireshark GUI

 Once the GUI loads you can see several interfaces like Ethernet, Wi-Fi, Bluetooth, and so on, based on your connection to the network you can choose the interface and start capturing the network traffic. In this case, we are on Ethernet(eth0), so select the eth0 interface and click on the start capturing packets icon which is located in the top left corner. 

Once you start capturing packets it will look something like this :

Wireshark Packet Tracer

You can also apply specific filters for better searching, for example, if you want to track only HTTP requests you can use apply a display filter bar and apply all the filters you need for better track results. 

macchanger :

macchanger is the most used tool under sniffing and spoofing, macchanger can change your mac address, or we can say your physical address to hide your actual identity in the network.

You can locate macchanger in Kali Linux under Applications — sniffing and spoofing — macchanger

macchanger

macchanger is a command-line based tool so once you click on macchanger a shell will pop up with the help menu 

macchanger -h

Here is the example of macchanger tool application.

Change random mac address: First, let’s change the network card’s hardware MAC address to a random address. First, we will find the MAC address of the eth0 network interface. To do this we execute macchanger with an option -s and an argument eth0.

macchanger -s eth0

Now the network interface you are about to change a MAC address should be turned off before changing the mac address. Use ifconfig command to turn off your network interface. 

MITMPROXY:

MITMPROXY is an SSL-capable man-in-the-middle HTTP proxy, providing a console interface that allows traffic flows to be inspected and edited at the moment they are captured. With mitmproxy you can inspect and modify network traffic, save HTTP conversations for inspection, SSL inspection, and more.

To open mitmproxy in Kali Linux you can simply locate it under Applications — sniffing and spoofing — mitmproxy or you can use a terminal and type the following command to display the help menu of the tool.

mitmproxy -h

MITMPROXY

Let’s see a simple example of using mitmproxy on port number, to do this you can simply use “mitmproxy -p portnumber”.

In our case, let’s use port 80

mitmproxy -p 80

MITMPROXY

 

Burpsuite:

Burpsuite is a java based penetration testing framework that is recognized as an industry-standard tool. Burp has many use cases in penetration testing and can also be used as a sniffing tool between your browser and web servers to find parameters the web application uses.

In Kali Linux, you can locate burpsuite under Applications — web analysis — burpsuite.

BurpSuite

To use burpsuite as a sniffing tool we need to configure it to behave like a proxy.  Open burpsuite and go to options and select interface “127.0.0.1:8080”

BurpSuite

Now configure the browser proxy the same as the IP of burpsuite machine and the port.

BurpSuite

To start the interception go to Proxy — intercept and click “intercept is on”. Now all the requests going through your browser will be intercepted and you can navigate all the requests.

Sniffing and spoofing deals a lot in information security, an intruder can track all the data flowing through your system, so make sure you follow the rules of CIA trait.



Similar Reads

Top 5 Tools for Sniffing and Spoofing
In our world of constant connectivity, ensuring the security of our digital information has become a top priority. Yet, as we work to protect ourselves from online threats, it's equally important to understand the tools and techniques that malicious individuals can use, such as network sniffing and IP spoofing. Network sniffing involves interceptin
3 min read
wireshark sniffing and spoofing
Wireshark is an open-source packet analyzer that enables real-time data inspection. It enables network sniffing, which analyzes traffic for device communication insights. The ethical and legal implications of network sniffing are discussed, emphasizing responsible usage. Spoofing, a manipulation of network data, can compromise network security thro
5 min read
Bettercap Sniffing and Spoofing
Bettercap is a comprehensive, powerful tool used for network monitoring and attacks, including sniffing and spoofing. It is highly regarded among security professionals for its flexibility and extensive capabilities. This article will go through using Bettercap to perform network sniffing and spoofing in a controlled, ethical manner. Setting Up Bet
3 min read
SSL Stripping and ARP Spoofing in Kali Linux
SSL(Secure Sockets Layer) Stripping is basically one type of action that can be performed by Cyber attackers or any intruders in a specific area of the network and it changes HTTPS(Hyper Text Transfer Protocol Secure ) Connection to HTTP (Hyper Text Transfer Protocol) Connection. ARP (Address Resolution Protocol) Spoofing helps to establish SSL Str
5 min read
Sniffing using bettercap in Linux
Sniffing is the process of capturing and monitoring data packets that are passed through the network. It is used to capture the data of the victim and bettercap is a powerful tool used to perform various MITM(man in the middle) attacks on a network. Also, ARP Spoofing is a type of attack in which an attacker sends false ARP (Address Resolution Prot
3 min read
Kali-Whoami - Stay anonymous on Kali Linux
In today's life, we are surrounded by a lot of cyber security tools and we talk about our online anonymity, but are we really anonymous? A single mistake can reveal our anonymity, so here is a tool that can help us to make anonymity possible and it is called WHOAMI. It is very useful and has a very simple UI. Note: if you are a parrot user then you
3 min read
How to Setup VPN on Ubuntu Linux System for IP Spoofing Using windscribe?
In simple words, IP Spoofing can be stated as “Hiding your Systems IP address from others”. It is essentially a technique used by hackers to gain unauthorized access to Computers. Concepts of IP Spoofing was initially discussed in academic circles as early as 1980. IP Spoofing types of attacks had been known to Security expert on the theoretical le
3 min read
Packet sniffing using Scapy
Scapy is a powerful and versatile packet manipulation tool written in python. Using scapy, a user will be able to send, sniff, dissect and forge network packets. Scapy also has the capability to store the sniffed packets in a pcap file. Using scapy, we will be able to handle tasks like trace routing, probing, scanning, unit tests, and network disco
3 min read
Sniffing with Xerosploit – An Advanced MITM Framework
Xerosploit is an open-source framework that makes it easy to perform man-in-the-middle (MITM) attacks on networks you have access to. The goal of an MITM attack is to get between two parties communicating and intercept or even alter their communications without them realizing it. The key advantage of Xerosploit is it automates many complex MITM att
6 min read
Difference Between Arch Linux and Kali Linux
Arch Linux is an open-source Linux-based Operating System that is freely available for use. It belongs to the Pacman-based Linux family. It is a light weighted OS for daily use and could even be used by professionals. It was first released in March 2002. It is a beginner-friendly Linux Operating System. Features of Arch Linux: Minimalist approach:
4 min read
Article Tags :
three90RightbarBannerImg