1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-16 17:01:38 +02:00
GTFOBins.github.io/_gtfobins/tac.md

17 lines
452 B
Markdown
Raw Permalink Normal View History

2020-03-23 13:09:18 +01:00
---
2020-03-23 19:50:55 +01:00
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.
2020-03-23 13:09:18 +01:00
functions:
file-read:
2020-03-23 19:50:55 +01:00
- code: |
2020-03-23 13:09:18 +01:00
LFILE=file_to_read
2020-03-23 19:50:55 +01:00
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"
2020-03-23 13:09:18 +01:00
---