Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import angr
- from angrutils import plot_cfg
- # Load the binary into the project
- # We don't want external libraries to be analyzed so dont load them, they will be replaced by angr
- proj = angr.Project("/src/coreutils-8.30/src/ls", load_options={'auto_load_libs': False})
- main = proj.loader.main_object.get_symbol("main")
- start_state = proj.factory.blank_state(addr=main.rebased_addr)
- cfg = proj.analyses.CFGAccurate(fail_fast=True, starts=[main.rebased_addr], initial_state=start_state)
- plot_cfg(cfg, "true_cfgAccurate", asminst=True, remove_imports=True, remove_path_terminator=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement