Chrome の Cookies を Netscape 形式で出力するスクリプト
今のところ macOS 専用
$ python3 ./chrome_cookies_decrypt.py > cookie.txt
$ curl --cookie cookie.txt URL| cookie.txt |
Chrome の Cookies を Netscape 形式で出力するスクリプト
今のところ macOS 専用
$ python3 ./chrome_cookies_decrypt.py > cookie.txt
$ curl --cookie cookie.txt URL| -- http://www.forensicswiki.org/wiki/Google_Chrome | |
| SELECT datetime(((cookies.creation_utc/1000000)-11644473600), "unixepoch"), | |
| cookies.host_key, | |
| cookies.name, | |
| cookies.value, | |
| cookies.path, | |
| datetime(((cookies.expires_utc/1000000)-11644473600), "unixepoch"), | |
| cookies.secure, | |
| cookies.httponly, | |
| datetime(((cookies.last_access_utc/1000000)-11644473600), "unixepoch"), | |
| cookies.has_expires, | |
| cookies.persistent, | |
| cookies.priority FROM cookies; |
| #!/bin/bash | |
| set -eu | |
| DIR=$(dirname $0) | |
| COOKIE=$DIR/cookie.txt | |
| python3 "$DIR/chrome_cookies_decrypt.py" > "$COOKIE" | |
| head "$COOKIE" | |
| echo update...done |
Recent changes to how chrome saves cookies.. They added 32bytes of random data that can't be utf-8 decoded.