fixed the start_pentest function

This commit is contained in:
pyro57000
2025-02-13 14:13:47 -06:00
parent 345124baf1
commit ac037a15a9
3 changed files with 2 additions and 5 deletions

View File

@@ -1,14 +1,10 @@
use core::hash;
use std::fs;
use std::fs::read_to_string;
use std::io::BufReader;
use std::io::Read;
use std::io::Write;
use std::path::PathBuf;
use std::process;
use std::result;
use std::thread;
use std::thread::spawn;
use std::time::Duration;
use std::io::stdin;
use walkdir::WalkDir;

View File

@@ -69,7 +69,7 @@ fn main() {
"box_template" => box_template = setting_vec[1].trim_end().to_owned(),
"terminal" => terminal_command = setting_vec[1].trim_end().to_owned(),
"cracking_rig" => cracking_rig = setting_vec[1].trim_end().to_owned(),
"rockyou_location" => rockyou = setting_vec[1].trim_ascii_end().to_owned(),
"rockyou_location" => rockyou = setting_vec[1].trim_end().to_owned(),
"rule_location" => rule = setting_vec[1].trim_end().to_owned(),
_ => println!("error unknown setting: {}", setting_vec[0])
}

View File

@@ -247,6 +247,7 @@ pub fn start_pentest(config_path: &PathBuf) {
let mut company_name = String::new();
let mut project_name = String::new();
let mut config_file_path_buf = config_path.clone();
config_file_path_buf.pop();
let mut passpray_path = config_file_path_buf.clone();
passpray_path.push("passwordspray.md");
config_file_path_buf.push("new_projects.conf");