fixed the start_pentest function
This commit is contained in:
@@ -1,14 +1,10 @@
|
|||||||
use core::hash;
|
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::fs::read_to_string;
|
use std::fs::read_to_string;
|
||||||
use std::io::BufReader;
|
use std::io::BufReader;
|
||||||
use std::io::Read;
|
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::process;
|
use std::process;
|
||||||
use std::result;
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::thread::spawn;
|
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use std::io::stdin;
|
use std::io::stdin;
|
||||||
use walkdir::WalkDir;
|
use walkdir::WalkDir;
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ fn main() {
|
|||||||
"box_template" => box_template = setting_vec[1].trim_end().to_owned(),
|
"box_template" => box_template = setting_vec[1].trim_end().to_owned(),
|
||||||
"terminal" => terminal_command = 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(),
|
"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(),
|
"rule_location" => rule = setting_vec[1].trim_end().to_owned(),
|
||||||
_ => println!("error unknown setting: {}", setting_vec[0])
|
_ => println!("error unknown setting: {}", setting_vec[0])
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -247,6 +247,7 @@ pub fn start_pentest(config_path: &PathBuf) {
|
|||||||
let mut company_name = String::new();
|
let mut company_name = String::new();
|
||||||
let mut project_name = String::new();
|
let mut project_name = String::new();
|
||||||
let mut config_file_path_buf = config_path.clone();
|
let mut config_file_path_buf = config_path.clone();
|
||||||
|
config_file_path_buf.pop();
|
||||||
let mut passpray_path = config_file_path_buf.clone();
|
let mut passpray_path = config_file_path_buf.clone();
|
||||||
passpray_path.push("passwordspray.md");
|
passpray_path.push("passwordspray.md");
|
||||||
config_file_path_buf.push("new_projects.conf");
|
config_file_path_buf.push("new_projects.conf");
|
||||||
|
|||||||
Reference in New Issue
Block a user