Solved

How do I install DSniff on IPCOP

Posted on 2007-11-17
4
2,612 Views
Last Modified: 2013-12-15
Could anyone give me detailed instructions on how it install dsniff on an IPCop box?

I need step by step instructions if possible?
0
Comment
Question by:itigroup
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 20309111
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
 

Author Closing Comment

by:itigroup
ID: 31409767
Thanks Heaps, I willl give it a run tonight.
0
 

Author Comment

by:itigroup
ID: 20311593
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
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 20311983
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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Do you have a windows based Checkpoint SmartCenter for centralized Checkpoint management?  Have you ever backed up the firewall policy residing on the SmartCenter?  If you have then you know the hassles of connecting to the server, doing an upgrade_…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question