dsniff: 2.4b1 inital import

This commit is contained in:
Thomas Penteker 2008-07-13 01:14:23 +02:00
parent 449790e0bc
commit 59bcb2a629
6 changed files with 3392 additions and 0 deletions

37
dsniff/.footprint Normal file
View File

@ -0,0 +1,37 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/arpspoof.8.gz
-rw-r--r-- root/root usr/man/man8/dnsspoof.8.gz
-rw-r--r-- root/root usr/man/man8/dsniff.8.gz
-rw-r--r-- root/root usr/man/man8/filesnarf.8.gz
-rw-r--r-- root/root usr/man/man8/macof.8.gz
-rw-r--r-- root/root usr/man/man8/mailsnarf.8.gz
-rw-r--r-- root/root usr/man/man8/msgsnarf.8.gz
-rw-r--r-- root/root usr/man/man8/sshmitm.8.gz
-rw-r--r-- root/root usr/man/man8/sshow.8.gz
-rw-r--r-- root/root usr/man/man8/tcpkill.8.gz
-rw-r--r-- root/root usr/man/man8/tcpnice.8.gz
-rw-r--r-- root/root usr/man/man8/urlsnarf.8.gz
-rw-r--r-- root/root usr/man/man8/webmitm.8.gz
-rw-r--r-- root/root usr/man/man8/webspy.8.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/arpspoof
-rwxr-xr-x root/root usr/sbin/dnsspoof
-rwxr-xr-x root/root usr/sbin/dsniff
-rwxr-xr-x root/root usr/sbin/filesnarf
-rwxr-xr-x root/root usr/sbin/macof
-rwxr-xr-x root/root usr/sbin/mailsnarf
-rwxr-xr-x root/root usr/sbin/msgsnarf
-rwxr-xr-x root/root usr/sbin/sshmitm
-rwxr-xr-x root/root usr/sbin/sshow
-rwxr-xr-x root/root usr/sbin/tcpkill
-rwxr-xr-x root/root usr/sbin/tcpnice
-rwxr-xr-x root/root usr/sbin/urlsnarf
-rwxr-xr-x root/root usr/sbin/webmitm
-rwxr-xr-x root/root usr/sbin/webspy
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/dsniff/
-rw-r--r-- root/root usr/share/dsniff/dnsspoof.hosts
-rw-r--r-- root/root usr/share/dsniff/dsniff.magic
-rw-r--r-- root/root usr/share/dsniff/dsniff.services

4
dsniff/.md5sum Normal file
View File

@ -0,0 +1,4 @@
ea0283ebee4ce93d6266779c6c6c06df 2.3-makefile.patch
bfa966bcd5fce678ec5f6579bf407b64 dsniff-2.4_beta1-debian-r1.patch
2f761fa3475682a7512b0b43568ee7d6 dsniff-2.4b1.tar.gz
449ef7ee0534e261c2ce91d9b754b290 dsniff-httppostfix.patch

29
dsniff/2.3-makefile.patch Normal file
View File

@ -0,0 +1,29 @@
--- Makefile.in.org 2008-07-13 00:13:06.418946225 +0200
+++ Makefile.in 2008-07-13 00:12:49.680439688 +0200
@@ -94,7 +94,7 @@
$(RANLIB) $@
dsniff: $(HDRS) $(SRCS) $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(DBLIB) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(SSLLIB)
arpspoof: arpspoof.o arp.o
$(CC) $(LDFLAGS) -o $@ arpspoof.o arp.o $(LIBS) $(PCAPLIB) $(LNETLIB)
@@ -115,7 +115,7 @@
$(CC) $(LDFLAGS) -o $@ msgsnarf.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
sshmitm: sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o
- $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB)
+ $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(DBLIB) $(LNETLIB) $(SSLLIB)
sshow: sshow.o pcaputil.o
$(CC) $(LDFLAGS) -o $@ sshow.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
@@ -133,7 +133,7 @@
$(CC) $(LDFLAGS) -o $@ urlsnarf.o base64.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
webmitm: webmitm.o base64.o buf.o decode_http.o record.o
- $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB)
+ $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(DBLIB) $(LNETLIB) $(SSLLIB)
webspy: webspy.o base64.o buf.o remote.o
$(CC) $(LDFLAGS) -o $@ webspy.o base64.o buf.o remote.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(X11LIB)

33
dsniff/Pkgfile Normal file
View File

@ -0,0 +1,33 @@
# Description: tools for network auditing and penetration testing
# URL: http://monkey.org/~dugsong/dsniff
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on: libpcap libnids libnet glib
name=dsniff
version=2.4b1
release=1
source=(http://monkey.org/~dugsong/dsniff/beta/$name-$version.tar.gz
2.3-makefile.patch dsniff-2.4_beta1-debian-r1.patch
dsniff-httppostfix.patch)
build() {
cd $name-2.4
patch -i ../2.3-makefile.patch
patch -i ../dsniff-2.4_beta1-debian-r1.patch
patch -i ../dsniff-httppostfix.patch
sed -i -e 's/CLK_TCK/CLOCKS_PER_SEC/g' sshow.c
export LDFLAGS="`pkg-config --libs gthread-2.0`"
export CFLAGS="`pkg-config --cflags gthread-2.0`"
./configure --prefix=/usr
make
install -d -m 755 $PKG/usr/sbin
for prog in arpspoof dnsspoof dsniff filesnarf macof mailsnarf msgsnarf \
sshmitm sshow tcpkill tcpnice urlsnarf webmitm webspy; do \
install -m 755 $prog $PKG/usr/sbin/; done
install -d -m 755 $PKG/usr/man/man8
for man in *.8; do install -D -m 644 $man $PKG/usr/man/man8; done
install -d -m 755 $PKG/usr/share/dsniff
for shares in dnsspoof.hosts dsniff.magic dsniff.services; do \
install -m 644 $shares $PKG/usr/share/dsniff; done
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,20 @@
--- decode_http.c.orig 2000-12-19 07:38:05.000000000 +0800
+++ decode_http.c 2006-03-05 22:32:14.000000000 +0800
@@ -139,14 +139,14 @@
host = p;
}
else if (req[0] == 'P') {
- if (strncmp(p, "Content-type: ", 14) == 0) {
- if (strncmp(p + 14, "application/"
+ if (strncasecmp(p, "Content-type: ", 14) == 0) {
+ if (strncasecmp(p + 14, "application/"
"x-www-form-urlencoded",
33) != 0) {
query = NULL;
}
}
- else if (strncmp(p, "Content-length: ", 16) == 0) {
+ else if (strncasecmp(p, "Content-length: ", 16) == 0) {
p += 16;
i = atoi(p);
if ((msg = buf_tok(&inbuf, NULL, i)) == NULL)