diff --git a/src/cli.rs b/src/cli.rs index b050b4c..df95db5 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -92,7 +92,7 @@ pub struct Cli { #[arg(short = 'x', long)] pub extensions: Option, - #[arg(short = 'u', long)] + #[arg(short = 'u', long, conflicts_with_all = ["target", "subnet", "header_url", "dir_url"])] pub gui: bool, #[arg(short, long)] diff --git a/src/gui/mod.rs b/src/gui/mod.rs index 98b573e..6fac778 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -138,7 +138,11 @@ impl App for PentestApp { ui.horizontal(|ui| { ui.label("Threads:"); ui.add(egui::Slider::new(&mut cli.threads, 1..=500)); - ui.checkbox(&mut cli.log, "Enable Logging"); + ui.label("output file:"); + let mut output = cli.output.clone().unwrap_or_default(); + if ui.text_edit_singleline(&mut output).changed() { + cli.output = Some(output); + } }); ui.add_space(5.0); @@ -184,7 +188,7 @@ impl App for PentestApp { tinyscanner::run( &target_url, &ports, - threads, + threads, &output_path, &scan_mode, verify,