1 May 2008 02:40
Re: Re: Sniffing in 802.11
Alexandru Burciu <alexbu <at> gmail.com>
2008-05-01 00:40:31 GMT
2008-05-01 00:40:31 GMT
Hi, A frame arrived on an interface in promiscuous mode that's not destinated to the host (pkt_type == PACKET_OTHERHOST) will be dropped by the network stack so it won't make it to the PREROUTING chain from Netfilter. There are patches that allow iptables to work with all the traffic from a promisc interface, ebtables might also help to rewrite the mac destination address... However, a quick and dirty hack would be creating a bridge interface. alex <at> ab-ub:~$ cat /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet manual auto br0 iface br0 inet dhcp bridge_ports eth0 The following rule redirects UDP traffic destinated to another host, port 1234 to yourself, port 1234. alex <at> ab-ub:~$ sudo iptables -t nat -A PREROUTING -i br0 -p udp -d 192.168.204.128 --dport 1234 -j REDIRECT --to-port 1234 Hope this helps, Alex(Continue reading)
Regards
Dirk
---------------------------------------------------------------------
To unsubscribe, send a mail to scapy.ml-unsubscribe <at> secdev.org
RSS Feed