iptables magic

This commit is contained in:
byt3bl33d3r 2014-07-11 20:23:05 +02:00
commit af2c124316

View file

@ -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':