lib/rex/parser/nexpose_xml.rb in librex-0.0.28 vs lib/rex/parser/nexpose_xml.rb in librex-0.0.29

- old
+ new

@@ -27,10 +27,11 @@ # Take only the highest certainty if not @host["os_certainty"] or (@host["os_certainty"].to_f < attributes["certainty"].to_f) @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 when "name" #@host["names"].push attributes["name"] @@ -74,10 +75,10 @@ callback.call(:host, @host) if callback reset_state when "vulnerability" callback.call(:vuln, @vuln) if callback reset_state - when "service","reference" + when "service","reference","names" @state = :generic_state end end # We don't need these methods, but they're necessary to keep REXML happy