Skip to content

Instantly share code, notes, and snippets.

@un4ckn0wl3z
Created November 14, 2024 08:36
Show Gist options
  • Save un4ckn0wl3z/a6e55b47d650f3b8d898662958211412 to your computer and use it in GitHub Desktop.
Save un4ckn0wl3z/a6e55b47d650f3b8d898662958211412 to your computer and use it in GitHub Desktop.
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