Fix report_note fail @ L77 when vendor MAC is not in OUI list
parent
44dd8b0cc5
commit
061b60e3e1
|
@ -71,7 +71,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
while(reply = getreply())
|
while(reply = getreply())
|
||||||
next unless reply.is_arp?
|
next unless reply.is_arp?
|
||||||
company = OUI_LIST::lookup_oui_company_name(reply.arp_saddr_mac)
|
company = OUI_LIST::lookup_oui_company_name(reply.arp_saddr_mac) || 'Vendor Unknown'
|
||||||
print_status("#{reply.arp_saddr_ip} appears to be up (#{company}).")
|
print_status("#{reply.arp_saddr_ip} appears to be up (#{company}).")
|
||||||
report_host(:host => reply.arp_saddr_ip, :mac=>reply.arp_saddr_mac)
|
report_host(:host => reply.arp_saddr_ip, :mac=>reply.arp_saddr_mac)
|
||||||
report_note(:host => reply.arp_saddr_ip, :type => "mac_oui", :data => company)
|
report_note(:host => reply.arp_saddr_ip, :type => "mac_oui", :data => company)
|
||||||
|
|
Loading…
Reference in New Issue