mirror of
https://github.com/ap-pauloafonso/ratio-spoof.git
synced 2026-01-11 20:10:22 +00:00
single-file fix
This commit is contained in:
parent
c23b5261b1
commit
5bee0b32f0
2 changed files with 5 additions and 2 deletions
|
|
@ -12,9 +12,8 @@ Ratio-spoof acts like a normal bittorrent client but without downloading or uplo
|
|||
## Usage
|
||||
With a recent python3 version installed, you will be able to run it on linux/macos/windows.
|
||||
```
|
||||
usage: ratio-spoof.py [-h] -t <TORRENT_PATH> -d <INITIAL_DOWNLOADED> <DOWNLOAD_SPEED> -u <INITIAL_UPLOADED> <UPLOAD_SPEED>
|
||||
usage: ratio-spoof.py -t <TORRENT_PATH> -d <INITIAL_DOWNLOADED> <DOWNLOAD_SPEED> -u <INITIAL_UPLOADED> <UPLOAD_SPEED>
|
||||
|
||||
ratio-spoof is a open source tool to trick private trackers
|
||||
|
||||
optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
|
|
@ -50,5 +49,6 @@ The currently emulation is hard coded to be a popular and accepted client qbitto
|
|||
|
||||
## Resources
|
||||
http://www.bittorrent.org/beps/bep_0003.html
|
||||
|
||||
https://wiki.theory.org/index.php/BitTorrentSpecification
|
||||
|
||||
|
|
|
|||
|
|
@ -145,6 +145,9 @@ def clear_screen():
|
|||
print("\033c", end="")
|
||||
|
||||
def t_total_size(data):
|
||||
if ('length' in data['info']):
|
||||
return data['info']['length']
|
||||
|
||||
return sum(map(lambda x : x['length'] , data['info']['files']))
|
||||
|
||||
def t_infohash_urlencoded(data, raw_data):
|
||||
|
|
|
|||
Loading…
Reference in a new issue