From 985af3adfe3094f63efb735188affebfdb7a73fc Mon Sep 17 00:00:00 2001 From: Samuel Huckins Date: Mon, 30 Dec 2013 10:59:15 -0600 Subject: [PATCH] Update to masked credential format * To support change in Pro export format. Previous format looked like an XML element, for no reason, failed validation. --- lib/msf/core/db_manager/import_msf_xml.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/db_manager/import_msf_xml.rb b/lib/msf/core/db_manager/import_msf_xml.rb index 906ae489da..f3e37b2268 100644 --- a/lib/msf/core/db_manager/import_msf_xml.rb +++ b/lib/msf/core/db_manager/import_msf_xml.rb @@ -364,7 +364,7 @@ module Msf cred_data[datum.gsub("-","_").intern] = nils_for_nulls(cred.elements[datum].text.to_s.strip) end } - if cred_data[:pass] == "" + if cred_data[:pass] == "*MASKED*" cred_data[:pass] = "" cred_data[:active] = false elsif cred_data[:pass] == "*BLANK PASSWORD*"