peutils (version 1.0.0)
index
/Volumes/Personal Image/Devel/pefile/peutils.py

peutils, Portable Executable utilities module
 
 
Copyright (c) 2005, 2006, 2007 Ero Carrera <ero@dkbza.org>
 
All rights reserved.
 
For detailed copyright information see the file COPYING in
the root of the distribution archive.

 
Modules
       
os
re
string
urllib

 
Classes
       
SignatureDatabase

 
class SignatureDatabase
    This class loads and keeps a parsed PEiD signatute database.
 
Usage:
 
    sig_db = SignatureDatabase('/path/to/signature/file')
    
and/or
 
    sig_db = SignatureDatabase()
    sig_db.load('/path/to/signature/file')
    
Signature databases can be combined by performing multiple loads.
 
The filename parameter can be a URL too. In that case the
signature database will be downloaded from that location.
 
  Methods defined here:
__init__(self, filename=None, data=None)
generate_ep_signature(self, pe, name, sig_length=512)
Generate signatures for the entry point of a PE file.
 
Creates a singature whose name will be the parameter 'name'
and the section number and its name.
generate_section_signatures(self, pe, name, sig_length=512)
Generate signatures for all the sections in a PE file.
 
If the section contains any data a signature will be created
for it. The signature name will be a combination of the 
parameter 'name' and the section number and its name.
load(self, filename=None, data=None)
Load a PEiD signature file.
 
Invoking this method on different files combines the signatures.
match(self, pe, ep_only=False, section_start_only=False)
Match and return the exact match(es).
 
If ep_only is True the result will be a string with
the packer name. Otherwise it will be a list of the
form (file_ofsset, packer_name). Specifying where
in the file the signature was found.
match_all(self, pe, ep_only=False, section_start_only=False)
Match and return the all the likely matches.

 
Data
        __author__ = 'Ero Carrera'
__contact__ = 'ero@dkbza.org'
__version__ = '1.0.0'

 
Author
        Ero Carrera