Created
November 14, 2024 08:36
-
-
Save un4ckn0wl3z/a6e55b47d650f3b8d898662958211412 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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