Skip to content

Commit b85d0e5

Browse files
committed
added some logic to give you some time to
enter the sudo password when required for cobalt strike.
1 parent 477ac6e commit b85d0e5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pentest_tool/src/box_controls.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,11 @@ pub fn launch_cobalt_strike(project: Project) -> Option<JoinHandle<()>>{
198198
check_path.push(&project.files_folder);
199199
check_path.push("cobaltstrike/client");
200200
if check_path.as_path().exists() == false{
201-
println!("looks like you don't have cobalt strike set up on this beacon... try copying your cobalt strike folder here!");
201+
println!("looks like you don't have cobalt strike set up on this beacon... try copying your cobalt strike folder to the following path!");
202+
println!("{}", &check_path.display());
202203
return None;
203204
}
205+
println!("you will need to enter your sudo password shortly, when you've done that successfully please type END and hit enter");
204206
let handle = thread::spawn(move ||{
205207
let mut cs_dir = PathBuf::new();
206208
cs_dir.push(project.files_folder);
@@ -220,6 +222,13 @@ pub fn launch_cobalt_strike(project: Project) -> Option<JoinHandle<()>>{
220222
}
221223
}
222224
});
225+
thread::sleep(Duration::from_secs(5));
226+
loop{
227+
let end = get_user_input("please enter END if the sudo password was enter correctly!");
228+
if end == "END".to_string(){
229+
break;
230+
}
231+
}
223232
return Some(handle);
224233
}
225234

0 commit comments

Comments
 (0)