1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00

Add sudo and suid to nl

This commit is contained in:
Andrea Cardaci 2018-06-01 13:30:32 +02:00
parent 5a1c87e7c5
commit b3c405e2d5

View File

@ -1,8 +1,17 @@
---
description: |
The read file content is corrupted by a leading space added to each line.
functions:
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
file-read:
- description: This prepends a leading space to each line.
code: |
- code: |
LFILE=file_to_read
nl -bn -w1 -s '' $LFILE
---