Skip to content

Commit 7f29854

Browse files
authored
Merge pull request #159 from dadevel/patch-1
chrome: fix crash on empty dpapi blob
2 parents 52874ee + b13f415 commit 7f29854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pypykatz/dpapi/dpapi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def decrypt_all_chrome(self, dbpaths, throw = False):
779779
dec_val = cipher.decrypt(ciphertext, b'', tag)
780780
results['cookies'].append((dbpaths[username]['cookies'], host_key, name, path, dec_val ))
781781
results['fmtcookies'].append(DPAPI.cookieformatter('https://' + host_key, name, path, dec_val))
782-
else:
782+
elif encrypted_value:
783783
dec_val = self.decrypt_blob_bytes(encrypted_value)
784784
results['cookies'].append((dbpaths[username]['cookies'], host_key, name, path, dec_val ))
785785
results['fmtcookies'].append(DPAPI.cookieformatter('https://' + host_key, name, path, dec_val))

0 commit comments

Comments
 (0)