_worker¶
basefind._worker ~~~~~~~~~~~~~~~~ Module-level multiprocessing worker function.
Must live at module scope (not inside a class) so it is picklable on all platforms, including macOS where the default start method is 'spawn'.
score_chunk(args)
¶
Score a chunk of candidate base addresses.
Parameters¶
args: Tuple of (bases, ptr_table, str_table, image_size). - bases : ordered list of candidate base addresses to evaluate. - ptr_table : {pointer_value: frequency} mapping (read-only). - str_table : set of string-start offsets within the image. - image_size : byte length of the firmware image.
Returns¶
List of (base_address, score) tuples where score > 0, in base order.
Source code in wintermute/utils/basefind/_worker.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |