Foro de elhacker.net

Seguridad Informática => Wireless en Linux => Mensaje iniciado por: felisuki en 7 Octubre 2010, 13:52 pm



Título: ¿Habeis probado arpspoof en wifiway 2?? No me funciona.
Publicado por: felisuki en 7 Octubre 2010, 13:52 pm
Código:
wifiway ~ # arpspoof -i wlan1 -t 192.168.1.129 192.168.1.1
arpspoof: couldn't arp for host 192.168.1.1
wifiway ~ #

He encontrado esto:

Q:

Every time I attempt to execute arpspoof I get the following error: arpspoof: couldn't arp for host 10.1.1.1. I have tried various command line switches and nothing appears to work.

A;

I received this error on my Slackware 11 installation which was compiled from source as opposed to using a package manager. The function arp_cache_lookup does not use the correct interface when running under Linux .. it always uses interface "eth0".. Don't fret, we can change this without too much effort. Change directory to where you unpacked dsniff to, you will want to find the file arp.c and edit a single parameter within it. Using your favorite editor open arp.c and change the following:

strncpy(ar.arp_dev, "eth0", sizeof(ar.arp_dev));

to

strncpy(ar.arp_dev, "wlan0", sizeof(ar.arp_dev));

Save the file and recompile the application.

If you have other issues, you got it running properly or you just want to drop a line feel free to leave a comment.

May Your Skill Prevail.

Fuente: http://blog.ironguard.net/2007/06/how-to-use-webspy-from-dsniff-suite.html

Pero no tengo ni una minima idea de como aplicarlo, ya que no encuentro ese supuesto archivo arp.c

Decir que estoy utilizando wifiway 2 en un usb.

La pregunta por si me he enrollado mucho es:

¿A alguien mas le pasa o es solo a mi?

Si solo es a mi. ¿Por que puede ser??

Soy novato profundo.  Saludos y Gracias !


Título: Re: ¿Habeis probado arpspoof en wifiway 2?? No me funciona.
Publicado por: ChimoC en 7 Octubre 2010, 17:34 pm
Buenas:

Ahora con Wifiway 2 la interfaz en modo monitor es monX (creo que te la dará como mon0) por lo que debes substituir wlan1 por monX (donde X es 0, 1, 2 ....)

Recuerda

airmon-ng start wlanX (X es 0,1,2,3...... como la observes con iwconfig)

Y te creará la monitor enabled en monX (X ....)

Un saludete

ChimoC


Título: Re: ¿Habeis probado arpspoof en wifiway 2?? No me funciona.
Publicado por: felisuki en 8 Octubre 2010, 14:22 pm
Ouch !.

Mil Gracias !!!!

EDITO:
Código:
wifiway ~ # iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"JAZZTEL_xx"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:1A:2B:xx:xx:xx
          Bit Rate=54 Mb/s   Tx-Power=20 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
          Power Management:off
          Link Quality=48/70  Signal level=-62 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

mon0      IEEE 802.11bg  Mode:Monitor  Tx-Power=20 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

wifiway ~ # arpspoof -i mon0 -t 192.168.1.135 192.168.1.1
arpspoof: Error in init libnet |libnet_select_device(): Can't find interface mon0

|

wifiway ~ # arpspoof -i wlan0 -t 192.168.1.135 192.168.1.1
arpspoof: couldn't arp for host 192.168.1.135
wifiway ~ #   

Se que es una tonteria, pero no encuentro info sobre esto. Gracias !