Git Product home page Git Product logo

radare2_banned_functions's Introduction

radare2_banned_functions

A python script for radare2 for discovering banned and dangerous functions. When run during debugging will automatically set breakpoints every time a detected dangerous function is called. To call from within radare,

. /path/to/banned_functions.py

When called from the command line, takes a single parameter, a path to a binary for analysis.

Compatible with both python 2 and 3. Tested on Linux and Windows.

Inspired by Stephen Sims' banned functions script for IDA: https://github.com/steph3nsims/banned_functions/blob/master/banned_functions.py

Requirements

  • Radare2 (obviously)
  • python
  • r2pipe - "pip install r2pipe" or "pip3 install r2pipe" suffices

Bugs and Limitations

Note that there is a bug in a recent version of r2pipe for python, 1.1.0, which prevents use from within radare. Fixed as of 1.2.0. You can also fix yourself by changing line 46 in open_sync.py from 'else:' to 'elif filename:'

Can be called from Cutter, but output is to terminal, not console. Will not add breakpoints to Cutter. These are due to limitations with how Cutter has implemented console commands. Could potentially be fixed by converting the script to a plugin, but that is non-trivial.

radare2_banned_functions's People

Contributors

tfriesen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.