Crates.io | afl |
lib.rs | afl |
version | |
source | src |
created_at | 2016-01-31 15:45:35.152188 |
updated_at | 2024-12-06 12:17:30.212452 |
description | Fuzzing Rust code with american-fuzzy-lop |
homepage | https://github.com/rust-fuzz/afl.rs |
repository | https://github.com/rust-fuzz/afl.rs |
max_upload_size | |
id | 4035 |
Cargo.toml error: | TOML parse error at line 21, column 1 | 21 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Fuzz testing is a software testing technique used to find security and stability issues by providing pseudo-random data as input to the software. AFLplusplus is a popular, effective, and modern fuzz testing tool based on AFL. This library, afl.rs, allows one to run AFLplusplus on code written in the Rust programming language.
Documentation can be found in the Rust Fuzz Book.
Screen recording of AFL running on Rust code.
Before starting to fuzz, you should reconfigure your system for optimal
performance and better crash detection. This can be done with cargo afl system-config
.
But this subcommand requires root, so it uses sudo internally. Hence, you might need to enter
your password.
By default, the AFL++ CMPLOG feature is activated, which helps to achieve good code coverage. However, it is not beneficial to activate CMPLOG on more than two instances. So if you run multiple AFL++ instances on your fuzzing target, you can disable CMPLOG by specifying the command line parameter '-c -'.
This document will familiarize you with AFL++ features to help in running a successful fuzzing campaign.
By default, the fuzzing
config is set when cargo-afl
is used to build. If you want to prevent this, just set the
environment variable AFL_NO_CFG_FUZZING
to 1
when building.