American Fuzzy Lop

Source: Internet
Author: User

1. Installation

Download the source code (http://lcamtuf.coredump.cx/afl/) to compile the installation.

2. Inserting piles

gcc/g++ to recompile the target program is as follows:
CC=/PATH/TO/AFL/AFL-GCC./configure
Make clean all
For a C + + program, set:
cxx=/path/to/afl/afl-g++.

Afl-clang and afl-clang++ are used in a similar way.

3. Running

Afl-fuzz-i Dirofin-o dirofout Pathofprogram

Afl-fuzz is responsible for the process of fuzzing, you need to specify a directory for the initial test cases, a directory to store the findings, and a directory for the target program.

For the target program that reads the input directly from the stdin, the syntax is as follows:
$./afl-fuzz-i Testcase_dir-o Findings_dir/path/to/program [...]

For the target program to read input from the file, use "@@", the syntax is as follows:
$./afl-fuzz-i Testcase_dir-o Findings_dir/path/to/program @@

You can also use the-f option to write the mutation data to a specified file.
The target program without being instrument can be fuzz with the QEMU mode (-Q), or directly with Blind-fuzzer mode (-N).
Use the-t and-M options to set the default timeout and memory limit for the fuzz process.
The fuzzing process for general Afl-fuzz lasts for several days, and if you want to end early, you can use the-D option.

American Fuzzy Lop

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.