From charlesreid1

Overview

What is dsniff?

dsniffi s a tool for sniffing plaintext traffic and extracting "goodies" from the traffic. There is an entire suite of sniffing/snarfing tools that are designed to work with dsniff to extract various types of information (passwords, images, emails, URLs, etc.).

dsniff can only sniff plaintext traffic, not encrypted traffic. That means that as SSL-protected communications have become much more common in modern browsers, websites, and networks in the past 15 years, the usefulness of dsniff on its own has diminished.

But because SSL will never be implemented everywhere, and because SSL itself has weaknesses, there are other tools to attack and remove the SSL layer, which makes communications vulnerable to dsniff.

How to use dsniff?

dsniff can be used in offline mode (pulling information from pcap files) or online mode.

To use dsniff to sniff live traffic, the machine running dsniff must be able to see traffic to/from the victim machine, unencrypted. (To use dsniff by itself to eavesdrop on communications, you don't have to control the traffic, just see it. To use dsniff with tools that actually modify the traffic, the machine running dsniff needs to control the traffic passing to/from the victim machine.)

An attacker can view or control traffic to a victim by using a man in the middle MITM attack. There are many types of MITM attacks, but one example might be an ARP spoofing attack, where the attacker sits between the network gateway and the victim, and tricks the gateway into thinking it is the victim, and tricks the victim into thinking it is the gateway.

Again, encrypted traffic is not visible to dsniff, so if the communications layer is protected with SSL, an SSL-stripping attack is needed in addition to the MITM attack, to strip the SSL layer. Then dsniff can see the traffic.


Tools

Other Dsniff Suite Tools

dsniff can be used with other analysis tools to extract particular types of content from the traffic stream:

Combo Attacks

dsniff attacks require a MITM attack tool, such as:

in case of SSL-encrypted traffic, attempt to strip the SSL layer using:

Installing

# apt-get install dsniff

That will install all of the utilities above.

References

Dsniff/PlasticForkGuide_HackBB

https://www.soldierx.com/tutorials/Sniffing-Various-Passwords-MITM-DSNIFF-and-SSL-Strip

Flags