Skip to content

Commit 1a66786

Browse files
committed
Fix Nmap XML parser for tunnel attribute
1 parent c7129e0 commit 1a66786

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rex/parser/nmap_nokogiri.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ def collect_port_data
277277
port_hash[:state] = determine_port_state(v)
278278
when "name"
279279
port_hash[:name] = v
280+
when "tunnel"
281+
port_hash[:name] = "#{v}/#{port_hash[:name] || 'unknown'}"
280282
when "reason"
281283
port_hash[:reason] = v
282284
when "product"

0 commit comments

Comments
 (0)