LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Dsniff building Error Slackware 12.1 (https://www.linuxquestions.org/questions/slackware-14/dsniff-building-error-slackware-12-1-a-701606/)

Panci 02-02-2009 06:01 AM

Dsniff building Error Slackware 12.1
 
Hi,

I know that there are a lot of similar post but none of them gives a working solution...

Someone can explain me how i can compile dsniff 2.3 on my Slackware box,
is there any package or alternative,

the ./configure script doesn't give errors these are the building error

I install all the required software:

Code:

gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I.      -I./missing -c ./arpspoof.c
./arpspoof.c: In function 'arp_send':
./arpspoof.c:49: warning: passing argument 1 of 'libnet_get_hwaddr' from incompatible pointer type
./arpspoof.c:49: error: too many arguments to function 'libnet_get_hwaddr'
./arpspoof.c:60: warning: passing argument 6 of 'libnet_build_ethernet' from incompatible pointer type
./arpspoof.c:60: error: too few arguments to function 'libnet_build_ethernet'
./arpspoof.c:64: error: 'ETH_H' undeclared (first use in this function)
./arpspoof.c:64: error: (Each undeclared identifier is reported only once
./arpspoof.c:64: error: for each function it appears in.)
./arpspoof.c:64: error: too few arguments to function 'libnet_build_arp'
./arpspoof.c: In function 'main':
./arpspoof.c:181: warning: assignment makes pointer from integer without a cast
make: *** [arpspoof.o] Error 1


Thanks

MS3FGX 02-02-2009 12:28 PM

As I recall dsniff doesn't compile on modern operating systems without patching and some work arounds because it uses very old versions of libraries (libnids and libnet).

From what I remember, most people just suggested finding a binary that was statically linked to the problem libraries. Failing that, searching online found some pages documenting dsniff patches, but I don't know if even they themselves have now become outdated.

knudfl 02-02-2009 01:04 PM

Hard work, but doable ......

'dsniff-2.3' is from year 2000 ( for gcc-2.95 ? )
'dsniff-2.4b1' ( 2001 ) : patches available for gcc-4.x .

libnet-1.1.2(.1), libnids-1.23 , buildt with shared libs are required.
I used
http://packages.debian.org/lenny/libnet1
[libnet_1.1.2.1.orig.tar.gz], [libnet_1.1.2.1-2.diff.gz]
( The Slackbuild : no shared libs ?? )
http://packages.debian.org/lenny/libnids1.21
[libnids_1.23.orig.tar.gz], [libnids_1.23-1.diff.gz]
( --enable-shared )
.......

'dsniff'
http://packages.debian.org/lenny/dsniff
[dsniff_2.4b1+debian.orig.tar.gz], [dsniff_2.4b1+debian-18.diff.gz]

Unpack 'dsniff' and
rename dsniff-2.4 to dsniff-2.4b1+debian
patch -p0 < dsniff_2.4b1+debian-18.diff

Copy dsniff-2.4b1+debian/debian/patches 07..12 outside
dsniff-2.4b1+debian/
Copy dsniff-2.4b1+debian/debian/patches 01..06, 13, 14, 20
to dsniff-2.4b1+debian/
cd dsniff-2.4b1+debian/ , apply 01-06, 20 .
edit 13, 14 : delete the text " trunk*/ ", then apply.
'cd ../' to apply 10, 11, 12 outside dsniff
mv dsniff-2.4b1+debian/ dsniff-2.4b1
apply 07...09. = 5 patches outside dsniff-2.4b1/

'.configure' .. 'make' .. 'make install' .........
....

Panci 02-02-2009 04:27 PM

I simply download the 2.4 beta version and build it and it worked.

I had only to add some include in the sshcrypto.c
#include <openssl/des.h>
#include <openssl/blowfish.h>

Thanks anyway

maome 02-18-2009 02:50 PM

Follow the instructions on howto install dsniff or use the dsniff install script


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