如何提取Firefox会话cookie(优选python语言) [英] How to extract Firefox session cookie (python language preferred)

查看:377
本文介绍了如何提取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.

这篇关于如何提取Firefox会话cookie(优选python语言)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆