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)
|
host = framework.db.find_or_create_host(:host => addr, :state => Msf::HostState::Alive)
|
||||||
next if not host
|
next if not host
|
||||||
|
|
||||||
service = framework.db.get_service(host, proto, port)
|
info = {
|
||||||
if not service.name and name != "unidentified"
|
:host => host,
|
||||||
service.name = name
|
:proto => proto,
|
||||||
service.save
|
:port => port
|
||||||
|
}
|
||||||
|
if name != "unidentified"
|
||||||
|
info[:name] = name
|
||||||
end
|
end
|
||||||
|
service = framework.db.find_or_create_service(info)
|
||||||
end
|
end
|
||||||
|
|
||||||
fd.close
|
fd.close
|
||||||
|
|
Loading…
Reference in New Issue