如何提取Firefox会话cookie(优选python语言)

问题描述:

我正在尝试从其数据库(cookies.sqlite)提取FF cookie。然而,似乎只有Cookie有到期日期可以找到那里(我正在搜索一个到期时,会话结束)。我甚至打开FF的记住打开选项卡功能。
我不明白 - 它们之间的根本区别是什么。
我可以看到在FF UI中的cookie,但在硬盘驱动器上找不到。

I'm trying to extract FF cookie from it's database (cookies.sqlite). However, seems that only cookies with expiration date can be found there (I am searching the one that expires when session ends). I even turned the "remember open tabs" feature of FF on. I don't get it - what's the fundamental difference between them. I can see the cookie in FF UI but cannot find on the hard drive.

任何厌恶感谢。

sessionstore.js 文件。

这个文件本质上是一个JSON对象。如果你解析它,查看 windows [0] .cookies 获取会话cookie数组。

This file is essentially a JSON object. If you parse it, look under windows[0].cookies to get an array of the session cookies.

通常每个会话cookie中的唯一字段是 {name,host,path,value} ,但有时您会看到 httpOnly 参数。

Typically the only fields in each session cookie are {name, host, path, value}, but occasionally you see an httpOnly parameter.