Skip to content

Commit 28b9412

Browse files
committed
Removed ACCOUNT_LOCKOUT as this replies to invalid logins too
1 parent 1046609 commit 28b9412

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def initialize
5050
"STATUS_ACCOUNT_RESTRICTION",
5151
"STATUS_ACCOUNT_EXPIRED",
5252
"STATUS_ACCOUNT_DISABLED",
53-
"STATUS_ACCOUNT_LOCKED_OUT",
5453
"STATUS_ACCOUNT_RESTRICTION",
5554
"STATUS_PASSWORD_EXPIRED",
5655
"STATUS_PASSWORD_MUST_CHANGE",
@@ -112,7 +111,7 @@ def check_login_status(domain, user, pass)
112111
datastore['SMB::Native_OS'],
113112
datastore['SMB::Native_LM'],
114113
{:use_spn => datastore['NTLM::SendSPN'], :name => self.rhost})
115-
status_code = 'STATUS_SUCCESS'
114+
status_code = 'STATUS_SUCCESS'
116115
end
117116
# This does not appear to be required to validate login details? simple.connect("\\\\#{datastore['RHOST']}\\IPC$")
118117
rescue ::Rex::Proto::SMB::Exceptions::ErrorCode => e

0 commit comments

Comments
 (0)