问题描述
有许多有趣的文件可以通过 chrome:// resources / *
使用谷歌浏览器访问
在Linux上该内容位于 /opt/google/chrome/resources.pak
中。我知道我可以从但我想解压 resource.pak
文件。
文件resources.pak
报告只是垃圾。
要明确,问题不在于从哪里获得这些资源。问题是什么是resources.pak文件格式以及如何解压它?
来自
字节版本号
4字节资源数量
1字节编码
对于每个资源:
2字节资源ID
文件中有4个字节的资源偏移量
结尾有一个额外的资源项,ID 0给出最后一个资源的结束(这基本上是文件的长度)
这个python模块可以解压缩并重新打包文件:
from
There are bunch of interesting files accessible via chrome://resources/*
using google chrome.
On linux That the content is in /opt/google/chrome/resources.pak
. I know I can get the whole sources from http://chromium.googlecode.com/svn/trunk/ but I would like to unpack the resource.pak
file.
file resources.pak
reports just junk.
Just to be clear, the question is NOT where to get those resources from. The question is what is the resources.pak file format and how to unpack it?
taken from https://groups.google.com/a/chromium.org/forum/?fromgroups=#!topic/chromium-dev/agGjTt4Dmcw
4 byte version number
4 byte number of resources
1 byte encoding
For each resource:
2 byte resource id
4 byte resource offset in file
There is an extra resource entry at the end with ID 0 giving the end of the last resource (which is essentially the length of the file)
This python module can unpack and repack files:
data_pack.py from grit-i18n
这篇关于如何从google chrome解压resources.pak?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!