Advertisement
Guest User

check

a guest
Mar 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import angr
  2. from angrutils import plot_cfg
  3.  
  4. # Load the binary into the project
  5. # We don't want external libraries to be analyzed so dont load them, they will be replaced by angr
  6. proj = angr.Project("/src/coreutils-8.30/src/ls", load_options={'auto_load_libs': False})
  7.  
  8. main = proj.loader.main_object.get_symbol("main")
  9. start_state = proj.factory.blank_state(addr=main.rebased_addr)
  10. cfg = proj.analyses.CFGAccurate(fail_fast=True, starts=[main.rebased_addr], initial_state=start_state)
  11. plot_cfg(cfg, "true_cfgAccurate", asminst=True, remove_imports=True, remove_path_terminator=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement