fix amap mlog import

git-svn-id: file:///home/svn/framework3/trunk@8041 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2009-12-31 01:11:53 +00:00
parent 7fc5ada4c6
commit 3bc1f935fa
1 changed files with 8 additions and 4 deletions

View File

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