Don't use Pcap.lookupaddrs any more

bug/bundler_fix
Tod Beardsley 2014-01-01 18:50:15 -06:00
parent 184bd1e0b2
commit b8e17c2d8e
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class Metasploit3 < Msf::Auxiliary
# this is needed on windows cause we send interface directly to Pcap functions
@interface = get_interface_guid(@interface)
@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
# start with blank slate