Decrypt Chrome Linux BLOB encrypted cookies in Python

前端 未结 3 723
情深已故
情深已故 2020-12-03 08:07

I have Chrome 33+ in Ubuntu and I see that the cookies are encrypted in a BLOB structure:

CREATE TABLE cookies (creation_utc INTEGER NOT NULL UNIQUE PRIMARY KE

3条回答
  •  借酒劲吻你
    2020-12-03 08:57

    I have been working on it too. Until now I have found that Chrome(Windows) uses CryptProtectData function to encrypt it's cookie's values. The same function it has been using to encrypt saved passwords in Login Data file. CryptProtectData uses the user account information and password of the logged in windows user to encrypt data. To decrypt it we have to use CryptUnProtectData function with the same user account logged in.

    Here is a snippet to decrypt Login Data https://gist.github.com/jordan-wright/5770442

    Now regarding Linux I have read here: http://www.linkedin.com/groups/Google-Chrome-encrypt-Stored-Cookies-36874.S.5826955428000456708

    on other systems it seems to obfuscate passwords with the salt "saltysalt" and the password "peanuts"

提交回复
热议问题