ggreer / dsniff

Dug Song seems to have abandoned dsniff. I got it to work with the latest OS X & Homebrew libraries.
Other
339 stars 83 forks source link

How to configure? How to compile? #10

Open Jones-S opened 6 years ago

Jones-S commented 6 years ago

Hi there Sorry for the question, but I am struggling with getting this to work.

I got the brew installation but from there I'm stuck. This has mainly to do with the next step:

2. Configure with correct paths:

./configure \
  --with-libpcap=/usr/local/opt/libpcap \
  --with-openssl=/usr/local/opt/openssl \
  --with-libnet=/usr/local/opt/libnet \
  --with-libnids=/usr/local/opt/libnids \
  --without-x

3. Compile:

make

4. Install:

make install

What do I want to configure and how do I do that? Do I have to set the PATH of my shell? I would not know any other than that.

Also the next steps don't really make sense to me. If I just type $ make I just get make: *** No targets specified and no makefile found. Stop. I guess that the $ make command is to compile my application, but where is that makefile?

Sorry for the noobish questions, but maybe you could enlighten me a bit and maybe some other people having the same trouble could profit as well... 🤷‍♂️

Thanks

Jones-S commented 6 years ago

Ok sorry one thing I totally forgot obviously. I cloned your repo and opened it in the terminal. I'm guessing that's where I have to compile it somehow. I still don't understand how to configure it though. Also $ make still would do nothing...

Jones-S commented 6 years ago

Ok I found more: I had to enter the $ ./configure \ command on its own and after that the five configuration lines. after that I could use $ make and $ make install.

Now I still don't know how to run a command included in dsniff. Let's say I want to run $ arpspoof – how would I do that?

Jones-S commented 6 years ago

Ok. Sorry for the monologue. But maybe it helps another helpless person like me one day: At first I could not use $ arpspoof. In the terminal after the make install command I did see that something was linked to /usr/local/sbin so I thought it does not harm adding this path to my PATH export by adding :/usr/local/sbin

After restarting my terminal I can use the $ arpspoof command now.


I was also able to use $ urlsnarf, $ dsniff or $ filesnarf but when I use $ webspy it tells me again that the command is not found. Do I have to change the PATH again? Or was this not installed?

HudsonGraeme commented 5 years ago

Ok. Sorry for the monologue. But maybe it helps another helpless person like me one day: At first I could not use $ arpspoof. In the terminal after the make install command I did see that something was linked to /usr/local/sbin so I thought it does not harm adding this path to my PATH export by adding :/usr/local/sbin

After restarting my terminal I can use the $ arpspoof command now.

I was also able to use $ urlsnarf, $ dsniff or $ filesnarf but when I use $ webspy it tells me again that the command is not found. Do I have to change the PATH again? Or was this not installed?

Thank you - hours of poking around and your solution worked :) cheers Do sudo nano /etc/paths, add /usr/local/sbin to permanently add this to path

mrbluecoat commented 5 years ago

Possible alternative: https://github.com/smikims/arpspoof

cristmario2003 commented 4 years ago

Possible alternative: https://github.com/smikims/arpspoof

I tried to git clone it from here but after that i don't know what to do can you help me please.If i write arpspoof in the terminal it sais command not found

mrbluecoat commented 4 years ago

@cristmario2003 you'll need to compile it from code. Try:

sudo apt install build-essential
make
make install
cristmario2003 commented 4 years ago

@cristmario2003 you'll need to compile it from code. Try:


sudo apt install build-essential
make
make install
`
I am realy not used with linux and still don't know how to do it can you please explain step by step please?
cristmario2003 commented 4 years ago

And one more thing why sudo apt install command won't install anything? I tried to install many things and it won't ever work