blob: 208cf1406d737cf05dbd786feb1f4aaafe7ec267 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh -e
for C in "${HOME}/.config/chrom"*/*'/Cookies'
do
echo "${C}"
printf '%s\n%s%s\n' '.headers on' \
'SELECT name, value, hex(encrypted_value) FROM cookies ' \
'WHERE host_key=".adventofcode.com";' | sqlite3 "${C}"
done
echo 'This is a reminder of how cookies are encrypted.' \
'Manual export is required.' >&2
exit 1
|