mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-08-14 02:37:06 -07:00
iptables magic
This commit is contained in:
parent
aa89c7f6ed
commit
af2c124316
1 changed files with 1 additions and 0 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue