stringrecognizer module

Class

Description

binaryninja.stringrecognizer.CoreStringRecognizer

binaryninja.stringrecognizer.CustomStringType

binaryninja.stringrecognizer.StringRecognizer

CoreStringRecognizer

class CoreStringRecognizer[source]

Bases: StringRecognizer

__init__(handle: BNStringRecognizer)[source]
Parameters:

handle (BNStringRecognizer) –

is_valid_for_type(func: HighLevelILFunction, type: Type) bool[source]
Parameters:
Return type:

bool

recognize_constant(instr: HighLevelILInstruction, type: Type, val: int) DerivedString | None[source]
Parameters:
Return type:

DerivedString | None

recognize_constant_pointer(instr: HighLevelILInstruction, type: Type, val: int) DerivedString | None[source]
Parameters:
Return type:

DerivedString | None

recognize_extern_pointer(instr: HighLevelILInstruction, type: Type, val: int, offset: int) DerivedString | None[source]
Parameters:
Return type:

DerivedString | None

recognize_import(instr: HighLevelILInstruction, type: Type, val: int) DerivedString | None[source]
Parameters:
Return type:

DerivedString | None

CustomStringType

class CustomStringType[source]

Bases: object

__init__(handle)[source]
static register(name: str, string_prefix='', string_postfix='') CustomStringType[source]
Parameters:

name (str) –

Return type:

CustomStringType

property name: str
property string_postfix: str
property string_prefix: str

StringRecognizer

class StringRecognizer[source]

Bases: object

__init__(handle=None)[source]
is_valid_for_type(func: HighLevelILFunction, type: Type) bool[source]
Parameters:
Return type:

bool

recognize_constant(instr: HighLevelILInstruction, type: Type, val: int) DerivedString | None[source]
Parameters:
Return type:

DerivedString | None

recognize_constant_pointer(instr: HighLevelILInstruction, type: Type, val: int) DerivedString | None[source]
Parameters:
Return type:

DerivedString | None

recognize_extern_pointer(instr: HighLevelILInstruction, type: Type, val: int, offset: int) DerivedString | None[source]
Parameters:
Return type:

DerivedString | None

recognize_import(instr: HighLevelILInstruction, type: Type, val: int) DerivedString | None[source]
Parameters:
Return type:

DerivedString | None

register()[source]
property name: str
recognizer_name = None