Skip to content

Commit

Permalink
BARF example: added save of CG starting at main.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Molas committed Dec 27, 2016
1 parent ee3acab commit 3a4dcbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hexagondisasm/reil/translate-reil-generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
print("[+] Recovering CFGs...")

entries = [ea_start]
symbols_by_addr ={}
symbols_by_addr ={
0x00005120: ("main", 0x000051D8-0x00005120, True)
}

cfgs = barf.recover_cfg_all(entries, symbols=symbols_by_addr)

Expand All @@ -81,6 +83,10 @@

cg = CallGraph(cfgs_filtered)

cg.save("main_cg")

pass




Expand Down

0 comments on commit 3a4dcbf

Please sign in to comment.