added some logic to give you some time to
enter the sudo password when required for cobalt strike.
This commit is contained in:
@@ -198,9 +198,11 @@ pub fn launch_cobalt_strike(project: Project) -> Option<JoinHandle<()>>{
|
|||||||
check_path.push(&project.files_folder);
|
check_path.push(&project.files_folder);
|
||||||
check_path.push("cobaltstrike/client");
|
check_path.push("cobaltstrike/client");
|
||||||
if check_path.as_path().exists() == false{
|
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;
|
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 handle = thread::spawn(move ||{
|
||||||
let mut cs_dir = PathBuf::new();
|
let mut cs_dir = PathBuf::new();
|
||||||
cs_dir.push(project.files_folder);
|
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);
|
return Some(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user