Skip to content

Commit 796404c

Browse files
authored
Merge pull request #20541 from zeroSteiner/fix/smb-login-nil-passwords
Fix a regression in smb_login
2 parents 59f1dd4 + 3e396ce commit 796404c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def initialize
6767
]
6868
)
6969

70-
options_to_deregister = %w[USERNAME PASSWORD CommandShellCleanupCommand AutoVerifySession]
70+
options_to_deregister = %w[USERNAME PASSWORD CommandShellCleanupCommand AutoVerifySession KrbCacheMode]
7171

7272
if framework.features.enabled?(Msf::FeatureManager::SMB_SESSION_TYPE)
7373
add_info('New in Metasploit 6.4 - The %grnCreateSession%clr option within this module can open an interactive session')
@@ -178,7 +178,7 @@ def run_host(ip)
178178
realm: domain,
179179
username: datastore['SMBUser'],
180180
password: datastore['SMBPass'],
181-
ignore_private: datastore['SMB::Auth'] == Msf::Exploit::Remote::AuthOption::KERBEROS && !datastore['PASSWORD']
181+
nil_passwords: datastore['SMB::Auth'] == Msf::Exploit::Remote::AuthOption::KERBEROS && !datastore['PASSWORD']
182182
)
183183
cred_collection = prepend_db_hashes(cred_collection)
184184

0 commit comments

Comments
 (0)