打开/读取或反编译 .xpt 为 idl
我使用一个 Firefox 插件,它向网站发出隐藏请求。我已经检查了所有 .js .xul 和 .xpi 文件中的代码。只剩下 1 个 .xpt 文件 (1kb),必须在其中对请求进行编码。现在我也想打开它来检查代码。
.xpt 是一个已编译的 .idl 文件
这可以完成吗?
如何?
感谢您的智慧;)
I use a firefox addon which makes hidden requests to a website. I already examined the code in all .js .xul and .xpi files. there is only 1 .xpt file (1kb) left where the request must be coded. now i want to open that to examine the code too.
.xpt is afaik a compiled .idl file
Can this be done?
How?
Thanks for your wisdom ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
XPT 文件是一个已编译的 IDL 文件,但它不包含任何代码 - 它只是一个接口定义。它定义了组件公开哪些属性和方法,但并不定义它们 - 组件的实际定义必须位于 JavaScript 或 DLL 文件中。由于您没有提及任何二进制组件,因此该组件必须在您已经查看过的 JavaScript 文件中定义。
换句话说:“能不能做到”的答案是:可以,只要付出足够的努力。只需查看文件中包含的字符串就已经可以告诉您定义的接口以及属性和方法名称。如果您需要参数/参数类型,那么您将必须深入挖掘。但对于你的目的来说,这是毫无意义的。
An XPT file is a compiled IDL file but it doesn't contain any code - it is merely an interface definition. It defines which properties and methods a component exposes but it doesn't define them - the actual definition of the component has to be in a JavaScript or DLL file. As you aren't mentioning any binary components, the component must be defined in the JavaScript files you already looked at.
In other words: the answer to "Can it be done" is: yes, with sufficient effort. Just looking at the strings contained in the file will already tell you the interfaces defined as well as the property and method names. If you need the parameters/parameter types then you will have to dig deeper. But for your purpose that would be pointless.