Skip to content

Commit 7411490

Browse files
committed
Report unknown service names for consistency
1 parent d894502 commit 7411490

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +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"] != "unknown"
167+
if p["name"]
168168
data[:name] = p["name"]
169169
end
170170
if p['tunnel']

0 commit comments

Comments
 (0)