Fix report_note fail @ L77 when vendor MAC is not in OUI list

unstable
RageLtMan 2012-08-04 16:30:02 -04:00
parent 44dd8b0cc5
commit 061b60e3e1
1 changed files with 1 additions and 1 deletions

View File

@ -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)