GTFOBins.github.io/_gtfobins/nl.md

18 lines
381 B
Markdown
Raw Normal View History

2018-05-30 09:56:12 +02:00
---
2018-06-01 13:30:32 +02:00
description: |
The read file content is corrupted by a leading space added to each line.
2018-05-30 09:56:12 +02:00
functions:
2018-06-01 13:30:32 +02:00
sudo-enabled:
- code: |
LFILE=file_to_read
sudo nl -bn -w1 -s '' $LFILE
suid-enabled:
- code: |
LFILE=file_to_read
./nl -bn -w1 -s '' $LFILE
2018-05-30 09:56:12 +02:00
file-read:
2018-06-01 13:30:32 +02:00
- code: |
2018-05-30 12:45:42 +02:00
LFILE=file_to_read
nl -bn -w1 -s '' $LFILE
2018-05-30 09:56:12 +02:00
---