Skip to content

Commit

Permalink
chrome: fix crash on empty dpapi blob
Browse files Browse the repository at this point in the history
  • Loading branch information
dadevel committed Jun 25, 2024
1 parent 61b839b commit b13f415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypykatz/dpapi/dpapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def decrypt_all_chrome(self, dbpaths, throw = False):
dec_val = cipher.decrypt(ciphertext, b'', tag)
results['cookies'].append((dbpaths[username]['cookies'], host_key, name, path, dec_val ))
results['fmtcookies'].append(DPAPI.cookieformatter('https://' + host_key, name, path, dec_val))
else:
elif encrypted_value:
dec_val = self.decrypt_blob_bytes(encrypted_value)
results['cookies'].append((dbpaths[username]['cookies'], host_key, name, path, dec_val ))
results['fmtcookies'].append(DPAPI.cookieformatter('https://' + host_key, name, path, dec_val))
Expand Down

0 comments on commit b13f415

Please sign in to comment.