+4
Daily
9,382
stars
1,246
forks
170
watchers
5,557
prs
2,217
issues
0
releases
README
angr
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.
Project Links
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
What is angr?
angr is a suite of Python 3 libraries that let you load a binary and do a lot of cool things to it:
- Disassembly and intermediate-representation lifting
- Program instrumentation
- Symbolic execution
- Control-flow analysis
- Data-dependency analysis
- Value-set analysis (VSA)
- Decompilation
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.
Example
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.
python
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()
Quick Start
- Install Instructions
- Documentation as HTML and sources in the angr Github repository
- Dive right in: top-level-accessible methods
- Examples using angr to solve CTF challenges.
- API Reference
- awesome-angr repoTop issues
#114Solving for wcscmp26 comments · 2016-05-23#938SEGFAULT libz315 comments · 2018-04-12#4388history_tracking_mixin is eating up memory, is this behavior expected?14 comments · 2023-12-05#2527tracer: resync logic needed for conditional instructions13 comments · 2021-02-11#4418Memory consumption in angr for our use cases is quite bad in newer versions11 comments · 2024-01-12#4254angr crashes during using ReachDefinationAnalysis while handling local function11 comments · 2023-10-31#659self.state: weakly-referenced object no longer exists11 comments · 2017-09-14#580Make the KB an actual database10 comments · 2017-08-16