Skip to content

Commit f7abf96

Browse files
Merge pull request #20743 from zeroSteiner/fix/mssql-encryption-guard
Remove the TDSENCRYPTION Guard Clause
2 parents 0384917 + 334c599 commit f7abf96

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

modules/auxiliary/scanner/mssql/mssql_login.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,6 @@ def run_host(ip)
7474
@print_prefix = '' # remove the redundant prefix because #print_brute will add it
7575
print_brute level: :status, ip: ip, msg: 'MSSQL - Starting authentication scanner.'
7676

77-
if datastore['TDSENCRYPTION']
78-
if create_session?
79-
raise Msf::OptionValidateError.new(
80-
{
81-
'TDSENCRYPTION' => "Cannot create sessions when encryption is enabled. See https://github.com/rapid7/metasploit-framework/issues/18745 to vote for this feature."
82-
}
83-
)
84-
else
85-
print_brute level: :vstatus, ip: ip, msg: 'TDS Encryption enabled'
86-
end
87-
end
88-
8977
cred_collection = build_credential_collection(
9078
realm: datastore['DOMAIN'],
9179
username: datastore['USERNAME'],

0 commit comments

Comments
 (0)