Skip to content

Commit

Permalink
Merge pull request #84 from srlabs/new-flags-flag
Browse files Browse the repository at this point in the history
Add new flag to pass arguments directly to AFL++
  • Loading branch information
louismerlin authored Jan 18, 2024
2 parents a09fc98 + 33d6ad1 commit 9c7614c
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.clone().unwrap_or_default(),
&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 flags to AFL++ directly
#[clap(short, long)]
afl_flags: Option<String>,
}

#[derive(Args)]
Expand Down

0 comments on commit 9c7614c

Please sign in to comment.