mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-08 05:51:48 -07:00
fixes #96
This commit is contained in:
parent
e913e6ae75
commit
f86457b300
2 changed files with 4 additions and 9 deletions
|
@ -48,8 +48,6 @@ class Spoof(Plugin):
|
|||
|
||||
#Makes scapy more verbose
|
||||
debug = False
|
||||
if options.log_level == 'debug':
|
||||
debug = True
|
||||
|
||||
if options.arp:
|
||||
|
||||
|
@ -98,9 +96,7 @@ class Spoof(Plugin):
|
|||
|
||||
if not options.manualiptables:
|
||||
if IpTables.getInstance().dns is False:
|
||||
IpTables.getInstance().DNS(self.myip, self.dnscfg['port'])
|
||||
|
||||
DNSChef.getInstance().loadRecords(self.dnscfg)
|
||||
IpTables.getInstance().DNS(self.dnscfg['port'])
|
||||
|
||||
if not options.arp and not options.icmp and not options.dhcp and not options.dns:
|
||||
shutdown("[-] Spoof plugin requires --arp, --icmp, --dhcp or --dns")
|
||||
|
@ -108,7 +104,6 @@ class Spoof(Plugin):
|
|||
SystemConfig.setIpForwarding(1)
|
||||
|
||||
if not options.manualiptables:
|
||||
IpTables.getInstance().Flush()
|
||||
if IpTables.getInstance().http is False:
|
||||
IpTables.getInstance().HTTP(options.listen)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue