GTFOBins.github.io/_gtfobins/nl.md
2018-07-04 19:26:52 +01:00

20 lines
365 B
Markdown

---
description: 'The read file content is corrupted by a leading space added to each
line.
'
functions:
file-read:
- code: |
LFILE=file_to_read
nl -bn -w1 -s '' $LFILE
suid-enabled:
- code: |
LFILE=file_to_read
./nl -bn -w1 -s '' $LFILE
sudo-enabled:
- code: |
LFILE=file_to_read
sudo nl -bn -w1 -s '' $LFILE
---