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
unstable
HD Moore 2009-07-23 11:47:10 +00:00
parent ed024f82aa
commit b1c40fb3ac
1 changed files with 6 additions and 2 deletions

View File

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