Skip to main content

Debugging with Angr package

Project description

dAngr - A Debugger for Angr

dAngr offers a streamlined approach to leverage angr's powerful symbolic execution capabilities within a user-friendly command-line interface (CLI) environment, eliminating the necessity for extensive programming knowledge usually required to use angr. Providing powerful capabilities for analyzing and debugging binaries.

Features

  • Perform symbolic execution on binaries for debugging purposes.
  • Command-line interface for easy interaction.
  • Easy way to call a function with chosen arguments without the hassle of memory management and argument parsing.
  • Platform independent execution

Installation

To use dAngr, follow these steps:

  1. Preferable create a virtual environment, for instance using venv.

  2. Install the required dependencies by running the following command:

pip install .

Note: on MacOS you may need to run the following for now:

pip install --pre --no-binary capstone capstone==5.0.0.post1
  1. Run dAngr:
dAngr

Docker

For simplicity dAngr is also available using a Dockerfile.

Build Dockerfile to create an clean environment for dAngr.

docker build -t dangr .

Run the Docker image and get the dAngr command prompt.

docker run -it dangr

If you wish to run the dAngr Docker on your own binaries, you may need use shared volumes.

docker run -it dAngr -v <loal-binary-dir>:/home/ubuntu/dAngr/<binaryfile>

Help

  1. In the debugger prompt, you can find help as follows:
(dAngr)> help

Documentation

Further documentation on the commands that may be used can be found here.

Example Usage

A basic example, demonstrating the capabilities of dAngr, can be found here

A more practical example, a simplified version of the vulnerability found in the Eufy ecosystem, can be found here

Advanced Symobic Use Case

Without specifying any concrete inputs, dAngr will execute the target binary using symbolic inputs.

Contributing

Contributions to dAngr are welcome! If you find any bugs or have suggestions for new features, please open an issue or submit a pull request on GitHub.

Research

Check out our other research here

Contact

Have questions or feedback? Don't hesitate to reach out to us! open an issue on our repository or feel free to contact one of the authors.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Notes:

When installing pygraphviz, you may need to first install graphviz with dev extensions: apt-get install graphviz graphviz-dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dangr-0.0.1.tar.gz (108.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dAngr-0.0.1-py3-none-any.whl (123.4 kB view details)

Uploaded Python 3

File details

Details for the file dangr-0.0.1.tar.gz.

File metadata

  • Download URL: dangr-0.0.1.tar.gz
  • Upload date:
  • Size: 108.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for dangr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 54acf01fb4dc7bb38a5faa6590131bf052a400843e1fbff5ed7409fe00fc7a76
MD5 e74538e2b28fba716c6a981b404d3e99
BLAKE2b-256 26e950e59f1585f57fb50b5140f1f3dd4570d096a53ea784ef3366bd9bc7060f

See more details on using hashes here.

File details

Details for the file dAngr-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dAngr-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 123.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for dAngr-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08c55006897f542b9185204d8700be59f271247670e40ea53dccba6c74bb0031
MD5 dd06ccf141e61912b2afe0ca6256e210
BLAKE2b-256 90edcf640e5d35852396725108db2698804fb102f7ffb2b1f440d1c6889bed9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page