From bbbff04e55f06389511bc2346d1756a4270c30aa Mon Sep 17 00:00:00 2001 From: Dov Murik Date: Wed, 30 May 2018 07:45:32 +0000 Subject: [PATCH] xargs: add file-read --- _gtfobins/xargs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_gtfobins/xargs.md b/_gtfobins/xargs.md index 82c5e36..646a3db 100644 --- a/_gtfobins/xargs.md +++ b/_gtfobins/xargs.md @@ -6,4 +6,7 @@ functions: - code: echo yyy | sudo xargs -Ixxx /usr/bin/id suid-enabled: - code: echo yyy | xargs -Ixxx /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 ---