diff --git a/modules/auxiliary/analyze/jtr_mssql_fast.rb b/modules/auxiliary/analyze/jtr_mssql_fast.rb index 2e938a5966..d0ad2f3551 100644 --- a/modules/auxiliary/analyze/jtr_mssql_fast.rb +++ b/modules/auxiliary/analyze/jtr_mssql_fast.rb @@ -83,7 +83,7 @@ class Metasploit3 < Msf::Auxiliary def hash_file hashlist = Rex::Quickfile.new("hashes_tmp") - Metasploit::Credential::NonreplayableHash.joins(:cores).where(metasploit_credential_cores: { workspace_id: myworkspace.id }, jtr_format: ['mssql', 'mssql05']).each do |hash| + Metasploit::Credential::NonreplayableHash.joins(:cores).where(metasploit_credential_cores: { workspace_id: myworkspace.id }, jtr_format: ['mssql', 'mssql05', 'mssql12']).each do |hash| # Track the formats that we've seen so we do not attempt a format that isn't relevant @formats << hash.jtr_format hash.cores.each do |core| diff --git a/modules/auxiliary/scanner/mssql/mssql_hashdump.rb b/modules/auxiliary/scanner/mssql/mssql_hashdump.rb index 4d80fd3053..72a771179a 100644 --- a/modules/auxiliary/scanner/mssql/mssql_hashdump.rb +++ b/modules/auxiliary/scanner/mssql/mssql_hashdump.rb @@ -97,8 +97,10 @@ class Metasploit3 < Msf::Auxiliary when "2000" hashtype = "mssql" - when "2005", "2008", "2012", "2014" + when "2005", "2008" hashtype = "mssql05" + when "2012", "2014" + hashtype = "mssql12" end this_service = report_service(