How To Install dsniff on Fedora 34

dsniff is Tools for network auditing and penetration testing

Introduction

In this tutorial we learn how to install dsniff on Fedora 34.

What is dsniff

A collection of tools for network auditing and penetration testing. Dsniff, filesnarf, mailsnarf, msgsnarf, urlsnarf and webspy allow to passively monitor a network for interesting data (passwords, e-mail, files). Arpspoof, dnsspoof and macof facilitate the interception of network traffic normally unavailable to an attacker (e.g, due to layer-2 switching). Sshmitm and webmitm implement active monkey-in-the-middle attacks against redirected SSH and HTTPS sessions by exploiting weak bindings in ad-hoc PKI.

We can use yum or dnf to install dsniff on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install dsniff.

Install dsniff on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install dsniff using dnf by running the following command:

sudo dnf -y install dsniff

Install dsniff on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install dsniff using yum by running the following command:

sudo yum -y install dsniff

How To Uninstall dsniff on Fedora 34

To uninstall only the dsniff package we can use the following command:

sudo dnf remove dsniff

dsniff Package Contents on Fedora 34

/etc/dsniff
/etc/dsniff/dnsspoof.hosts
/etc/dsniff/dsniff.magic
/etc/dsniff/dsniff.services
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/6eeebf12ee5f7d8033741a38e9e59c85cb0106
/usr/lib/.build-id/26
/usr/lib/.build-id/26/789b4b8aeea6e546af04a87a127e6cde4a4ff2
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/b4254bd9613c82462945334612c7036b96e77b
/usr/lib/.build-id/33
/usr/lib/.build-id/33/cb88fda507ebadaf3fd4cbab7301cb347a33f6
/usr/lib/.build-id/43
/usr/lib/.build-id/43/65c7fb86bef87ce2c1df8847aae6607bf0efdd
/usr/lib/.build-id/45
/usr/lib/.build-id/45/29fed38e9ad6725e1456d629627242c30dbb6f
/usr/lib/.build-id/59
/usr/lib/.build-id/59/eed3f255da4b2307af8253c234d55334779b8b
/usr/lib/.build-id/79
/usr/lib/.build-id/79/4f22d185a8ddba32f18fca13ade45176a4da5d
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/82ac4b56388a361a647aa0051c99d260137a39
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/bba8b2fdb3bd7c3a20809e33cc6b8f05ebb037
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/346dbe46229752f03c9e50b9dde8902f01038c
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/fd58ca6bdf25f4d5acce0bcfd8cc67d43c931d
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/fd1f5120f29d3d12be7f22a3965d2d1ca985d4
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/96f690fe7f862efff121b02909d5ee231d66cd
/usr/sbin/arpspoof
/usr/sbin/dnsspoof
/usr/sbin/dsniff
/usr/sbin/filesnarf
/usr/sbin/macof
/usr/sbin/mailsnarf
/usr/sbin/msgsnarf
/usr/sbin/sshmitm
/usr/sbin/sshow
/usr/sbin/tcpkill
/usr/sbin/tcpnice
/usr/sbin/urlsnarf
/usr/sbin/webmitm
/usr/sbin/webspy
/usr/share/doc/dsniff
/usr/share/doc/dsniff/CHANGES
/usr/share/doc/dsniff/README
/usr/share/doc/dsniff/TODO
/usr/share/licenses/dsniff
/usr/share/licenses/dsniff/LICENSE
/usr/share/man/man8/arpspoof.8.gz
/usr/share/man/man8/dnsspoof.8.gz
/usr/share/man/man8/dsniff.8.gz
/usr/share/man/man8/filesnarf.8.gz
/usr/share/man/man8/macof.8.gz
/usr/share/man/man8/mailsnarf.8.gz
/usr/share/man/man8/msgsnarf.8.gz
/usr/share/man/man8/sshmitm.8.gz
/usr/share/man/man8/sshow.8.gz
/usr/share/man/man8/tcpkill.8.gz
/usr/share/man/man8/tcpnice.8.gz
/usr/share/man/man8/urlsnarf.8.gz
/usr/share/man/man8/webmitm.8.gz
/usr/share/man/man8/webspy.8.gz

References

Summary

In this tutorial we learn how to install dsniff on Fedora 34 using yum and dnf.