Agnus Dei (jackal) wrote,
Agnus Dei
jackal

Exporting your Firefox cookie file

$ cat get_cookie_file.sh 
MYCOOKIE=`find ~ -mtime -5 -name cookies.sqlite` # Cookie file used in the last 5 days
TMPFILE=`mktemp /tmp/cookies.sqlite.XXXXXXXXXX`  # just a tmp file to get around the lock
cat "$MYCOOKIE" >> $TMPFILE
sqlite3 -separator '    ' $TMPFILE << EOF > ./cookie.txt
.mode tabs
.header off
select host,
case substr(host,1,1)='.' when 0 then 'FALSE' else 'TRUE' end,
path,
case isSecure when 0 then 'FALSE' else 'TRUE' end,
expiry,
name,
value
from moz_cookies;
EOF


Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments