Giter VIP home page Giter VIP logo

aflplusplus-pge's Introduction

Accelerating Fuzzing through Prefix-guided Execution (PGE)

This repository contains the implementation of AFL++-PGE used in the evaluation part.

Contents

  1. How to build AFL++-PGE
  2. How to instrument a target with AFL++-PGE
  3. How to fuzz a target with AFL++-PGE
  4. How to use AFL++-PGE on Magma

Building AFL++-PGE

Clone this repository and cd to the root directory, then

$ cd AFLplusplus-PGE
$ make all

Note that, since AFL++-PGE uses LLVM PCGUARD for instrumentation, we strongly suggest to compile AFL++-PGE with clang >= 13 for better performance.

Instrumenting Binaries

A nearly-universal approach would be specifying C/C++ compiler when configuring and building your binary:

$ CC=/path/to/AFLplusplus-PGE/afl-clang-fast CXX=/path/to/AFL-PGE/afl-clang-fast++ ./configure
$ CC=/path/to/AFLplusplus-PGE/afl-clang-fast CXX=/path/to/AFL-PGE/afl-clang-fast++ make clean all

Fuzzing

There is only one extra argument in AFL++-PGE compared to AFL++:

  • -r (required),the target recall rate used during prefix length search.

The fuzzing command for a binary would be, for example:

$ /path/to/AFLplusplus-PGE/afl-fuzz -r 90 -m none -i input/ -o output/ -- /path/to/bin @@

Using AFL++-PGE on Magma

If you'd like to evaluate AFL++-PGE on Magma benchmark by yourself, we provide the general steps as well:

  1. clone the magma repo;

  2. copy the directory in magma_integration/aflplusplus_pge_r90 into /path/to/magma/fuzzers/aflplusplus_pge_r90

The default recall is set to 90%. You can change it in magma_integration/aflplusplus_pge_r90/run.sh

aflplusplus-pge's People

Contributors

shao-hua-li avatar

Stargazers

Leslin avatar  avatar item avatar Zz avatar yxxx avatar kenan_xiao avatar Zach avatar  avatar aweNousaku avatar B.B. avatar NWMonster avatar  avatar JeasonTom avatar  avatar Heqing Huang avatar Zhendong Su avatar Jonas avatar Yuanyuan Yuan avatar

Watchers

James Cloos avatar  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.