LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-23-2004, 10:08 AM   #1
buddamonk
LQ Newbie
 
Registered: Mar 2004
Location: illadelph
Distribution: slackware
Posts: 16

Rep: Reputation: 0
Question problem patching dsniff


alright i know nobody wants to help a newbie compile dsniff because of the damage you can do with the info collected, and i understand that, but the company i work for would like to use it to monitor and secure there network, and i have been given the task of making it work.

ok so heres my problem im running mankdrake 10 i have installed all the packages needed, berkeleyDB 4.3, libnet 1.0.2a, libnids 1.16, libpcap 0.8.3, and openssl 0.9.7d, all with out a problem i even compiled berkeleyDB with ./configure --enable-compat185. the problem is when i try to make dsniff, i downloaded the .diff file and dsniff-2.4b1 from the links here groar.org/patch/english.shtml (sorry im not allow to post urls) and i ran the commands on that site as well, and i get the same error. first i get an error when running the patch command:

[root@localhost dsniff-2.4]# patch -p1 < dsniff-2.4-configure.in.2.diff
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure.in.orig Wed Dec 20 10:31:21 2000
|+++ configure.in Mon Aug 26 11:05:43 2002
--------------------------
File to patch: configure.in
patching file configure.in
[root@localhost dsniff-2.4]#

so i get the missing header error, so i tell it which file to patch "configure.in" which i assume is the right file to patch??

then i run the autoconf command like it says to do at groar.org/patch/english.shtml

then i start to compile:

[root@localhost dsniff-2.4]# ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for ANSI C header files... yes
checking for err.h... yes
checking for fcntl.h... yes
checking for sys/ioctl.h... yes
checking for sys/queue.h... yes
checking for unistd.h... yes
checking for libgen.h... yes
checking for net/if_tun.h... no
checking for MIN and MAX in sys/param.h... yes
checking for working const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for in_addr_t... no
checking whether gcc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking return type of signal handlers... void
checking for strftime... yes
checking for gethostname... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
checking for xdr_fhstatus in -lrpcsvc... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dn_expand in -lresolv... yes
checking for dirname... yes
checking for strlcpy... no
checking for strlcat... no
checking for strsep... yes
checking for MD5Update... no
checking for warnx... yes
checking for ether_ntoa... yes
checking for Berkeley DB with 1.85 compatibility... yes
checking for libpcap... yes
checking for libnet... yes
checking for libnids... yes
checking whether libnids version is good... yes
checking for OpenSSL... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
[root@localhost dsniff-2.4]#

that seems to work fine, then make:

[root@localhost dsniff-2.4]# make
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./missing/dummy.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./missing/strlcpy.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./missing/strlcat.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./missing/md5.c
ar -cr libmissing.a dummy.o strlcpy.o strlcat.o md5.o
ranlib libmissing.a
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./arpspoof.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./arp.c
gcc -o arpspoof arpspoof.o arp.o -lresolv -lnsl -lrpcsvc -L. -lmissing -L/usr/local/lib -lpcap -lnet
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./dnsspoof.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./pcaputil.c
gcc -o dnsspoof dnsspoof.o pcaputil.o -lresolv -lnsl -lrpcsvc -L. -lmissing -L/usr/local/lib -lpcap -lnet
rpcgen -h mount.x -o mount.h
rpcgen -c mount.x -o mount.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./asn1.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./base64.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./buf.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./hex.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./magic.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./mount.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./rpc.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./tcp_raw.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./trigger.c
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/X11R6/include -I./missing -c ./record.c
record.c: In function `record_save':
record.c:133: error: `R_NOOVERWRITE' undeclared (first use in this function)
record.c:133: error: (Each undeclared identifier is reported only once
record.c:133: error: for each function it appears in.)
record.c:133: warning: passing arg 2 of pointer to function from incompatible pointer type
record.c:133: error: too few arguments to function
record.c: In function `record_dump':
record.c:146: error: structure has no member named `seq'
record.c:146: error: `R_NEXT' undeclared (first use in this function)
record.c: In function `record_init':
record.c:170: warning: assignment makes pointer from integer without a cast
record.c: In function `record_close':
record.c:209: error: too few arguments to function
make: *** [record.o] Error 1
[root@localhost dsniff-2.4]#

so i get the same error as i get with out the patch which is whyi went to groar.org/patch/english.shtml in the first place, the only thing i can think is im not doing something right with the patch, here is a copy of the .diff file:

--- configure.in.orig Wed Dec 20 10:31:21 2000
+++ configure.in Mon Aug 26 11:05:43 2002
@@ -138,7 +138,19 @@
fi
done
if test "x$have_db" = "x"; then
- if test -f /usr/include/db2/db_185.h; then
+ if test -f /usr/include/db3/db_185.h -a \
+ -f /usr/lib/libdb-3.2.a; then
+ AC_DEFINE(HAVE_DB_185_H)
+ DBINC="-I/usr/include/db3"
+ DBLIB="-ldb-3.2"
+ have_db=yes
+ elif test -f /usr/include/db3/db_185.h -a \
+ -f /usr/lib/libdb-3.1.a; then
+ AC_DEFINE(HAVE_DB_185_H)
+ DBINC="-I/usr/include/db3"
+ DBLIB="-ldb-3.1"
+ have_db=yes
+ elif test -f /usr/include/db2/db_185.h; then
AC_DEFINE(HAVE_DB_185_H)
DBINC="-I/usr/include/db2"
DBLIB="-ldb2"
@@ -147,6 +159,12 @@
AC_DEFINE(HAVE_DB_185_H)
DBLIB="-ldb"
have_db=yes
+ elif test -f /usr/include/db1/db.h -a \
+ -f /usr/lib/libdb1.a; then
+ AC_DEFINE(HAVE_DB_H)
+ DBINC="-I/usr/include/db1"
+ DBLIB="-ldb1"
+ have_db=yes
elif test -f /usr/include/db.h; then
AC_DEFINE(HAVE_DB_H)
have_db=yes


is there some thing im missing???!!!! to make this work???!!! i have been searching the web over trying to find some more info to help me but like i said at the start theres not to much out there on compiling this software. any help with this problem would be greatly appreciated. and i promise not to abuse the software, can some one just help a brother out!!!!!!! PLEASE!!!!!!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem patching kernel abefroman Linux - Security 2 12-27-2004 11:38 PM
dsniff install problem buddamonk Linux - Software 2 12-14-2004 03:53 PM
problem with with patching mm kernel! bamboo123 Linux - General 2 02-02-2004 03:50 PM
Problem with dsniff pigna Linux - Software 0 12-10-2003 10:58 AM
kernel patching problem fridgehead Linux - General 1 08-23-2002 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration