Angr – A Powerful And User-Friendly Binary Analysis Platform

0
6
Angr - A Powerful And User-Friendly Binary Analysis Platform

angr is a platform-agnostic binary analysis framework. It is dropped at you by the Computer Security Lab at UC Santa Barbara, SEFCOM at Arizona State University, their related CTF staff, Shellphish, the open supply neighborhood, and @rhelmot.

What?
angr is a collection of Python three libraries that allow you to load a binary and do lots of cool issues to it:

  • Disassembly and intermediate-illustration lifting
  • Program instrumentation
  • Symbolic execution
  • Control-flow evaluation
  • Data-dependency evaluation
  • Value-set analysis (VSA)
  • Decompilation

The brief model of “how to install angr” is mkvirtualenv --python=$(which python3) angr && python -m pip set up angr.

Example
angr does lots of binary evaluation stuff. To get you began, here is a easy instance of utilizing symbolic execution to get a flag in a CTF problem.

import angr

venture = angr.Project("angr-doc/examples/defcamp_r100/r100", auto_load_libs=False)

@venture.hook(0x400844)
def print_flag(state):
    print("FLAG SHOULD BE:", state.posix.dumps(0))
    venture.terminate_execution()

venture.execute()

Quick Start

MoreTip.com

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.