Skip processing of dead hosts. Sometimes the host is already found using another method and nmap will mark the live host as dead again
git-svn-id: file:///home/svn/framework3/trunk@8501 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
a2f9f1bb7a
commit
8c3ee77f3b
|
@ -1157,6 +1157,9 @@ class DBManager
|
|||
end
|
||||
data[:state] = (h["status"] == "up") ? Msf::HostState::Alive : Msf::HostState::Dead
|
||||
|
||||
# Do not store dead hosts
|
||||
return if data[:state] == Msf::HostState::Dead
|
||||
|
||||
# XXX: There can be multiple matches, but we only see the *last* right now
|
||||
if (h["os_accuracy"] and h["os_accuracy"].to_i > 95)
|
||||
data[:os_name] = h["os_vendor"]
|
||||
|
|
Loading…
Reference in New Issue