Skip to content

Commit

Permalink
Add --afl-flags flag to pass flags directly to AFL++
Browse files Browse the repository at this point in the history
  • Loading branch information
louismerlin committed Jan 16, 2024
1 parent 8fb6b6b commit 3d8ea14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/cargo-ziggy/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ impl Fuzz {
mutation_option,
&timeout_option_afl,
&dictionary_option,
&self.afl_flags,
&format!("./target/afl/debug/{}", self.target),
]
.iter()
Expand Down
4 changes: 4 additions & 0 deletions src/bin/cargo-ziggy/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ pub struct Fuzz {
// This value helps us create a global timer for our display
#[clap(skip=std::time::Instant::now())]
start_time: std::time::Instant,

/// Pass
#[clap(short = 'f', value_name = "FLAGS", default_value = "")]
afl_flags: String,
}

#[derive(Args)]
Expand Down

0 comments on commit 3d8ea14

Please sign in to comment.