From af2c124316f53969a3bdaedc146904a01a6c4ad3 Mon Sep 17 00:00:00 2001 From: byt3bl33d3r Date: Fri, 11 Jul 2014 20:23:05 +0200 Subject: [PATCH] iptables magic --- plugins/ArpSpoof.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/ArpSpoof.py b/plugins/ArpSpoof.py index 83ed7cb..cd71df4 100644 --- a/plugins/ArpSpoof.py +++ b/plugins/ArpSpoof.py @@ -38,6 +38,7 @@ class ArpSpoof(Plugin): file = open('/proc/sys/net/ipv4/ip_forward', 'w') file.write('1') file.close() + os.system('iptables -F && iptables -X && iptables -t nat -F && iptables -t nat -X') os.system('iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port %s' % self.port) if self.mode == 'req':