• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2739
  • Last Modified:

How do I install DSniff on IPCOP

Could anyone give me detailed instructions on how it install dsniff on an IPCop box?

I need step by step instructions if possible?
0
itigroup
Asked:
itigroup
  • 2
  • 2
1 Solution
 
Duncan RoeSoftware DeveloperCommented:
First of all, I assume you got a source tarball (file name ending .tgz) fro the home site http://www.monkey.org/~dugsong/dsniff/
Unpack the tarball to some convenient location:

08:02:45$ cd /tmp
08:07:31$ tar -xzf /usr/gz/dsniff-2.3.tar.gz  # Your path will likely be different
08:07:45$ cd dsniff-2.3     # created by previous command

You may need to get extra libraries. To find out what's missing, run ./configure. Before that, to find out where the package will install, you might like to run:

08:08:07$ ./configure --help

 If you're happy with the defaults, just run "./configure" from now on. In my examples, you'll see I use non-default locations - my reasons for doing that probably don't apply to you:

08:08:24$ ./configure --prefix=/usr --libdir=/usr/lib64
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
(lots more lines starting "checking" until ...)
checking for libpcap... yes
checking for libnet... no
configure: error: libnet not found
08:10:02$

At this point I google for libnet. and find http://libnet.sourceforge.net/. I go there, follow the links to the download page, and retrieve libnet-0.10.11.tar.gz.
This package doesn't install the usual way. There's no configure script, instead a readme.txt that I don't have time to look at right now.

So I'll have to come back to this Q later. itigroup - if ./configure gets right through for you, next thing you do is:

make

If that completes successfully, you finish the process by doing:

make install

That last step needs to be done as root. DO OTHER STEPS AS A NON-ROOT USER!  Sorry for shouting, but questioners have ignored that advice in the past and at least one of them severely corrupted his system - ask for details if you like.

Good luck with the build and I'll finish the step-by-step tonight
0
 
itigroupAuthor Commented:
Thanks Heaps, I willl give it a run tonight.
0
 
itigroupAuthor Commented:
Hi,

A little more advice, here his where I got to so far, I run into aproblem with ./configure what an I doing wrong?

Bruce

root@gw4:~ # tar -xzf dsniff-2.3.tar.gz
root@gw4:~ # ls
addons                    copfilter-0.84beta2     dsniff-2.3.tar.gz
addons-2.3-CLI-b2.tar.gz  copfilter-0.84beta2.gz  ipcop-advproxy
copfilter                 dsniff-2.3              ipcop-advproxy-2.1.5.tar.gz
root@gw4:~ # cd dniff-2.3
-bash: cd: dniff-2.3: No such file or directory
root@gw4:~ # cd dsniff-2.3
root@gw4:~/dsniff-2.3 # ls
acconfig.h       decode_http.c        decode_socks.c   magic.h      ssh.h
arp.c            decode_icq.c         decode_tds.c     mailsnarf.8  sshmitm.8
arpspoof.8       decode_imap.c        decode_telnet.c  mailsnarf.c  sshmitm.c
arpspoof.c       decode_irc.c         decode_vrrp.c    Makefile.in  tcpkill.8
asn1.c           decode_ldap.c        decode_x11.c     missing      tcpkill.c
asn1.h           decode_mmxp.c        decode_yp.c      mount.x      tcpnice.8
base64.c         decode_mountd.c      dnsspoof.8       msgsnarf.8   tcpnice.c
base64.h         decode_napster.c     dnsspoof.c       msgsnarf.c   tcp_raw.c
buf.c            decode_nntp.c        dnsspoof.hosts   nfs_prot.x   tcp_raw.h
buf.h            decode_oracle.c      dsniff.8         options.h    TODO
CHANGES          decode_ospf.c        dsniff.c         pathnames.h  trigger.c
config.h.in      decode_pcanywhere.c  dsniff.magic     pcaputil.c   trigger.h
configure        decode_pop.c         dsniff.services  pcaputil.h   urlsnarf.8
configure.in     decode_portmap.c     filesnarf.8      README       urlsnarf.c
CVS              decode_postgresql.c  filesnarf.c      record.c     version.h
decode_aim.c     decode_pptp.c        hex.c            record.h     vroot.h
decode.c         decode_rip.c         hex.h            remote.c     webmitm.8
decode_citrix.c  decode_rlogin.c      install-sh       rpc.c        webmitm.c
decode_cvs.c     decode_smb.c         LICENSE          rpc.h        webspy.8
decode_ftp.c     decode_smtp.c        macof.8          ssh.c        webspy.c
decode.h         decode_sniffer.c     macof.c          sshcrypto.c
decode_hex.c     decode_snmp.c        magic.c          sshcrypto.h
root@gw4:~/dsniff-2.3 # ./configure
creating cache ./config.cache
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
root@gw4:~/dsniff-2.3 # ./configure --prefix=/usr --libdir=/usr/lib64
loading cache ./config.cache
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
root@gw4:~/dsniff-2.3 #
root@gw4:~/dsniff-2.3 #
0
 
Duncan RoeSoftware DeveloperCommented:
You need to install the C compiler gcc. It should be on your distribution media.
You may also need to install binutils and make.
Don't use my options to configure unless you know what you are doing! I have a 64-bit system but wish to keep the ability to boot 32-bit, hence I ensure 64-bit libraries always go in lib64. Do you have a 64-bit system (not just 64-bit capable, do you run a 64-bit kernel?)
Also because various root candidates share /usr/local, I have a rule that it only contains 32-bit stuff.
This is not a typical setup.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now