From d894502148a81b7b6c5f39f568e1a719b214f30e Mon Sep 17 00:00:00 2001 From: William Vu Date: Mon, 20 Apr 2015 17:15:35 -0500 Subject: [PATCH] Update legacy Nmap XML parser --- lib/msf/core/db_manager/import/nmap.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/msf/core/db_manager/import/nmap.rb b/lib/msf/core/db_manager/import/nmap.rb index 2be567c395..b8024c5c17 100644 --- a/lib/msf/core/db_manager/import/nmap.rb +++ b/lib/msf/core/db_manager/import/nmap.rb @@ -167,6 +167,9 @@ module Msf::DBManager::Import::Nmap if p["name"] != "unknown" data[:name] = p["name"] end + if p['tunnel'] + data[:name] = "#{p['tunnel']}/#{data['name'] || 'unknown'}" + end report_service(data) } #Parse the scripts output