fixed DHCP and ICMP spoofing calling wrong vars

This commit is contained in:
byt3bl33d3r 2015-06-05 21:06:20 +02:00
parent b0fa2e010d
commit ffdb4ff55c

View file

@ -77,7 +77,7 @@ class Spoof(Plugin):
if not options.targets: if not options.targets:
shutdown("[-] --icmp argument requires --targets") shutdown("[-] --icmp argument requires --targets")
icmp = ICMPpoisoner(options.interface, options.targets, options.gateway, options.ip_address) icmp = ICMPpoisoner(options.interface, options.targets, options.gateway, self.myip)
icmp.debug = debug icmp.debug = debug
self.protocolInstances.append(icmp) self.protocolInstances.append(icmp)
@ -87,7 +87,7 @@ class Spoof(Plugin):
if options.targets: if options.targets:
shutdown("[-] --targets argument invalid when DCHP spoofing") shutdown("[-] --targets argument invalid when DCHP spoofing")
dhcp = DHCPServer(options.interface, self.dhcpcfg, options.ip_address, options.mac_address) dhcp = DHCPServer(options.interface, self.dhcpcfg, self.myip, self.mymac)
dhcp.shellshock = options.shellshock dhcp.shellshock = options.shellshock
dhcp.debug = debug dhcp.debug = debug
self.protocolInstances.append(dhcp) self.protocolInstances.append(dhcp)