Skip to content

Commit

Permalink
Merge pull request AlessandroZ#274 from KiUserExceptionDispatcher/pat…
Browse files Browse the repository at this point in the history
…ch-2

See traceback (domcachedump)
  • Loading branch information
AlessandroZ authored Sep 7, 2018
2 parents 9c4d622 + e54f20d commit 6d5c65c
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,18 @@ def parse_decrypted_cache(dec_data, uname_len,
pad = 2 * ( ( domain_len / 2 ) % 2 )
domain_name_off = domain_off + domain_len + pad

hash = dec_data[:0x10]
data_hash = dec_data[:0x10]

username = dec_data[uname_off:uname_off+uname_len]
username = username.decode('utf-16-le')
username = username.decode('utf-16-le', errors='ignore')

domain = dec_data[domain_off:domain_off+domain_len]
domain = domain.decode('utf-16-le')
domain = domain.decode('utf-16-le', errors='ignore')

domain_name = dec_data[domain_name_off:domain_name_off+domain_name_len]
domain_name = domain_name.decode('utf-16-le')
domain_name = domain_name.decode('utf-16-le', errors='ignore')

return (username, domain, domain_name, hash)
return (username, domain, domain_name, data_hash)


def dump_hashes(sysaddr, secaddr, vista):
Expand Down

0 comments on commit 6d5c65c

Please sign in to comment.