Kali Linux – Sniffing & Spoofing

kali linux

The basic concept of sniffing tools is as simple as wiretapping and Kali Linux has some popular tools for this purpose. In this chapter, we will learn about the sniffing and spoofing tools available in Kali. This is about Kali Linux Sniffing Spoofing.

Burpsuite

Burpsuite can be used as a sniffing tool between your browser and the webservers to find the parameters that the web application uses.

To open Burpsuite, go to Applications → Web Application Analysis → burpsuite.

web analysis

To make the setup of sniffing, we configure burpsuite to behave as a proxy. To do this, go to Options as shown in the following screenshot. Check the box as shown.

In this case, the proxy IP will be 127.0.0.1 with port 8080.

proxy ip

Then configure the browser proxy which is the IP of burpsuite machine and the port.

configure browser

To start interception, go to Proxy → Intercept → click “Intercept is on”.

Continue to navigate on the webpage that you want to find the parameter to test for vulnerabilities.

intercept

In this case, it is metasploitable machine with IP 192.168.1.102

machine ip

Go to “HTTP History”. In the following screenshot, the line marked in red arrow shows the last request. In Raw and the hidden parameter such as the Session ID and other parameter such as user name and password has been underlined in red.

request parameter

mitmproxy

mitmproxy is an SSL-capable man-in-the-middle HTTP proxy. It provides a console interface that allows traffic flows to be inspected and edited on the fly.

To open it, go to the terminal and type â€śmitmproxy -parameter” and for getting help on commands, type â€śmitmproxy –h”.

mitmproxy

To start the mitmproxy, type â€śmitmproxy –p portnumber”. In this case, it is “mitmproxy –p 80”.

port number

Wireshark

Wireshark is one of the best data packet analyzers. It analyzes deeply the packets in frame level. You can get more information on Wireshark from their official webpage: https://www.wireshark.org/. In Kali, it is found using the following path – Applications → Sniffing & Spoofing → wireshark.

wireshark

Once you click wireshark, the following GUI opens up.

wireshark gui

Click “Start” and the packet capturing will start as shown in the following screenshot.

packet capturing

sslstrip

sslstrip is a MITM attack that forces a victim’s browser to communicate in plain-text over HTTP, and the proxies modifies the content from an HTTPS server. To do this, sslstrip is “stripping” https:// URLs and turning them into http:// URLs.

To open it, go to Applications → 09-Sniffing & Spoofing → Spoofing and MITM → sslstrip.

spoofing

Kali Linux Sniffing Spoofing

application mitm

To set it up, write to forward all the 80 port communication to 8080.

port communication

Then, start the sslstrip command for the port needed.

ssltrip command

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply