From b1c40fb3acf201f4b8b54dfb8dd326043c479ede Mon Sep 17 00:00:00 2001 From: HD Moore Date: Thu, 23 Jul 2009 11:47:10 +0000 Subject: [PATCH] Apply a patch to arp_sweep to record the mac of the hosts git-svn-id: file:///home/svn/framework3/trunk@6885 4d416f70-5f16-0410-b530-b9f4589650da --- modules/auxiliary/scanner/discovery/arp_sweep.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/discovery/arp_sweep.rb b/modules/auxiliary/scanner/discovery/arp_sweep.rb index 3849e34fad..55981f574c 100644 --- a/modules/auxiliary/scanner/discovery/arp_sweep.rb +++ b/modules/auxiliary/scanner/discovery/arp_sweep.rb @@ -45,7 +45,9 @@ class Metasploit3 < Msf::Auxiliary while(reply = getreply()) next if not reply[:arp] - print_status("#{reply[:arp].spa} is at #{reply[:arp].sha}") + print_status("#{reply[:arp].spa} appears to be up.") + + report_host(:host => reply[:arp].spa, :mac=>reply[:arp].sha) end end @@ -53,7 +55,9 @@ class Metasploit3 < Msf::Auxiliary while (Time.now.to_f < etime) while(reply = getreply()) next if not reply[:arp] - print_status("#{reply[:arp].spa} is at #{reply[:arp].sha}") + print_status("#{reply[:arp].spa} appears to be up.") + + report_host(:host => reply[:arp].spa, :mac=>reply[:arp].sha) end Kernel.select(nil, nil, nil, 0.50) end