hkb_editor.external.reload.aob_scanner
¶
AOBScanner
¶
Array of Bytes (AOB) scanner for finding byte patterns in process memory.
__init__
¶
__init__(process_handle: int, base_address: int, module_size: int)
Initialize scanner with process memory regions that contain executable code.
parse_pattern
staticmethod
¶
parse_pattern(pattern_string: str) -> list[int]
Convert a hex string pattern to a list suitable for scanning. '?' or '??' represent wildcards.
scan
¶
scan(pattern: list[int]) -> int
Scan for a byte pattern across all loaded memory regions. Returns the absolute address of the first match, or 0 if not found.