angr

功能强大、用户友好的二进制分析平台!「A powerful and user-friendly binary analysis platform!」

Github stars Tracking Chart

angr

Latest Release
Python Version
PyPI Statistics
License

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://api.angr.io/en/latest/

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.

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

Main metrics

Overview
Name With Ownerangr/angr
Primary LanguagePython
Program languagePython (Language Count: 5)
Platform
License:BSD 2-Clause "Simplified" License
所有者活动
Created At2015-08-06 21:46:55
Pushed At2025-04-22 20:04:33
Last Commit At2025-04-22 13:04:31
Release Count220
Last Release Namev9.2.152 (Posted on 2025-04-22 17:07:31)
First Release Namev9.0.4369 (Posted on 2020-09-17 19:42:28)
用户参与
Stargazers Count7.9k
Watchers Count184
Fork Count1.1k
Commits Count13.1k
Has Issues Enabled
Issues Count1995
Issue Open Count443
Pull Requests Count3071
Pull Requests Open Count98
Pull Requests Close Count249
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private