Land #6643, remove reference to Pcap.lookupaddrs

bug/bundler_fix
Adam Cammack 2016-03-08 12:38:22 -06:00
commit 8697798989
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class Metasploit3 < Msf::Auxiliary
raise RuntimeError ,'Source MAC is not in correct format' unless is_mac?(@smac) raise RuntimeError ,'Source MAC is not in correct format' unless is_mac?(@smac)
@sip = datastore['LOCALSIP'] @sip = datastore['LOCALSIP']
@sip ||= Pcap.lookupaddrs(@interface)[0] if @netifaces @sip ||= get_ipv4_addr(@interface)[0] if @netifaces
raise "LOCALSIP is not defined and can not be guessed" unless @sip raise "LOCALSIP is not defined and can not be guessed" unless @sip
raise "LOCALSIP is not an ipv4 address" unless Rex::Socket.is_ipv4?(@sip) raise "LOCALSIP is not an ipv4 address" unless Rex::Socket.is_ipv4?(@sip)