From 2463f9477aca475cfa9eebd75aa38a513c94679a Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 3 Jun 2018 11:51:44 +0200 Subject: [PATCH] Add xargs file-read even though it uses the external echo command --- _gtfobins/xargs.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_gtfobins/xargs.md b/_gtfobins/xargs.md index b8fbec1..35d8386 100644 --- a/_gtfobins/xargs.md +++ b/_gtfobins/xargs.md @@ -6,4 +6,9 @@ functions: - code: sudo xargs -a /dev/null /usr/bin/id suid-enabled: - code: ./xargs -a /dev/null /usr/bin/id + 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. This GNU version only. + code: | + LFILE=file_to_read + xargs -a "$LFILE" -0 ---