Coder Social home page Coder Social logo

danblackwell / prescientfuzz Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16.2 MB

Repository for the PrescientFuzz fuzzer (based on LibAFL)

License: Apache License 2.0

Dockerfile 0.09% Rust 72.57% Python 0.57% Shell 0.40% C 6.98% HTML 0.01% C++ 19.13% Assembly 0.02% Makefile 0.23% PowerShell 0.01%

prescientfuzz's Introduction

PrescientFuzz

PrescientFuzz is a fuzzer with improved exploration abilities. To achieve this, it takes in a copy of the fuzzing target's control flow graph and uses this to predict which inputs are worth fuzzing.

A full write-up is available here.

Building and Running a Target Program

WARNING: Right now, the build is fiddly and only works for some versions of LLVM.

First you need to build the fuzzer; this is modified from LibAFL's fuzzbench fuzzer (to try and get the max performance). First let's go ahead and build that:

cd fuzzers/fuzzbench
cargo build --release

Now, building your target requires you to use the compiler wrapper we just built, so:

export CC=$(pwd)/target/release/libafl_cc
export CXX=$(pwd)/target/release/libafl_cxx

You need to specify where the control flow graph will be output (note that this is in a propietary binary format currently, see libafl_cc/src/SanitizerCoverage.cpp::dumpCFGtoFile to see it):

export AFL_LLVM_CFG_FILE=${YOUR_TARGET_DIR}/afl_cfg.bin

Finally, you should be able to build your target with the standard procedure (Make or equivalent). Then running it is a case of supplying the input seeds directory (-i), output directory (-o) and control flow graph file path (-c). For example:

mkdir seeds && echo "TEST" > seeds/seed
./my_built_target_binary -i seeds -o OUT -c $AFL_LLVM_CFG_FILE

For more info about LibAFL that this is modified from, see here.

prescientfuzz's People

Contributors

addisoncrump avatar andreafioraldi avatar danblackwell avatar devnexen avatar domenukk avatar epi052 avatar evanrichter avatar expend20 avatar fabianfreyer avatar julihoh avatar langston-barrett avatar lenawanel avatar maxammann avatar mkravchik avatar mrmaxmeier avatar novafacing avatar omergreen avatar omreebenari avatar pr0me avatar rbran avatar rmalmain avatar s1341 avatar saruman9 avatar spacewhite avatar syheliel avatar teumessianfox avatar tokatoka avatar toseven avatar vanhauser-thc avatar worksbutnottested avatar

Watchers

 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.