This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KTorrent + Sites that uses passkeys

Tags: None
(comma "," separated)
imported4-Anonymous
Registered Member
Posts
329
Karma
0

KTorrent + Sites that uses passkeys

Sat Oct 29, 2005 3:46 pm
Hi. I just compiled KTorrent from SVN (29.10.2005). I seem to be having problem with trackers that uses a passkey. I had this problem with KTorrent 1.1rc1, but it dissappeared when I switched to 1.1, and later SVN from 19.10.2005. Anyway, I've tried two methods (the later used to work sometimes, with 1.1rc1)

1) Click the torrent in konqueror, "open with" KTorrent. I tried this with two torrents, from two different trackers (both using the same script/program though):

Code: Select all
Doing tracker request to url : http://tracker.torrentbytes.net/announce.php?passkey=<32 charracter key here>&peer_id=-KT12DV-820832128038&port=3000&uploaded=0&downloaded=0&left=376702008&compact=1&numwant=100&event=started&info_hash=%1d%7f~E%f1%beH%bb%1b%60Z%a1%2b%f8z%b5%0dp%f44
Error : MiSsInG kEy

Doing tracker request to url : http://tracker.scenetorrents.org:80/announce.php?passkey=<32 charracter key here>&peer_id=-KT12DV-820832128038&port=3000&uploaded=0&downloaded=0&left=152436146&compact=1&numwant=100&event=started&info_hash=%ec%e8%f8%a8%94%cc%5e8%3bz%dbH%3c%88%cc5%1c%cd%9d%ab
Error : MiSsInG kEy
Doing tracker request to url : http://tracker.scenetorrents.org:80/announce.php?passkey=<32 charracter key here>&peer_id=-KT12DV-820832128038&port=3000&uploaded=0&downloaded=0&left=152436146&compact=1&numwant=100&event=started&info_hash=%ec%e8%f8%a8%94%cc%5e8%3bz%dbH%3c%88%cc5%1c%cd%9d%ab
Error : Illegal token: Y


2) Downloading the .torrent, and opening it with KTorrent (this used to work when 1) didn't work in 1.1rc1). I tried this only with one torrent:
Code: Select all
Doing tracker request to url : http://tracker.torrentbytes.net/announce.php?passkey=<32 charracter key here>&peer_id=-KT12DV-234107333653&port=3000&uploaded=0&downloaded=0&left=376702008&compact=1&numwant=100&event=started&info_hash=%1d%7f~E%f1%beH%bb%1b%60Z%a1%2b%f8z%b5%0dp%f44
Error : Illegal token: Y


And by the way, a default "wait for 5mins before auto-retry" would be neat. I can feel the trackers pain when I do one request every second :P
imported4-Anonymous
Registered Member
Posts
329
Karma
0

Sat Oct 29, 2005 3:47 pm
I really should get a login here soon, but anyway, if you (the developers) need access to such a site, I can get you an invite to one of them so you can use it to debug. :)
imported4-Ivan
Registered Member
Posts
819
Karma
0

Sat Oct 29, 2005 6:53 pm
if you (the developers) need access to such a site, I can get you an invite to one of them so you can use it to debug.
Yes, you can send this invite to George (see FAQ for email).
imported4-Anonymous
Registered Member
Posts
329
Karma
0

Sun Oct 30, 2005 3:25 am
Ivan wrote:
if you (the developers) need access to such a site, I can get you an invite to one of them so you can use it to debug.
Yes, you can send this invite to George (see FAQ for email).


done. The email from the FAQ is invited.
George
Moderator
Posts
5421
Karma
1

Sun Oct 30, 2005 7:45 pm
We will just have to popup a passkey dialog.
Nikolay
Registered Member
Posts
33
Karma
0

KIO::get

Sun Oct 30, 2005 8:20 pm
I have similar problem. Whe I try to download torrent (using latest SVN code)
the tracker respond with "Error : torrent not registered with this tracker".

But if I use ktorrent 1.1 the same torrent work fine.

I try using wget to download the tracker request url and it download it
correctly - bencoded file with peer info.
But using the tracker request url from a browser (firefox) it return me the
same error as ktorrent "Error : torrent not registered with this tracker".

It seem that this is problem introduced with using of KIO::get
I think some trackers have some kind of protection from using from a browser.
Ok, this is just a guess.
George
Moderator
Posts
5421
Karma
1

Sun Oct 30, 2005 8:28 pm
Wait a second, do these sites include the passkey in the torrent ?
Nikolay
Registered Member
Posts
33
Karma
0

Sun Oct 30, 2005 8:34 pm
George wrote:Wait a second, do these sites include the passkey in the torrent ?

Yes, the password is encoded as a part of the announce url.
Example:
http://tracker..../announce.php?passkey ... 8893e99577
George
Moderator
Posts
5421
Karma
1

Sun Oct 30, 2005 8:40 pm
Ignore that last question, I was kind of confused.

I downloaded the Doom Torrent from SceneTorrents.

The tracker request contains the correct passkey, the same as in the torrent file, yet it still says Missing Key.

wget gives me the same result. The key is clearly passed along in the http request and it still gives back a missing key error. Strange ...
George
Moderator
Posts
5421
Karma
1

Sun Oct 30, 2005 9:04 pm
This is the output I get from wget :
$ wget http://tracker.scenetorrents.org:80/ann ... e%ca%d3%2b
--21:39:03-- http://tracker.scenetorrents.org/announ ... 5b820b2d5f
=> `announce.php?passkey=0243b8ab3493d57290a2075b820b2d5f'
Resolving tracker.scenetorrents.org... [1] 24062
[2] 24063
[3] 24064
[4] 24065
[5] 24066
[6] 24067
[7] 24068
[8] 24069
[9] 24070
[2] Done peer_id=-KT12DV-359939826856
[3] Done port=1337
[4] Done uploaded=0
[5] Done downloaded=0
[6] Done left=740511427
[7] Done compact=1
[8] Done numwant=100
[9] Done event=stopped
[joris@localhost][09:39][~/ktorrent/torrents]$ 62.212.84.239
Connecting to tracker.scenetorrents.org|62.212.84.239|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45 [text/plain]

100%[===============================================================================>] 45 --.--K/s

21:39:03 (346.03 KB/s) - `announce.php?passkey=0243b8ab3493d57290a2075b820b2d5f' saved [45/45]


Notice the fact that it saves to the file announce.php?passkey=0243b8ab3493d57290a2075b820b2d5f , it somehow thinks that passkey=... is part of the filename and not part of the URL's arguments, weird the URL seems to be OK.
imported4-Anonymous
Registered Member
Posts
329
Karma
0

Skrot

Sun Oct 30, 2005 10:07 pm
You should probably use "" around the URL, since it contains &-charracters.
George
Moderator
Posts
5421
Karma
1

Mon Oct 31, 2005 10:34 am
Putting "" around it still gives the same results, though it saves it to announce.php? + all URL arguments.

But still the missing key message remains.
George
Moderator
Posts
5421
Karma
1

Mon Oct 31, 2005 1:13 pm
1.1 seems to work without a problem , the problem has to lie with the KIO::get change.
George
Moderator
Posts
5421
Karma
1

Mon Oct 31, 2005 6:34 pm
Using tcpdump and ethereal, it seems that KIO::get identifies itself as konqueror or something like that, QHttp used in 1.1 identifies itself as nobody (no User-Agent). It seems the tracker filters out browsers or anything it doesn't know.
George
Moderator
Posts
5421
Karma
1

Mon Oct 31, 2005 9:57 pm
Bug is fixed now.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]