fix amap mlog import
git-svn-id: file:///home/svn/framework3/trunk@8041 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7fc5ada4c6
commit
3bc1f935fa
|
@ -1080,11 +1080,15 @@ class Db
|
|||
host = framework.db.find_or_create_host(:host => addr, :state => Msf::HostState::Alive)
|
||||
next if not host
|
||||
|
||||
service = framework.db.get_service(host, proto, port)
|
||||
if not service.name and name != "unidentified"
|
||||
service.name = name
|
||||
service.save
|
||||
info = {
|
||||
:host => host,
|
||||
:proto => proto,
|
||||
:port => port
|
||||
}
|
||||
if name != "unidentified"
|
||||
info[:name] = name
|
||||
end
|
||||
service = framework.db.find_or_create_service(info)
|
||||
end
|
||||
|
||||
fd.close
|
||||
|
|
Loading…
Reference in New Issue