Trees | Indices | Help |
|
---|
|
A scanner check is a special class which is invoked on an AS to check for a specific condition.
The main method is def check(self, buffer_as, offset): This will return True if the condition is true or False otherwise.
This class is the base class for all checks.
Nested Classes | |
__metaclass__ Automatic Plugin Registration through metaclasses. |
|
top_level_class A scanner check is a special class which is invoked on an AS to check for a specific condition. |
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Methods | |||
|
|||
|
Class Variables | |
classes =
|
|
classes_by_name =
|
|
plugin_feature =
|
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Is the needle found at 'offset'? Arguments: buffer_as: An address space object with a chunk of data that can be checked for the needle. offset: The offset in the address space to check. |
Determine how many bytes we can skip. If you want to speed up the scanning define this method - it will be used to skip the data which is obviously not going to match. You will need to return the number of bytes from offset to skip to. We take the maximum number of bytes to guarantee that all checks have a chance of passing. Args: buffer_as: A BufferAddressSpace instance wrapping self.address_space, containing a copy of the data at the specified offset. offset: The offset in the address space to check. Returns: Number of bytes to be skipped. |
Class Variable Details |
classes
|
classes_by_name
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 9 03:29:27 2017 | http://epydoc.sourceforge.net |