SHARE
TWEET

check

a guest Mar 22nd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top