Package pype32 |
[hide private]
[frames] | no frames]

# Package pype32

source code

Yet another Python library to work with PE32 and PE64 file formats.

by Nahuel Riva (crackinglandia at gmail.com)

Project: http://code.google.com/p/pype32

Blog: http://crackinglandia.blogspot.com

Submodules | [hide private]
pype32.baseclasses: Base classes. pype32.caching pype32.consts: Common definitions. pype32.datadirs: Data directory classes. pype32.datatypes: Data types objects. pype32.directories: PE directory classes. pype32.dotnet pype32.excep: Exceptions used by the entire library. pype32.pype32: Common PE structures. pype32.utils: Auxiliary classes and functions.

Classes | [hide private]
PE
| Sections Sections object.
| DosHeader DosHeader object.
| PE PE object.
| SectionHeader SectionHeader object.
| NtHeaders NtHeaders object.
| SectionHeaders SectionHeaders object.
| FileHeader FileHeader object.
| OptionalHeader64 OptionalHeader64 object.
| OptionalHeader OptionalHeader object.
Data type objects
| String String object.
| AlignedString Aligned string object.
| Array Array object.
| BYTE Byte object.
| WORD Word object.
| DWORD Dword object.
| QWORD Qword object.
Utilities
| ReadData Returns a ReadData-like stream object.
| WriteData Return a WriteData-like stream object for writing.
Exceptions
| DirectoryEntriesLengthException Raised when the the number of entries in a DataDirectory object is different from consts.IMAGE_NUMBEROF_DIRECTORY_ENTRIES.
| DataMismatchException Raised when two different types of data does not match.
| DataLengthException Raised when data lengths does not match.
| SectionHeadersException Raised when an error related to a pype32.SectionHeader or pype32.SectionHeaders is found.
| InvalidParameterException Raised when an invalid parameter is received.
| WriteDataOffsetException This exception must be raised when writing to an invalid offset.
| ArrayTypeException Raised when creating an unsupported type of array.
| TypeNotSupportedException This exception must be used when an invalid data type is used within the library.
| InstanceErrorException This exception is raised when an instance parameter was not specified.
| DirectoryEntryException This exception must be raised when an error with the Directory is found.
| PyPe32Exception Base exception class.
| ReadDataOffsetException This exception must be raised when reading from an invalid offset.
| NotValidPathException Raised when a path wasn't found or it is an invalid path.
| WrongOffsetValueException Used primary by the ReadData and WriteData object in read/write operations when an invalid offset value was used.
Directories
| Directory Directory object.
| DataDirectory DataDirectory object.
| NETDirectory NETDirectory object.
| ImageBaseRelocationEntry ImageBaseRelocationEntry object.
| ImportAddressTable Array of ImportAddressTableEntry objects.
| ImportAddressTableEntry ImportAddressTableEntry object.
| ImageDebugDirectory ImageDebugDirectory object.
| ExportTable Array of ExportTableEntry objects.
| NetMetaDataTables NetMetaDataTables object.
| ImageImportDescriptor ImageImportDescriptor object.
| ImageExportTable ImageExportTable object.
| NetMetaDataHeader NetMetaDataHeader object.
| NetDirectory NetDirectory object.
| ImageBaseRelocation ImageBaseRelocation array.
| ExportTableEntry ExportTableEntry object.
| NetMetaDataStreams NetMetaDataStreams object.
| ImportAddressTableEntry64 ImportAddressTableEntry64 object.
| ImageImportDescriptorEntry ImageImportDescriptorEntry object.
| ImageDebugDirectories ImageDebugDirectories object.
| ImageBoundImportDescriptorEntry ImageBoundImportDescriptorEntry object.
| TLSDirectory TLS directory object.
| ImageBoundForwarderRefEntry ImageBoundForwarderRefEntry object.
| NetMetaDataTableHeader NetMetaDataTableHeader object.
| TLSDirectory64 TLSDirectory64 object.
| ImageImportDescriptorMetaData ImageImportDescriptorMetaData object.
| ImageBoundForwarderRef ImageBoundForwarderRef array object.
| NetMetaDataStreamEntry NetMetaDataStreamEntry object.
| ImageBoundImportDescriptor ImageBoundImportDescriptor object.

Variables | [hide private]
| __revision__ = ``'``$Id$``'``
| version_number = `0.1`
str | version = ``'``Version 0.1``'`` This pype32 release version.
| __package__ = ``'``pype32``'``