Skip to content

Commit d894502

Browse files
committed
Update legacy Nmap XML parser
1 parent 1a66786 commit d894502

File tree

1 file changed

+3
-0
lines changed
  • lib/msf/core/db_manager/import

1 file changed

+3
-0
lines changed

lib/msf/core/db_manager/import/nmap.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ def import_nmap_xml(args={}, &block)
167167
if p["name"] != "unknown"
168168
data[:name] = p["name"]
169169
end
170+
if p['tunnel']
171+
data[:name] = "#{p['tunnel']}/#{data['name'] || 'unknown'}"
172+
end
170173
report_service(data)
171174
}
172175
#Parse the scripts output

0 commit comments

Comments
 (0)