save os version info (usually windows service packs) and close the names tag, so we don't store every xml tag's text as a hostname

git-svn-id: file:///home/svn/framework3/trunk@12298 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-04-11 22:16:25 +00:00
parent 895e76afee
commit 36367f8a67
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ class NexposeXMLStreamParser
@host["os_vendor"] = attributes["vendor"]
@host["os_family"] = attributes["family"]
@host["os_product"] = attributes["product"]
@host["os_version"] = attributes["version"]
@host["arch"] = attributes["arch"]
@host["os_certainty"] = attributes["certainty"]
end
@ -76,7 +77,7 @@ class NexposeXMLStreamParser
when "vulnerability"
callback.call(:vuln, @vuln) if callback
reset_state
when "service","reference"
when "service","reference","names"
@state = :generic_state
end
end