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:
@@ -185,7 +185,6 @@ pub fn clean_unused_boxes(projects: &Vec<Project>, boxtemplate: &String) -> Opti
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn launch_cobalt_strike(project: Project) -> Option<JoinHandle<()>>{
|
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 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);
|
||||||
@@ -197,7 +196,7 @@ pub fn launch_cobalt_strike(project: Project) -> Option<JoinHandle<()>>{
|
|||||||
.arg("--root").arg(project.boxname)
|
.arg("--root").arg(project.boxname)
|
||||||
.arg("--")
|
.arg("--")
|
||||||
.arg("./cobaltstrike")
|
.arg("./cobaltstrike")
|
||||||
.status();
|
.output();
|
||||||
if cobalt_strike_launch_result.is_err(){
|
if cobalt_strike_launch_result.is_err(){
|
||||||
let error = cobalt_strike_launch_result.err().unwrap();
|
let error = cobalt_strike_launch_result.err().unwrap();
|
||||||
println!("error launching cobalt strike!");
|
println!("error launching cobalt strike!");
|
||||||
|
|||||||
Reference in New Issue
Block a user