Jump to content

Bug in torrent creator in version 1.5


WilliamKidd

Recommended Posts

Posted

Might be related to http://forum.utorrent.com/viewtopic.php?id=4185.

1. Create a torrent, enter the announcer URL in "Trackers:" field of the "Create new .torrent" dialog without any whitespace/newlines before or after it. The result is:

0000  64 38 3A 61 6E 6E 6F 75 6E 63 65 34 38 3A 68 74   d8:announce48:ht
0010 74 70 3A 2F 2F 74 72 61 63 6B 65 72 2E 63 6F 6D tp://tracker.com
0020 2F 61 6E 6E 6F 75 6E 63 65 2E 70 68 70 3F 70 61 /announce.php?pa
0030 73 73 5F 6B 65 79 3D 50 41 53 53 4B 45 59 31 30 ss_key=PASSKEY10
0040 3A 63 72 65 61 74 65 64 20 62 79 31 33 3A 75 54 :created by13:uT
0050 6F 72 72 65 6E 74 2F 31 35 30 30 31 33 3A 63 72 orrent/150013:cr
0060 65 61 74 69 6F 6E 20 64 61 74 65 69 31 31 34 32 eation datei1142

2. Now add two newlines after the URL and re-create the torrent. The result is:

0000  64 38 3A 61 6E 6E 6F 75 6E 63 65 34 38 3A 68 74   d8:announce48:ht
0010 74 70 3A 2F 2F 74 72 61 63 6B 65 72 2E 63 6F 6D tp://tracker.com
0020 2F 61 6E 6E 6F 75 6E 63 65 2E 70 68 70 3F 70 61 /announce.php?pa
0030 73 73 5F 6B 65 79 3D 50 41 53 53 4B 45 59 31 33 ss_key=PASSKEY13
0040 3A 61 6E 6E 6F 75 6E 63 65 2D 6C 69 73 74 6C 6C :announce-listll
0050 34 38 3A 68 74 74 70 3A 2F 2F 74 72 61 63 6B 65 48:http://tracke
0060 72 2E 63 6F 6D 2F 61 6E 6E 6F 75 6E 63 65 2E 70 r.com/announce.p
0070 68 70 3F 70 61 73 73 5F 6B 65 79 3D 50 41 53 53 hp?pass_key=PASS
0080 4B 45 59 65 65 31 30 3A 63 72 65 61 74 65 64 20 KEYee10:created
0090 62 79 31 33 3A 75 54 6F 72 72 65 6E 74 2F 31 35 by13:uTorrent/15
00A0 30 30 31 33 3A 63 72 65 61 74 69 6F 6E 20 64 61 0013:creation da

Note that announce-list has been added. It is superfluous because there is a single tracker URL and it is already contained in announce.

Not a big deal? Unless you happen to upload such .torrent containing your own passkey on a tracker, which modifies only announce and leaves announce-list intact :(

3. Add one or more spaces after the tracker URL. The result is:

0000  64 38 3A 61 6E 6E 6F 75 6E 63 65 35 31 3A 68 74   d8:announce51:ht
0010 74 70 3A 2F 2F 74 72 61 63 6B 65 72 2E 63 6F 6D tp://tracker.com
0020 2F 61 6E 6E 6F 75 6E 63 65 2E 70 68 70 3F 70 61 /announce.php?pa
0030 73 73 5F 6B 65 79 3D 50 41 53 53 4B 45 59 20 20 ss_key=PASSKEY
0040 20 31 30 3A 63 72 65 61 74 65 64 20 62 79 31 33 10:created by13
0050 3A 75 54 6F 72 72 65 6E 74 2F 31 35 30 30 31 33 :uTorrent/150013
0060 3A 63 72 65 61 74 69 6F 6E 20 64 61 74 65 69 31 :creation datei1

Spaces are not trimmed.

Posted

Spaces are gonna be stripped.

If you add newlines, it makes an announce-list, intended as a way to force announce-list to get created, even with only one tracker.

Posted

OK. Thank you for the quick replies.

Just in case someone has time to waste: I am curious is there any real-world benefit (or special use) of having announce-list in the .torrent file?

  • 2 months later...
Posted

#2 may be by design but it's screwing up users at my site. We reject .torrent files containing announce lists and it's gotten to be a common problem that files created with uTorrent contain them. I too can't see any reason for a single-tracker announce list.

TooMuchTime

Admin & tracker author, OiNK's Pink Palace

Posted

Wasn't a problem for me when I made 24 torrents in a day for Oink.

Is it really that hard to make sure there's no extra newlines? You can add a warning on the upload page if need be, or just make the tracker rewrite it to be announce

It's not gonna get changed, ludde wanted a way for people to be able to force announce-list, for whatever reason they may have.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...