Bittorrent Tracker Request

Using a torrent file from

http://torrent.ubuntu.com:6969/ 

I compute its hash, which matches the hash on the page.

Then I make a request to the tracker. how

 http://torrent.ubuntu.com:6969/announce?info_hash=9a81333c1b16e4a83c10f3052c1590aadf5e2e20 

But I get

d14: cause of failure 63: Requested download is not allowed for use with this tracker .e

According to the specification, should this work?

Tracker Spec General Features

+4
source share
1 answer

You specified the info_hash value in hexadecimal format, not URL encoding. SHA-1 hash bytes must be encoded directly, for example:

 http://torrent.ubuntu.com:6969/file?info_hash=%9A%813%3C%1B%16%E4%A8%3C%10%F3%05%2C%15%90%AA%DF%5E.%20 

In addition, announce URLs typically require additional parameters, such as peer_id .

+4
source

Source: https://habr.com/ru/post/1286484/


All Articles