LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2009, 06:01 AM   #1
Panci
LQ Newbie
 
Registered: Nov 2005
Location: Italy
Distribution: Slackware 12.1
Posts: 22

Rep: Reputation: 0
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
 
Old 02-02-2009, 12:28 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 02-02-2009, 01:04 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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' .........
....

Last edited by knudfl; 02-02-2009 at 03:45 PM.
 
Old 02-02-2009, 04:27 PM   #4
Panci
LQ Newbie
 
Registered: Nov 2005
Location: Italy
Distribution: Slackware 12.1
Posts: 22

Original Poster
Rep: Reputation: 0
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

Last edited by Panci; 02-02-2009 at 07:15 PM.
 
Old 02-18-2009, 02:50 PM   #5
maome
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Rep: Reputation: 0
Follow the instructions on howto install dsniff or use the dsniff install script
 
  


Reply



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
dsniff 'make' error jamil5454 Slackware 6 02-25-2009 02:45 AM
Dsniff on slackware? mustangfanatic01 Slackware 3 03-06-2006 12:19 AM
compiling dsniff on slackware 10.2 new problem downsys Linux - Networking 0 02-15-2006 06:33 PM
dsniff make error ferreter Fedora 0 09-24-2004 06:27 PM
dsniff 'make' error heffdini Linux - Software 2 01-20-2004 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:51 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