Merge pull request #2 from Pennyw0rth/neff-fix-login

Fix for allowing to test multiple users with one password
main
Alex 2023-09-09 23:20:38 +02:00 committed by GitHub
commit 25e9721abc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -341,6 +341,12 @@ class connection(object):
secret.append(aesKey)
cred_type.append('aesKey')
# Allow trying multiple users with a single password
if len(username) > 1 and len(secret) == 1:
secret = secret * len(username)
cred_type = cred_type * len(username)
self.args.no_bruteforce = True
return domain, username, owned, secret, cred_type, [None] * len(secret)
def try_credentials(self, domain, username, owned, secret, cred_type, data=None):