Skip to content

Commit

Permalink
Fix username == password check when -d is used
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsec committed Jun 9, 2021
1 parent e1a2bea commit f27367d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pwdumpstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,12 @@ def mask(s):
users[user] = hash
if hash in pot:
crackedcount += 1
if user == pot[hash]:
userpass.append(user)
if args.domain:
if user.split('\\')[1] == pot[hash]:
userpass.append(user)
else:
if user == pot[hash]:
userpass.append(user)
# Complexity
if len(pot[hash]) == 0:
empty.append(user)
Expand Down

0 comments on commit f27367d

Please sign in to comment.