Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 2.28 KB

README.md

File metadata and controls

55 lines (40 loc) · 2.28 KB

ratio-spoof

ratio-spoof is a tool to spoof the download/upload amount on private bittorrent trackers.

How does it work

In the way that Bittorrent protcols work, the tracker itself can not measure how much a peer has uploaded or downloaded. Insterad, the peer is trusted to report (or anoounce) back how much it has uploaded or downloaded.

ratio-spoof acts like a normal bittorrent client but without downloading or uploading anything, it just spoofs to the tracker by announcing.

Usage

usage: ./ratio-spoof -t <TORRENT_PATH> -d <INITIAL_DOWNLOADED> -ds <DOWNLOAD_SPEED> -u <INITIAL_UPLOADED> -us <UPLOAD_SPEED>

optional arguments: -h show this help message and exit -p [PORT] change the port number, default: 8999 -c [CLIENT_CODE] change the client emulation, default: qbit-4.0.3

required arguments: -t <TORRENT_PATH>
-d <INITIAL_DOWNLOADED> -ds <DOWNLOAD_SPEED>
-u <INITIAL_UPLOADED> -us <UPLOAD_SPEED>

<INITIAL_DOWNLOADED> and <INITIAL_UPLOADED> must be in %, b, kb, mb, gb, tb <DOWNLOAD_SPEED> and <UPLOAD_SPEED> must be in kbps, mbps [CLIENT_CODE] options: qbit-4.0.3, qbit-4.3.3


./ratio-spoof -d 90% -ds 100kbps -u 0% -us 1024kbps -t (torrentfile_path) 
  • Will start "downloading" with the initial value of 90% of the torrent total size at 100 kbps speed until it reaches 100% mark.
  • Will start "uploading" with the initial value of 0% of the torrent total size at 1024kbps (aka 1mb/s) indefinitely.
./ratio-spoof -d 2gb -ds 500kbps -u 1gb -us 1024kbps -t (torrentfile_path) 
  • Will start "downloading" with the initial value of 2gb downloaded if possible at 500kbps speed until it reaches 100% mark.
  • Will start "uploading" with the initial value of 1gb uplodead at 1024kbps (aka 1mb/s) indefinitely.

Example Execution: example execution

Can you get caught cheating?

It's possible to get caught cheating using this, depending on how sophisticated the measures your tracker takes. Use at your own discretion.

Bittorrent Client

The default client emulation is qbittorrent v4.0.3, however you can change it by using the -c argument.

Resources

http://www.bittorrent.org/beps/bep_0003.html

https://wiki.theory.org/index.php/BitTorrentSpecification