switched the cobalt strike command to be

.output instead of .status to prevent
it from locking you out of returning to the
main menu.
This commit is contained in:
pyro57000
2025-03-12 12:52:02 -05:00
parent 8a1dca30e1
commit b137e0c34d

View File

@@ -185,7 +185,6 @@ pub fn clean_unused_boxes(projects: &Vec<Project>, boxtemplate: &String) -> Opti
}
pub fn launch_cobalt_strike(project: Project) -> Option<JoinHandle<()>>{
let sh_cmd = format!("sh -c \"cd /pentest/cobaltstrike/client && ./cobaltstrike\"");
let handle = thread::spawn(move ||{
let mut cs_dir = PathBuf::new();
cs_dir.push(project.files_folder);
@@ -197,7 +196,7 @@ pub fn launch_cobalt_strike(project: Project) -> Option<JoinHandle<()>>{
.arg("--root").arg(project.boxname)
.arg("--")
.arg("./cobaltstrike")
.status();
.output();
if cobalt_strike_launch_result.is_err(){
let error = cobalt_strike_launch_result.err().unwrap();
println!("error launching cobalt strike!");