From 368e37428e446f77cf3ebab739874170fe4e6f31 Mon Sep 17 00:00:00 2001 From: Jeffrey Martin Date: Mon, 28 Aug 2017 12:32:04 -0500 Subject: [PATCH] update nessus v2 import for consistent proto case --- lib/msf/core/db_manager/import/nessus/xml/v2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/db_manager/import/nessus/xml/v2.rb b/lib/msf/core/db_manager/import/nessus/xml/v2.rb index 00822d03b7..c17934074f 100644 --- a/lib/msf/core/db_manager/import/nessus/xml/v2.rb +++ b/lib/msf/core/db_manager/import/nessus/xml/v2.rb @@ -74,7 +74,7 @@ module Msf::DBManager::Import::Nessus::XML::V2 nasl = item['nasl'].to_s nasl_name = item['nasl_name'].to_s port = item['port'].to_s - proto = item['proto'] || "tcp" + proto = item['proto'] ? item['proto'].downcase : "tcp" sname = item['svc_name'] severity = item['severity'] description = item['description']