Don't use Pcap.lookupaddrs any more
parent
184bd1e0b2
commit
b8e17c2d8e
|
@ -74,7 +74,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
# this is needed on windows cause we send interface directly to Pcap functions
|
# this is needed on windows cause we send interface directly to Pcap functions
|
||||||
@interface = get_interface_guid(@interface)
|
@interface = get_interface_guid(@interface)
|
||||||
@iface_ip = datastore['LOCALIP']
|
@iface_ip = datastore['LOCALIP']
|
||||||
@iface_ip ||= Pcap.lookupaddrs(@interface)[0] if netifaces
|
@iface_ip ||= get_ipv4_addr(@interface) if netifaces
|
||||||
raise "Interface IP is not defined and can not be guessed" unless @iface_ip
|
raise "Interface IP is not defined and can not be guessed" unless @iface_ip
|
||||||
|
|
||||||
# start with blank slate
|
# start with blank slate
|
||||||
|
|
Loading…
Reference in New Issue