A powerful and user-friendly binary analysis platform!
angr is a platform-agnostic binary analysis framework. It is brought to you by the Computer Security Lab at UC Santa Barbara, SEFCOM at Arizona State University, their associated CTF team, Shellphish, the open source community, and @rhelmot.
Homepage: https://angr.io
Project repository: https://github.com/angr/angr
Documentation: https://docs.angr.io
API Documentation: https://docs.angr.io/en/latest/api.html
angr is a suite of Python 3 libraries that let you load a binary and do a lot of cool things to it:
The most common angr operation is loading a binary: p = angr.Project('/bin/bash') If you do this in an enhanced REPL like IPython, you can use tab-autocomplete to browse the top-level-accessible methods and their docstrings.
The short version of "how to install angr" is mkvirtualenv --python=$(which python3) angr && python -m pip install angr.
angr does a lot of binary analysis stuff. To get you started, here's a simple example of using symbolic execution to get a flag in a CTF challenge.
import angr
project = angr.Project("angr-doc/examples/defcamp_r100/r100", auto_load_libs=False)
@project.hook(0x400844)
def print_flag(state):
print("FLAG SHOULD BE:", state.posix.dumps(0))
project.terminate_execution()
project.execute()Synthetic strncpy causes scalar loads to inherit array types
Decompiler: 16-byte stack buffer emitted as `int`, with byte offsets scaled by four
CFGFast reports a decoding error for instructions that decode fine, when the lift budget is clamped below one instruction
Solver timeout silently downgraded to a definitive unsat/error result (error_converter erases ClaripySolverInterruptError)
Decompiling to AIL fails because of DirtyStatement
JumpTableResolver reads a jump table over an index range VSA narrowed incorrectly
test_xchg_filler_decompiles_quickly_cross_insn_opt is flaky under Test with coverage: 60.15 s then 47.80 s on the same commit
CFGFast restarts inside an undecodable instruction on every architecture but x86 and ARM
CFGFast restarts its linear scan inside an instruction it could not decode
TestRustcVersionIdentification downloads FLIRT signatures at test time and fails when the download does