Email
Email

Reputation: 2425

Open / Read or Decompile .xpt to 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

  1. Can this be done?

  2. How?

    Thanks for your wisdom ;)

Upvotes: 0

Views: 1097

Answers (1)

Wladimir Palant
Wladimir Palant

Reputation: 57681

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.

Upvotes: 2

Related Questions