Skip to content

Commit

Permalink
fixing issue #109
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Feb 28, 2017
1 parent f6be5c5 commit c931883
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions Windows/lazagne/softwares/windows/system_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,22 +588,26 @@ def run(self, software_name = None):
if line and line != '\n':
_pwd_hint = False

_login, _hash = line.split(':', 1)
_rid, _hash = _hash.split(':', 1)
try:
_login, _hash = line.split(':', 1)
_rid, _hash = _hash.split(':', 1)

values = {'Login': _login, 'Hash': _hash, 'Rid': _rid}

for hint in password_hint:
if _login == hint['Login']:
_pwd_hint = hint['pwdHint']
values = {'Login': _login, 'Hash': _hash, 'Rid': _rid}
for hint in password_hint:
if _login == hint['Login']:
_pwd_hint = hint['pwdHint']

if _pwd_hint:
values['Hint'] = _pwd_hint
if _pwd_hint:
values['Hint'] = _pwd_hint

password = self.dictionaryAttack_Hash(_hash.split(':')[1])
if password:
values['Password'] = password
password = self.dictionaryAttack_Hash(_hash.split(':')[1])
if password:
values['Password'] = password

pwdFound.append(values)
pwdFound.append(values)

except Exception, e:
print_debug('ERROR', 'Error parsing hash: %s' % str(e))

return pwdFound

0 comments on commit c931883

Please sign in to comment.