mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Fix sort file-read to avoid actually sorting lines
Thanks to @dubek.
This commit is contained in:
parent
b6dfe3e083
commit
42997519e1
@ -1,17 +1,15 @@
|
|||||||
---
|
---
|
||||||
description: |
|
|
||||||
The read file content is corrupted by being sorted.
|
|
||||||
functions:
|
functions:
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
sudo sort "$LFILE"
|
sudo sort -m "$LFILE"
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
./sort "$LFILE"
|
./sort -m "$LFILE"
|
||||||
file-read:
|
file-read:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
sort "$LFILE"
|
sort -m "$LFILE"
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user