Codebase list pypykatz / 57edab0
Fix bug in get_prekeys_from_password() that made it fail if empty password was given. Fix tested on data from useraccount with empty password. It now works as expected when password="" is given as argument to function. Previously it would throw an Exception. jarlethorsen authored 3 years ago GitHub committed 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
160160 nt_hash = bytes.fromhex(nt_hash)
161161 key1 = None
162162
163 if password:
163 if password or password == '':
164164 md4 = hashlib.new('md4')
165165 md4.update(password.encode('utf-16le'))
166166 nt_hash = md4.digest()