diff --git a/pentest_tool/src/box_controls.rs b/pentest_tool/src/box_controls.rs index 4230f2f..9e2de06 100644 --- a/pentest_tool/src/box_controls.rs +++ b/pentest_tool/src/box_controls.rs @@ -198,9 +198,11 @@ pub fn launch_cobalt_strike(project: Project) -> Option>{ check_path.push(&project.files_folder); check_path.push("cobaltstrike/client"); if check_path.as_path().exists() == false{ - println!("looks like you don't have cobalt strike set up on this beacon... try copying your cobalt strike folder here!"); + println!("looks like you don't have cobalt strike set up on this beacon... try copying your cobalt strike folder to the following path!"); + println!("{}", &check_path.display()); return None; } + println!("you will need to enter your sudo password shortly, when you've done that successfully please type END and hit enter"); let handle = thread::spawn(move ||{ let mut cs_dir = PathBuf::new(); cs_dir.push(project.files_folder); @@ -220,6 +222,13 @@ pub fn launch_cobalt_strike(project: Project) -> Option>{ } } }); + thread::sleep(Duration::from_secs(5)); + loop{ + let end = get_user_input("please enter END if the sudo password was enter correctly!"); + if end == "END".to_string(){ + break; + } + } return Some(handle); }