Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00e19bc1b4 | ||
|
|
fd64caefc1 | ||
|
|
e8b557bb4e |
@@ -287,7 +287,7 @@ pub fn password_spray_help(project: &Project, season: String, lseason: String, y
|
|||||||
println!("starting password display and timer operations...");
|
println!("starting password display and timer operations...");
|
||||||
let mut outline = String::new();
|
let mut outline = String::new();
|
||||||
match exemethod.as_str(){
|
match exemethod.as_str(){
|
||||||
"1\n" => outline = format!("{} spray -p ||PASSWORD|| -o C:\\temp\\fr\\||PASSWORD||.txt", nefarious_spray_path.map_or("".to_string(), |s| s)),
|
"1\n" => outline = format!("execute-assembly {} spray -p ||PASSWORD|| -o C:\\temp\\fr\\||PASSWORD||.txt", nefarious_spray_path.map_or("".to_string(), |s| s)),
|
||||||
"2\n" => outline = format!("inlineExecute-Assembly --dotnetassembly {} --assemblyargs spray -p ||PASSWORD|| -o C:\\temp\\fr\\||PASSWORD||.txt --etw --amsi --pipe totallyawesomepipeyo", nefarious_spray_path.map_or("".to_string(), |s| s)),
|
"2\n" => outline = format!("inlineExecute-Assembly --dotnetassembly {} --assemblyargs spray -p ||PASSWORD|| -o C:\\temp\\fr\\||PASSWORD||.txt --etw --amsi --pipe totallyawesomepipeyo", nefarious_spray_path.map_or("".to_string(), |s| s)),
|
||||||
"3\n" => outline = {let mut path = String::new(); println!("path to nefarious spray.exe"); stdin().read_line(&mut path).unwrap(); format!("run {} spray -p ||PASSWORD|| -o C:\\temp\\fr\\||PASSWORD||.txt", path.trim_ascii_end())},
|
"3\n" => outline = {let mut path = String::new(); println!("path to nefarious spray.exe"); stdin().read_line(&mut path).unwrap(); format!("run {} spray -p ||PASSWORD|| -o C:\\temp\\fr\\||PASSWORD||.txt", path.trim_ascii_end())},
|
||||||
"4\n" => outline = {let mut path = String::new(); println!("path to nefarious spray.exe"); stdin().read_line(&mut path).unwrap(); format!("{} spray -p ||PASSWORD|| -o C:\\temp\\fr\\||PASSWORD||.txt", path.trim_ascii_end())},
|
"4\n" => outline = {let mut path = String::new(); println!("path to nefarious spray.exe"); stdin().read_line(&mut path).unwrap(); format!("{} spray -p ||PASSWORD|| -o C:\\temp\\fr\\||PASSWORD||.txt", path.trim_ascii_end())},
|
||||||
@@ -295,7 +295,11 @@ pub fn password_spray_help(project: &Project, season: String, lseason: String, y
|
|||||||
}
|
}
|
||||||
for password in &passwords{
|
for password in &passwords{
|
||||||
let mut _spraycontinue = String::new();
|
let mut _spraycontinue = String::new();
|
||||||
println!("\n{}\n", outline.replace("||PASSWORD||", password));
|
let mut printline = outline.replace("||PASSWORD||", password);
|
||||||
|
if password.contains("useraspass"){
|
||||||
|
printline = printline.replace("-p useraspass", "--UserAsPass")
|
||||||
|
}
|
||||||
|
println!("\n{}\n", printline);
|
||||||
println!("press enter to start timer");
|
println!("press enter to start timer");
|
||||||
stdin().read_line(&mut _spraycontinue).unwrap();
|
stdin().read_line(&mut _spraycontinue).unwrap();
|
||||||
println!("waiting for {} minutes...", wait_dur.as_secs());
|
println!("waiting for {} minutes...", wait_dur.as_secs());
|
||||||
|
|||||||
@@ -122,6 +122,9 @@ pub fn install(config_path: &PathBuf){
|
|||||||
config_folder_path.pop();
|
config_folder_path.pop();
|
||||||
let mut projects_conf_path = config_folder_path.clone();
|
let mut projects_conf_path = config_folder_path.clone();
|
||||||
let mut bell_file_path = config_folder_path.clone();
|
let mut bell_file_path = config_folder_path.clone();
|
||||||
|
let del_on_fail = config_folder_path.clone();
|
||||||
|
projects_conf_path.push("projects.conf");
|
||||||
|
fs::create_dir_all(&config_folder_path).expect("error creating config dir");
|
||||||
bell_file_path.push("bell.mp3");
|
bell_file_path.push("bell.mp3");
|
||||||
let bell_sound_url = "https://github.com/Pyro57000/pentest_tool/raw/refs/heads/main/resources/bell.mp3";
|
let bell_sound_url = "https://github.com/Pyro57000/pentest_tool/raw/refs/heads/main/resources/bell.mp3";
|
||||||
let response = get(bell_sound_url).unwrap();
|
let response = get(bell_sound_url).unwrap();
|
||||||
@@ -129,9 +132,6 @@ pub fn install(config_path: &PathBuf){
|
|||||||
let mut bell_file = File::create(bell_file_path).unwrap();
|
let mut bell_file = File::create(bell_file_path).unwrap();
|
||||||
copy(&mut response.take(response_length), &mut bell_file).unwrap();
|
copy(&mut response.take(response_length), &mut bell_file).unwrap();
|
||||||
println!("bell notification tone sucessfully downloaded!");
|
println!("bell notification tone sucessfully downloaded!");
|
||||||
let del_on_fail = config_folder_path.clone();
|
|
||||||
projects_conf_path.push("projects.conf");
|
|
||||||
fs::create_dir_all(&config_folder_path).expect("error creating config dir");
|
|
||||||
let mut config_file = fs::File::create(config_path).expect("error creating file");
|
let mut config_file = fs::File::create(config_path).expect("error creating file");
|
||||||
let mut projects_conf_file = fs::File::create(projects_conf_path).expect("error creating projects config file");
|
let mut projects_conf_file = fs::File::create(projects_conf_path).expect("error creating projects config file");
|
||||||
projects_conf_file.write_all(b"customer:name:notes:files:active:box_name\n").expect("error writing default project info");
|
projects_conf_file.write_all(b"customer:name:notes:files:active:box_name\n").expect("error writing default project info");
|
||||||
|
|||||||
Reference in New Issue
Block a user