Skip to content

Minimal settings for running AFL (American Fuzzy Lop)

Notifications You must be signed in to change notification settings

zhoulaifu/hello_afl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal settings for running AFL

To install the fuzzer:

To instrument and compile the program:

Suppose the fuzzer is built in ~/Downloads/afl/

$~/Downloads/afl/afl-clang helloworld_afl.c

Note:

  • The command above assumes that you have clang installed

  • The following operations will need before running the fuzzer

    SL=/System/Library; PL=com.apple.ReportCrash
    launchctl unload -w ${SL}/LaunchAgents/${PL}.plist
    sudo launchctl unload -w ${SL}/LaunchDaemons/${PL}.Root.plist

These operations are suggested by afl-clang itself.

  • If you are on Linux, you probably will use afl-gcc, and as well as the following operation
$ sudo bash -c "echo core >/proc/sys/kernel/core_pattern"

The latter is to "avoid having crashes misinterpreted as timeouts" (from AFL warning messages).

To run the fuzzer:

$~/Downloads/afl/afl-fuzz -i Testcases/ -o Findings/ -- ./a.out

It is cool!

About

Minimal settings for running AFL (American Fuzzy Lop)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages