Exe files¶
The following module can help when working with exe files.
Implements the exe file format used by windows.
See also:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms680547(v=vs.85).aspx
Another excellent effort: https://github.com/erocarrera/pefile
-
ppci.format.exefile.align(f, alignment, padding_value=0)¶ Pad with 0 bytes until certain alignment is met
-
ppci.format.exefile.read_exe(f)¶ Process an exe file
-
ppci.format.exefile.write_dos_stub(f)¶ Write dos stub to file. This stub prints to stdout: ‘this program cannot be run in dos mode’