Skip to content

Commit

Permalink
fix: ensure --dry-run is respected (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xricksanchez committed Apr 30, 2024
1 parent 0a8819b commit 669617e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "afl_runner"
authors = ["0x434b <[email protected]"]
repository = "https://github.com/0xricksanchez/AFL_Runner"
description = "Scaling best-practice AFLPlusPlus fuzzing campaigns made easy"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
keywords = ["afl", "fuzzing", "fuzz-testing", "testing", "fuzzer"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const AFL_OUTPUT: &str = "/tmp/afl_output";
#[derive(Parser, Debug, Clone)]
#[command(name = "Parallelized AFLPlusPlus Campaign Runner")]
#[command(author = "C.K. <[email protected]>")]
#[command(version = "0.4.0")]
#[command(version = "0.4.1")]
pub struct Cli {
/// Subcommand to execute
#[command(subcommand)]
Expand Down
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ fn handle_run_command(run_args: &cli::RunArgs) -> Result<()> {
let harness = create_harness(&merged_args.gen_args)?;
let afl_runner = create_afl_runner(&merged_args.gen_args, harness, raw_afl_flags);
let afl_cmds = afl_runner.generate_afl_commands()?;
if merged_args.dry_run {
utils::print_generated_commands(&afl_cmds);
return Ok(());
}
let target_args = merged_args
.gen_args
.target_args
Expand Down

0 comments on commit 669617e

Please sign in to comment.