added some logic to give you some time to

enter the sudo password when required for
cobalt strike.
This commit is contained in:
pyro57000
2025-03-27 11:49:53 -05:00
parent 477ac6e360
commit b85d0e5d79

View File

@@ -198,9 +198,11 @@ pub fn launch_cobalt_strike(project: Project) -> Option<JoinHandle<()>>{
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<JoinHandle<()>>{
}
}
});
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);
}