Skip to content

Instantly share code, notes, and snippets.

@un4ckn0wl3z
Created November 14, 2024 08:36
fn = 0x401F60
ollvm_tail = 0x405D4B
f_blocks = idaapi.FlowChart(idaapi.get_func(fn), flags=idaapi.FC_PREDS)
for block in f_blocks:
for succ in block.succs():
if succ.start_ea == ollvm_tail:
print(hex(block.start_ea))
idc.add_bpt(block.start_ea)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment