From d3b3c390a4a9e3836bb40652f4295cd2fe41cc6c Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Wed, 30 May 2018 11:50:14 +0200 Subject: [PATCH] Simplify xargs invocation --- _gtfobins/xargs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_gtfobins/xargs.md b/_gtfobins/xargs.md index 646a3db..f57acbc 100644 --- a/_gtfobins/xargs.md +++ b/_gtfobins/xargs.md @@ -1,11 +1,11 @@ --- functions: execute-non-interactive: - - code: echo yyy | xargs -Ixxx /usr/bin/id + - code: xargs -a /dev/null /usr/bin/id sudo-enabled: - - code: echo yyy | sudo xargs -Ixxx /usr/bin/id + - code: sudo xargs -a /dev/null /usr/bin/id suid-enabled: - - code: echo yyy | xargs -Ixxx /usr/bin/id + - code: ./xargs -a /dev/null /usr/bin/id file-read: - description: This relies on the fact the the file doesn't contain a null char (ASCII 0). code: xargs --arg-file=file_to_read -0 echo