The brilliant folks at enZo
deserve a scooby-snack for figuring out how to compile dsniff 2.4b1 on
Fedora Core 2 and Fedora Core 3. Please visit their dsniff page and
send them a thank-you note:
http://www.enzotech.net/dsniff.html
wget
http://www.enzotech.net/files/libnet-1.0.2a-fixed-FC.patch
tar zxf libnet-1.0.2a.tar.gz
http://www.enzotech.net/files/libnet-1.0.2a-fixed-FC.patch
patch -p0 <
libnet-1.0.2a-fixed-FC.patch
./configure && make &&
sudo make install
Note: "stock" dsniff 2.3 appears to compile using the patched
Libnids 1.16 and Libnet 1.0.2a above.
Quick link to an RPM that works with Fedora Core 1 and Red Hat Linux
9:
rpm -Uvh http://www.brandonhutchinson.com/dsniff-2.3-1_rh9.i386.rpm
Instructions on how to use this RPM with Red Hat Linux 8.0 are listed below. CheckInstall was used to create this RPM, and is a substitute for make install below.
Complete instructions for compiling dsniff on Red Hat Linux 9:
1. Make sure you have the following RPMs installed.
libpcap
db4
db4-devel
openssl
krb5-libs
krb5-devel
openssl-devel
2. Download dsniff 2.3, Libnet 1.0.2a, and Libnids 1.16. Note: newer versions of Libnet and Libnids may be available, but you may not be able to compile dsniff 2.3 with these newer versions.
wget http://www.monkey.org/~dugsong/dsniff/dsniff-2.3.tar.gz
\
http://www.packetfactory.net/libnet/dist/deprecated/libnet-1.0.2a.tar.gz
\
http://www.packetfactory.net/projects/libnids/dist/libnids-1.16.tar.gz
3. Install Libnet.
tar zxvf libnet-1.0.2a.tar.gz
cd Libnet-1.0.2a
./configure && make && su -c
"/usr/local/sbin/checkinstall -R -y"
4. Install Libnids.
tar zxvf libnids-1.16.tar.gz
cd libnids-1.16
./configure && make && su -c
"/usr/local/sbin/checkinstall -R -y"
5. Install dsniff. dsniff needs access to header files in /usr/kerberos/include,
so this path is added via the CFLAGS variable.
tar zxvf dsniff-2.3.tar.gz
cd dsniff-2.3
CFLAGS=-I/usr/kerberos/include ./configure && make && su
-c "/usr/local/sbin/checkinstall -R -y"
To use the above RPM with Red Hat Linux 8.0 (I was not able to compile
dsniff on Red Hat Linux 8.0 using the steps above):
1. Download openssl-0.9.7a-2.i386.rpm from the Red Hat Linux 9
distribution.
wget ftp://redhat.newaol.com/pub/redhat/linux/9/en/os/i386/RedHat/RPMS/openssl-0.9.7a-2.i386.rpm
2. Extract the needed OpenSSL 0.9.7a files from the RPM. The files
will be extracted into a lib
subdirectory.
rpm2cpio openssl-0.9.7a-2.i386.rpm | cpio -id ./lib/libssl.so.0.9.7a
./lib/libcrypto.so.0.9.7a
3. Copy OpenSSL 0.9.7a shared libraries into /lib. You may remove the lib subdirectory containing these
two files after copying them to /lib.
cp lib/libcrypto.so.0.9.7a /lib
cp lib/libssl.so.0.9.7a /lib
4. Create OpenSSL 0.9.7a symbolic links.
ln -s /lib/libcrypto.so.0.9.7a
/lib/libcrypto.so.4
ln -s /lib/libssl.so.0.9.7a
/lib/libssl.so.4
5. Install the dsniff RPM with the --nodeps
flag (we've satisfied the libcrypto.so.4
and libssl.so.4 dependencies).
rpm -Uvh --nodeps
http://www.brandonhutchinson.com/dsniff-2.3-1_rh9.i386.rpm
dsniff homepage:
http://www.monkey.org/~dugsong/dsniff/