Angr 学习摘要 0x00
由于毕设的需要,自学了一下Angr的使用。
在这里简要记录一下Angr的API。
# init project
project = angr.Project(path_to_binary)
# init state
initial_state = project.factory.entry_state()
# create sim_manager
simulation = project.factory.simgr(initial_state)
# Explore the binary to attempt to find the address
simulation.explore(find=address)
# return sims of list
simulation.find()
# print the output
stdout_output = state.posix.dumps(sys.stdout.fileno())