ExeFormat

This class is the parent of all executable format handlers.

It is defined in metasm/exe_format/main.rb.

It defines some standard shortcut functions, such as:

These methods will instanciate a new Exe, and call the corresponding methods, e.g. load with the file content, and decode.

The handling of the different structures in the binary format should be done using the SerialStruct facility.

The subclasses are expected to implement various functions, depending on the usage (refer to the ELF and COFF implementations for more details):

File decoding/disassembly

File encoding/source parsing