From fcbd0745c4bd94bbd36480f5cd1625d800fe212b Mon Sep 17 00:00:00 2001 From: pyro Date: Thu, 27 Aug 2026 14:51:32 -0500 Subject: [PATCH] made the rust_victim more organized and easier to install --- src/main.rs | 3 +-- src/victim.rs | 2 +- victim_templates/rust_victim/Cargo.toml | 10 ++++++++++ .../{rust_victim => rust_victim/src/main.rs} | 0 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 victim_templates/rust_victim/Cargo.toml rename victim_templates/{rust_victim => rust_victim/src/main.rs} (100%) diff --git a/src/main.rs b/src/main.rs index 85c176e..3cb2060 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,6 @@ use clap::Parser; use rand::RngExt; use rand::distr::Alphanumeric; -use std::sync::mpsc::channel; use std::sync::{Arc, Mutex}; use std::thread::{sleep, spawn}; use std::time::Duration; @@ -154,7 +153,7 @@ async fn main() { let handles = Arc::new(Mutex::new(Vec::new())); let handles_clone = handles.clone(); let primary_handle = spawn(move || { - println!("entering tui..."); + println!("entering startup function..."); let _ = startup(appstate, false, handles_clone); }); if let Ok(mut lock) = handles.lock() { diff --git a/src/victim.rs b/src/victim.rs index 81b5667..81148ab 100644 --- a/src/victim.rs +++ b/src/victim.rs @@ -14,7 +14,7 @@ pub fn generate_code( ) -> Result<(), Box> { let mut source_path = config_file.clone(); source_path.pop(); - source_path.push("victim/src/main.rs"); + source_path.push("victim/rust_victim/src/main.rs"); let mut source = read_to_string(&source_path)?; source = source .replace("|||SERVER|||", &address) diff --git a/victim_templates/rust_victim/Cargo.toml b/victim_templates/rust_victim/Cargo.toml new file mode 100644 index 0000000..207eb50 --- /dev/null +++ b/victim_templates/rust_victim/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "tetanus_victim" +version = "0.1.0" +edition = "2024" + +[dependencies] +obfstr = "0.4.6" +rustls = "0.23.43" +rustls-pemfile = "2.2.0" +sysinfo = "0.39.6" diff --git a/victim_templates/rust_victim b/victim_templates/rust_victim/src/main.rs similarity index 100% rename from victim_templates/rust_victim rename to victim_templates/rust_victim/src/main.rs