diff options
Diffstat (limited to 'bin/cookies_from_chromium.sh')
-rwxr-xr-x | bin/cookies_from_chromium.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/cookies_from_chromium.sh b/bin/cookies_from_chromium.sh new file mode 100755 index 0000000..208cf14 --- /dev/null +++ b/bin/cookies_from_chromium.sh @@ -0,0 +1,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 |