Class |
Description |
|---|---|
|
|
Represents a custom string type. String types contain the name of the string type and the prefix… |
|
|
Bases: StringRecognizer
Determines if the string recognizer should be called for the given expression type. It is optional to override this method. If the method isn’t overridden, all expression types are passed to the string recognizer.
func (HighLevelILFunction) – HighLevelILFunction representing the high level function to be queried
type (Type) – Type of the expression
True if the expression should be passed to the string recognizer, False otherwise
Can be overridden to recognize strings for a constant that is not a pointer. The expression type and value of the expression are given. If no string is found for this expression, this method should return None.
If a string is found, return a DerivedString with the string information.
instr (HighLevelILInstruction) – High level expression
type (Type) – Type of the expression
val (int) – Value of the expression
Optional DerivedString for any string that is found.
DerivedString | None
Can be overridden to recognize strings for a constant pointer. The expression type and value of the expression are given. If no string is found for this expression, this method should return None.
If a string is found, return a DerivedString with the string information.
instr (HighLevelILInstruction) – High level expression
type (Type) – Type of the expression
val (int) – Value of the expression
Optional DerivedString for any string that is found.
DerivedString | None
Can be overridden to recognize strings for an external symbol. The expression type and value of the expression are given. If no string is found for this expression, this method should return None.
If a string is found, return a DerivedString with the string information.
instr (HighLevelILInstruction) – High level expression
type (Type) – Type of the expression
val (int) – Value of the expression
offset (int) – Offset into the external symbol
Optional DerivedString for any string that is found.
DerivedString | None
Can be overridden to recognize strings for an imported symbol. The expression type and value of the expression are given. If no string is found for this expression, this method should return None.
If a string is found, return a DerivedString with the string information.
instr (HighLevelILInstruction) – High level expression
type (Type) – Type of the expression
val (int) – Value of the expression
Optional DerivedString for any string that is found.
DerivedString | None
Bases: object
Represents a custom string type. String types contain the name of the string type and the prefix and postfix used to render them in code.
Registers a new custom string type. This can be used when creating new
DerivedString objects.
name (str) –
Bases: object
class StringRecognizer recognizes custom strings found in high level expressions.
The recognize_constant, recognize_constant_pointer,
recognize_extern_pointer, and recognize_import methods will be called for
the respective expression types. These methods can return a DerivedString
containing the string information if a custom string is found for the expression. The
is_valid_for_type method can be optionally overridden to call the recognizer methods
only when the expression type matches a custom filter.
Determines if the string recognizer should be called for the given expression type. It is optional to override this method. If the method isn’t overridden, all expression types are passed to the string recognizer.
func (HighLevelILFunction) – HighLevelILFunction representing the high level function to be queried
type (Type) – Type of the expression
True if the expression should be passed to the string recognizer, False otherwise
Can be overridden to recognize strings for a constant that is not a pointer. The expression type and value of the expression are given. If no string is found for this expression, this method should return None.
If a string is found, return a DerivedString with the string information.
instr (HighLevelILInstruction) – High level expression
type (Type) – Type of the expression
val (int) – Value of the expression
Optional DerivedString for any string that is found.
DerivedString | None
Can be overridden to recognize strings for a constant pointer. The expression type and value of the expression are given. If no string is found for this expression, this method should return None.
If a string is found, return a DerivedString with the string information.
instr (HighLevelILInstruction) – High level expression
type (Type) – Type of the expression
val (int) – Value of the expression
Optional DerivedString for any string that is found.
DerivedString | None
Can be overridden to recognize strings for an external symbol. The expression type and value of the expression are given. If no string is found for this expression, this method should return None.
If a string is found, return a DerivedString with the string information.
instr (HighLevelILInstruction) – High level expression
type (Type) – Type of the expression
val (int) – Value of the expression
offset (int) – Offset into the external symbol
Optional DerivedString for any string that is found.
DerivedString | None
Can be overridden to recognize strings for an imported symbol. The expression type and value of the expression are given. If no string is found for this expression, this method should return None.
If a string is found, return a DerivedString with the string information.
instr (HighLevelILInstruction) – High level expression
type (Type) – Type of the expression
val (int) – Value of the expression
Optional DerivedString for any string that is found.
DerivedString | None