This program was designed to allow me to learn the PE executable file format. This is, of course, not the best tool available around but it gives some usefull information on PE files.
It is far from complete and a list of forseen features is already defined.
In the actual version, the program can display information on the following structures:
It can also be used to locate the file offset of a Relative Virtual Address Location (RVA) and change the entry point.
Just download pexe.zip (lastest version), unpack it and run pexe to display the usage help:
Usage:
pexe [options] file.exe
Options:
-c Print COFF header information
-o Print PE Optional Header Information
-s Print Section Headers Information
-d Print Data Directory Information
-r <rva>
Convert RVA <rva> to a file location
--entry-point <entry_point>
Change entry point of executable to <entry_point>
The PE executable specification can be downloaded here