Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new flag to pass arguments directly to AFL++ #84

Merged
merged 5 commits into from
Jan 18, 2024
Merged

Conversation

louismerlin
Copy link
Collaborator

@louismerlin louismerlin commented Jan 16, 2024

The --afl-flags flag (-a for short) takes as an input any flag you would like to give to AFL++ directly.

Rationale

Sometimes, users want to pass custom flags to AFL++, to enable experimental features for examples.

Example

cargo ziggy fuzz -G 43 -a-G42

This command will place the second -G (with value 42) later in the list of arguments to AFL++, which will result in 42 being used for the biggest input size.

Closes #81.

@louismerlin louismerlin added the enhancement New feature or request label Jan 16, 2024
@louismerlin louismerlin self-assigned this Jan 16, 2024
@louismerlin louismerlin merged commit 9c7614c into main Jan 18, 2024
8 checks passed
@louismerlin louismerlin deleted the new-flags-flag branch January 18, 2024 07:47
@vanhauser-thc
Copy link
Collaborator

this can only pass one parameter, correct?
So I cannot do either -a -arg1 -a -arg2 nor -a "-arg1 -arg2" right? As it is it is good enough, might be good enhancement at some later point though.
thanks!

@louismerlin
Copy link
Collaborator Author

Hmm good point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Give extra command line options to afl-fuzz
2 participants