From b3c405e2d5ec54548e6cb721e56a30dd9506f132 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Fri, 1 Jun 2018 13:30:32 +0200 Subject: [PATCH] Add sudo and suid to nl --- _gtfobins/nl.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/_gtfobins/nl.md b/_gtfobins/nl.md index d886971..f8309cc 100644 --- a/_gtfobins/nl.md +++ b/_gtfobins/nl.md @@ -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 ---