Skip to content

Commit

Permalink
Merge pull request #159 from dadevel/patch-1
Browse files Browse the repository at this point in the history
chrome: fix crash on empty dpapi blob
  • Loading branch information
skelsec authored Jul 21, 2024
2 parents 52874ee + b13f415 commit 7f29854
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 7f29854

Please sign in to comment.