搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Extract JSON from IndexedDB files

  • 2 个回答
  • 1 人有此问题
  • 16 次查看
  • 最后回复者为 cool_man2k3

more options

Hello! I'm using Tab Session Manager to save opened tabs. It uses IndexedDB to store tab data as a JSON. Small JSONs are stored directly in SQLite DB, bigger ones - as a files with integer numbers as names. It's IndexedDB functionality, it's transparent for addons. As far as I understand after the last update to v74 something went wrong with this addon DB. Addon showed "IndexedDB Error". I saved DB files, reinstalled the addon and it works fine again. So now I want to restore my old sessions. SQLite file opens normally using DB Browser, for ex. Separate JSON files seems to be OK also. The problem is that both separate JSON files and JSON data in SQLite DB are not plain text JSON, but kind of binary data containing JSON. How could I extract if from there?

Hello! I'm using Tab Session Manager to save opened tabs. It uses IndexedDB to store tab data as a JSON. Small JSONs are stored directly in SQLite DB, bigger ones - as a files with integer numbers as names. It's IndexedDB functionality, it's transparent for addons. As far as I understand after the last update to v74 something went wrong with this addon DB. Addon showed "IndexedDB Error". I saved DB files, reinstalled the addon and it works fine again. So now I want to restore my old sessions. SQLite file opens normally using DB Browser, for ex. Separate JSON files seems to be OK also. The problem is that both separate JSON files and JSON data in SQLite DB are not plain text JSON, but kind of binary data containing JSON. How could I extract if from there?
已附加屏幕截图

所有回复 (2)

more options

Do you mean that you see BLOB data (hex code) ?

If you use a SQLite browser/viewer to inspect the file and export this data to a file, doesn't that give you the actual data?

more options

cor-el said

Do you mean that you see BLOB data (hex code)? If you use a SQLite browser/viewer to inspect the file and export this data to a file, doesn't that give you the actual data?

I attached a screenshot. Same data in BLOBs in DB and in DB files. Small JSONs stored right in DB as BLOBs, large ones as separate files. Both have same non-plain text format. Seems like IndexedDB stores these JSONs in it's own binary format, that's why it's not plain-text. I'm asking about a way to extract plain text JSON from this binary (hex) BLOBs and files.

There are DB BLOB contents. Same format as a file that I showed above.

由cool_man2k3于修改