Hack Tool Repository Logo

Hack Tool Repository

white curve white curve

dsniff

Google
 

dsniff

dsniff is a collection of tools for network auditing and penetration testing. dsniff, filesnarf, mailsnarf, msgsnarf, urlsnarf, and webspy passively monitor a network for interesting data (passwords, e-mail, files, etc.). 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.
 Related to:
Berkeley DB
libnet version 1.0.2a
libnids
libpcap
OpenSSL


Site: http://monkey.org/~dugsong/dsniff/
Source URL: files/Sniffer/dsniff/dsniff-2.3.tar.gz
Category: Sniffer
Hits: 6070
Rating: 10
Added: 2006-04-27 09:02:05
Updated: 2009-07-18 09:27:39
Tested on:
Fedora Core    install.sh
10
11
OpenSUSE    install.sh
10
11
Ubuntu    install.sh
7.10
8.10
9.10

Comments:

If you get the following error:

./sshcrypto.c:25: error: field key has incomplete type
./sshcrypto.c:30: error: expected specifierqualifierlist before des_key_schedule
./sshcrypto.c: In function blowfish_encrypt:
./sshcrypto.c:131: error: BF_ENCRYPT undeclared (first use in this function)
./sshcrypto.c:131: error: (Each undeclared identifier is reported only once
./sshcrypto.c:131: error: for each function it appears in.)
./sshcrypto.c: In function blowfish_decrypt:
./sshcrypto.c:143: error: BF_DECRYPT undeclared (first use in this function)
./sshcrypto.c: In function des3_init:
./sshcrypto.c:156: error: struct des3_state has no member named k1
./sshcrypto.c:157: error: struct des3_state has no member named k2
./sshcrypto.c:160: error: struct des3_state has no member named k3
./sshcrypto.c:162: error: struct des3_state has no member named k3
./sshcrypto.c:164: error: struct des3_state has no member named iv1
./sshcrypto.c:165: error: struct des3_state has no member named iv2
./sshcrypto.c:166: error: struct des3_state has no member named iv3
....
make: *** [sshcrypto.o] Error 1

Which results in the the tools sshmitm, tcpkill, tcpnice, urlsnarf, webmitm and webspy not being build.
Add the following two lines to sshcrypto.c:

#include <openssl/des.h>
#include <openssl/blowfish.h>

by marc at 2007-10-15 16:02:42

If you get the following errors:

/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func:
dso_dlfcn.c:(.text+0x29d): undefined reference to `dlsym
dso_dlfcn.c:(.text+0x316): undefined reference to `dlerror
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var:
dso_dlfcn.c:(.text+0x38d): undefined reference to `dlsym
dso_dlfcn.c:(.text+0x3fe): undefined reference to `dlerror
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload:
dso_dlfcn.c:(.text+0x45c): undefined reference to `dlclose
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load:
dso_dlfcn.c:(.text+0x505): undefined reference to `dlopen
dso_dlfcn.c:(.text+0x55d): undefined reference to `dlclose
dso_dlfcn.c:(.text+0x58c): undefined reference to `dlerror
collect2: ld returned 1 exit status
make: *** [sshmitm] Error 1

You need to run make with the following command:

make LDFLAGS+=-ldl

by marc at 2009-01-08 21:15:25

When using the script, make sure you change the TRGDIR variable to something like:
TRGDIR=/usr/local/dsniff

by marc at 2009-07-18 09:28:29

 
Olderchurch Web Site About Us | Site Map | Contact Us | ©2007 Olderchurch Security Consultancy