Skip to content

Commit

Permalink
Merge pull request #2 from Pennyw0rth/neff-fix-login
Browse files Browse the repository at this point in the history
Fix for allowing to test multiple users with one password
  • Loading branch information
NeffIsBack authored Sep 9, 2023
2 parents 66d8d52 + a664e3b commit 25e9721
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cme/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,12 @@ def parse_credentials(self):
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):
Expand Down

0 comments on commit 25e9721

Please sign in to comment.