Skip to content

Instantly share code, notes, and snippets.

import pyqbdi
import ctypes
MAPPING_DIFF = 0
def get_binary_mapping(lib, region):
mapped = region.range[0] # mapped to _init
binary = idaapi.get_segm_by_name(".init").start_ea
return mapped - binary