SgtOneill

Installing Dsniff on Mac os X

3 posts in this topic

Hi everyone. I've been trying to install dsniff on my Macbook pro.

Yesterday i successfuly installed Ettercap and wireshark, i tried to get dsniff but im having some problem im not sure how to fix.

im using Darwin MacPorts (also tried Fink but fink doesnt find dsniff)

Heres the error i get when trying to install dsniff with Port

 sudo port install dsniff-devel 


---> Fetching dsniff-devel
---> Attempting to fetch dsniff-2.4b1.tar.gz from [url="http://monkey.org/~dugsong/dsniff/beta/"]http://monkey.org/~dugsong/dsniff/beta/[/url]
---> Verifying checksum(s) for dsniff-devel
---> Extracting dsniff-devel
---> Applying patches to dsniff-devel
---> Configuring dsniff-devel
---> Building dsniff-devel with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_dsniff-devel/work/dsniff-2.4" && make all " returned error 2
Command output: gcc -O2 -DBIND_8_COMPAT -D_BSD_SOURCE -DHAVE_SOCKADDR_SA_LEN -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DDSNIFF_LIBDIR=\"/opt/local/lib/\" -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/usr/X11R6/include -I./missing -c ./missing/dummy.c
gcc -O2 -DBIND_8_COMPAT -D_BSD_SOURCE -DHAVE_SOCKADDR_SA_LEN -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DDSNIFF_LIBDIR=\"/opt/local/lib/\" -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/usr/X11R6/include -I./missing -c ./missing/md5.c
ar -cr libmissing.a dummy.o md5.o
ranlib: file: libmissing.a(dummy.o) has no symbols
ranlib libmissing.a
ranlib: file: libmissing.a(dummy.o) has no symbols
gcc -O2 -DBIND_8_COMPAT -D_BSD_SOURCE -DHAVE_SOCKADDR_SA_LEN -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DDSNIFF_LIBDIR=\"/opt/local/lib/\" -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/usr/X11R6/include -I./missing -c ./arpspoof.c
In file included from ./arpspoof.c:25:
./arp.h:14: warning: 'struct ether_addr' declared inside parameter list
./arp.h:14: warning: its scope is only this definition or declaration, which is probably not what you want
./arpspoof.c:28: warning: 'struct ether_addr' declared inside parameter list
./arpspoof.c: In function 'arp_send':
./arpspoof.c:51: warning: passing argument 1 of 'libnet_get_hwaddr' from incompatible pointer type
./arpspoof.c:51: error: too many arguments to function 'libnet_get_hwaddr'
./arpspoof.c:60: warning: pointer targets in assignment differ in signedness
./arpspoof.c:62: warning: passing argument 6 of 'libnet_build_ethernet' from incompatible pointer type
./arpspoof.c:62: error: too few arguments to function 'libnet_build_ethernet'
./arpspoof.c:66: error: 'ETH_H' undeclared (first use in this function)
./arpspoof.c:66: error: (Each undeclared identifier is reported only once
./arpspoof.c:66: error: for each function it appears in.)
./arpspoof.c:66: error: too few arguments to function 'libnet_build_arp'
./arpspoof.c:69: warning: passing argument 1 of 'ether_ntoa' from incompatible pointer type
./arpspoof.c:73: warning: passing argument 1 of 'ether_ntoa' from incompatible pointer type
./arpspoof.c:79: warning: passing argument 1 of 'ether_ntoa' from incompatible pointer type
./arpspoof.c:82: warning: passing argument 1 of 'ether_ntoa' from incompatible pointer type
./arpspoof.c: In function 'arp_find':
./arpspoof.c:116: warning: passing argument 2 of 'arp_cache_lookup' from incompatible pointer type
./arpspoof.c: In function 'main':
./arpspoof.c:185: warning: assignment makes pointer from integer without a cast
make: *** [arpspoof.o] Error 1

Error: Status 1 encountered during processing.

anyone knows how to fix this, and make it able to compile dsniff?

Thanks in advance.

0

Share this post


Link to post
Share on other sites

I'm not entirely sure about your specific problem but I dug up this old thread about issues compiling dnsiff with slackware...

dsniff, compilation errors solved!

That has me and tehbizz hacking out a fix for the then broken version of dsniff. There are a few links to patched versions and the like.

You should try compiling from source and see where that gets you, then we'll just tackle the errors one at a time. Are you certain you have all the dependencies?

<forgive me if I've said anything silly, I'm not a mac user>

Dr^ZigMan

0

Share this post


Link to post
Share on other sites

The problem is somewhere around the libnet's. I have version 1.1 atm

i downloaded the patched version of dsniff from

http://www.groar.org/patch/english.shtml

when i try to compile i get the following error:

"checking for libnet... no

configure: error: libnet not found"

wich is weird cause i double checked and i have libnet1.1 installed. However there seems to be some incompactability with libnet1.0 and 1.1.

not sure what to do, im gonna try to uninstall libnet 1.1 and install 1.0 and then compile and see what happens.

ok it seems i cant remove libnet because some other packages are using it.

SysAdmin:~/Desktop/dsniff-2.4b1-sined-2 Brain$ fink remove --recursive libnet

Information about 2649 packages read in 0 seconds.

/sw/bin/apt-get-lockwait remove libnet

Reading Package Lists... Done

Building Dependency Tree... Done

The following packages will be REMOVED:

libnet

0 packages upgraded, 0 newly installed, 1 to remove and 1 not upgraded.

Need to get 0B of archives. After unpacking 483kB will be freed.

Do you want to continue? [Y/n] Y

dyld: Library not loaded: /sw/lib/libiconv.2.dylib

Referenced from: /sw/bin/dpkg

Reason: Incompatible library version: dpkg requires version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0

E: Sub-process /sw/bin/dpkg exited unexpectedly

### execution of /sw/bin/apt-get-lockwait failed, exit code 100

Failed: can't remove package libnet

Im out of ideas for now.

Edited by SgtOneill
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now