Chrome的cookie存储位置和格式
存放位置:
Chrome cookies folder in Windows 7:-
C:\Users\your_username\AppData\Local\Google\Chrome\User Data\Default\
You'll need a program like SQLite Database Browser to read it.
For Mac OS X, the file is located at :-
~/Library/Application Support/Google/Chrome/Default/Cookies
格式是SQLite的,下载DB Browser for Sqlite, 打开文件后,格式如下:
其值encrypted_value, AES加密的,看不到内容,关于如何加密的,没有深入探究,不过据说是根据用户生成密钥的,即便文件被别人偷走了或者另一个用户登陆,也是得不到密钥的,不过如果是当前用户登陆了,应该可以重新生成这个密钥,从而解密。
有以下文章也许可以参考:
https://gist.github.com/GramThanos/ff2c42bb961b68e7cc197d6685e06f10(Decrypt Chrome Cookies File (Python 3) 我没能打开,不过我想现在的chrome cookie应该是很难被decrypt的)
Refrence:
https://thehackernews.com/2014/01/Chrome-encrypt-web-cookies-tool.html