GTFOBins.github.io/_gtfobins/xargs.md

15 lines
479 B
Markdown
Raw Normal View History

2018-05-30 09:36:30 +02:00
---
functions:
execute-non-interactive:
2018-05-30 11:50:14 +02:00
- code: xargs -a /dev/null /usr/bin/id
2018-05-30 09:36:30 +02:00
sudo-enabled:
2018-05-30 11:50:14 +02:00
- code: sudo xargs -a /dev/null /usr/bin/id
2018-05-30 09:36:30 +02:00
suid-enabled:
2018-05-30 11:50:14 +02:00
- code: ./xargs -a /dev/null /usr/bin/id
file-read:
2018-06-03 12:11:46 +02:00
- 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
2018-05-30 09:36:30 +02:00
---