diff --git a/pentest_tool/src/info_controls.rs b/pentest_tool/src/info_controls.rs index b7c1e79..474363a 100644 --- a/pentest_tool/src/info_controls.rs +++ b/pentest_tool/src/info_controls.rs @@ -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; diff --git a/pentest_tool/src/main.rs b/pentest_tool/src/main.rs index e8f7fcd..80b19ab 100644 --- a/pentest_tool/src/main.rs +++ b/pentest_tool/src/main.rs @@ -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]) } diff --git a/pentest_tool/src/start_pentest.rs b/pentest_tool/src/start_pentest.rs index 89ca559..5678e54 100644 --- a/pentest_tool/src/start_pentest.rs +++ b/pentest_tool/src/start_pentest.rs @@ -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");