From b85d0e5d7928287298cafe43bbe802552cdcf5d7 Mon Sep 17 00:00:00 2001 From: pyro57000 Date: Thu, 27 Mar 2025 11:49:53 -0500 Subject: [PATCH] added some logic to give you some time to enter the sudo password when required for cobalt strike. --- pentest_tool/src/box_controls.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); }