This commit is contained in:
1 parent
3a99da196d
commit
d7613a4987
10 files changed
+603
-189
No files matched your search
+3
-1
@@ -85,7 +85,9 @@ pub(crate) fn run(
|
||||
}
|
||||
|
||||
if let Some(cmd) = &cmd {
|
||||
let encoded = base64::engine::general_purpose::STANDARD.encode(cmd.as_bytes());
|
||||
let argv = ["/bin/sh".to_string(), "-c".to_string(), cmd.clone()];
|
||||
let data: Vec<u8> = argv.join("\0").into_bytes();
|
||||
let encoded = base64::engine::general_purpose::STANDARD.encode(&data);
|
||||
cmdline.push(format!("slim.cmd={encoded}"));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user