Skip to content

Instantly share code, notes, and snippets.

@imshvc
imshvc / sql2cookie.sh
Last active August 9, 2024 16:39 — forked from rctay/gist:558851
dump mozilla sqlite3 cookies to netscape format
#
# Dumps data from a Mozilla sqlite cookie jar into Netscape cookie format.
#
# Useful if you want to run curl with your browser's cookies.
#
#!/bin/sh
SQLITE=sqlite3
MOZ_PROFILE=$1
MOZ_COOKIE_JAR="$MOZ_PROFILE/cookies.sqlite"