Skip to content

Commit 74ad81c

Browse files
committed
Consolidate tunnel check into name check
1 parent 7411490 commit 74ad81c

File tree

1 file changed

+1
-6
lines changed
  • lib/msf/core/db_manager/import

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,7 @@ def import_nmap_xml(args={}, &block)
164164
data[:host] = hobj || addr
165165
data[:info] = extra if not extra.empty?
166166
data[:task] = args[:task]
167-
if p["name"]
168-
data[:name] = p["name"]
169-
end
170-
if p['tunnel']
171-
data[:name] = "#{p['tunnel']}/#{data['name'] || 'unknown'}"
172-
end
167+
data[:name] = p['tunnel'] ? "#{p['tunnel']}/#{p['name'] || 'unknown'}" : p['name']
173168
report_service(data)
174169
}
175170
#Parse the scripts output

0 commit comments

Comments
 (0)