Howto read/export firefox cookies in linux
Firefox cookies are stored in sqlite database.
in ubuntu the cookies are locate in /home/username/.mozilla/firefox/random.default/cookies.sqlite
to locate the cookies.sqlite just type
locate cookies.sqlite
To read the cookies we need to install sqlite3.
To install it in ubuntu/debian
sudo apt-get install sqlite3
open the cookies with sqlite3
sqlite3 /home/username/.mozilla/firefox/random.default/cookies.sqlite
after you have opened the db type
select * from moz_cookies;
to show mozilla firefox cookies.
if you want to export them type
.output mozilla_cookies.txt select * from moz_cookies;
Similar entries
- Comparison of Mozilla Firefox 4 and Microsoft Internet Explorer 9
- How to filter all html tags from each _GET and _POST request
- CSS vertical text for mozilla-firefox?
- How do I secure my web site?
- Seoquake - powerful search engine optimization tool for Mozilla Firefox
- Mozilla Firefox vs Microsoft Internet Explorer
- What tools should I use for webdevelopment?
- How can I disable Firefox Pop-up blocker for local html files?
- How2 Install Windows, Linux and Macintosh on a Macbook Pro?
- Enable vertical scrollbars in Firefox permanently with CSS2
- howto cp images, mp3 from multiple directory to one directory (find, exec, cp)
- Ubuntu or CentOS or Fedora Linux or Debian on a Webserver (LAMP) ?
- DropDown / Rollover Menu with pure CSS / HTML
- Jquery's effects doesnt work with Internet Explorer
- Howto install dig in Debian 5 (Lenny)
- Alexa Toolbar for Apple Safari
- Install Curl on PHP5 Webmin + Debian
- Ajax Error when using Drupal with Firefox
- How to mount shared Folder in VirtualBox and Ubuntu Linux
- How to find your operating system information & version on Linux

Comments
Thanks
I can't get it to work yet but thanks for sharing.
Did u replace?
@anonymous
You have to replace "username" and "random".
Thanks rex for sharing!
HELP
so when i use the command select * from moz_cookies; i just get returned to the sqlite3 prompt with no output like its empty or something, but there are clearly cookies when i view them in firefox preferences. am i missing something? it shows the table when i do .tables
sqlite commands
Hi
tried that not working here either i have the correct path/to/file/cookies.sqlite
but just get ...> returned to me ?
Post new comment