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 ---