Welcome Guest ( Log In | Register )


This is NOT a Search Box
PRIVATE NOTICE FROM
--
Eminem-The.Recovery-+ covers(Bootleg)-2009 (torrent) has just been added.
(Today, 05:34 PM)
--
Eminem-The.Recovery-+ covers(Bootleg)-2009 (torrent) has just been added.
PRIVATE NOTICE FROM
--
InterRaptor just beat Thistle score of 11,650 in Carrot with a new score of 21,800
(Today, 05:09 PM)
--
InterRaptor just beat Thistle score of 11,650 in Carrot with a new score of 21,800
PRIVATE NOTICE FROM Fuggazi
--
Personal Chat Box for sale. Occasionally used as a search button. Post all offers here.
(Today, 05:01 PM) Fuggazi
--
Personal Chat Box for sale. Occasionally used as a search button. Post all offers here.
PRIVATE NOTICE FROM snookered
--
If you see advertising/spam in the forums, please click for that post. Thank you smile.gif
(Today, 04:35 PM) snookered
--
If you see advertising/spam in the forums, please click for that post. Thank you smile.gif
PRIVATE NOTICE FROM
--
Marley And Me TS Kvcd By KRG-666inc (torrent) has just been added.
(Today, 04:19 PM)
--
Marley And Me TS Kvcd By KRG-666inc (torrent) has just been added.
PRIVATE NOTICE FROM crunchiemunchie1972
--
he on way round now should be at yours within 2 min laugh.gif
(Today, 04:03 PM) crunchiemunchie1972
--
he on way round now should be at yours within 2 min laugh.gif
PRIVATE NOTICE FROM richmond
--
off the now see you later
(Today, 04:03 PM) richmond
--
off the now see you later
PRIVATE NOTICE FROM richmond
--
thanks m8
(Today, 03:59 PM) richmond
--
thanks m8
PRIVATE NOTICE FROM crunchiemunchie1972
--
he be round shortly laugh.gif
(Today, 03:59 PM) crunchiemunchie1972
--
he be round shortly laugh.gif
PRIVATE NOTICE FROM richmond
--
rofl.gif rofl.gif
(Today, 03:58 PM) richmond
--
rofl.gif rofl.gif
PRIVATE NOTICE FROM crunchiemunchie1972
--
hillfield quads
(Today, 03:58 PM) crunchiemunchie1972
--
hillfield quads
PRIVATE NOTICE FROM richmond
--
who's that then
(Today, 03:57 PM) richmond
--
who's that then
PRIVATE NOTICE FROM crunchiemunchie1972
--
richmond you partner in crime at mine the now laugh.gif
(Today, 03:57 PM) crunchiemunchie1972
--
richmond you partner in crime at mine the now laugh.gif
PRIVATE NOTICE FROM richmond
--
hi
(Today, 03:56 PM) richmond
--
hi
PRIVATE NOTICE FROM crunchiemunchie1972
--
hi all
(Today, 03:55 PM) crunchiemunchie1972
--
hi all
ShoutOut! © InvisionMint
Float shoutbox?

Xbt Help Creating Users / Passkey

This topic is about Xbt Help Creating Users / Passkey, the author, NoMercy, wrote about: Hello, I have been looking into the XBT tracker and with the help of the documentation I found the way to insert and delete torrents. But many things ... To read more just scroll down

> 

If you would like to advertise your Hosting, Services or Products on Filesoup, please contact snookered for a quote.

 
Reply to this topicStart new topic
> Xbt Help Creating Users / Passkey
NoMercy
post Nov 29 2008, 08:51 PM
Post #1
Newbie
Group Icon

Group: Member
Posts: 2
Joined: 29-November 08
Member No.: 53,636




Hello, I have been looking into the XBT tracker and with the help of the documentation I found the way to insert and delete torrents. But many things are still hidden to me. One of which is the way of inserting users to the xbt_users table.

I would like to do this, because I want to keep the tracker private and make use of the torrent_pass. Let's say I have a user that I want to give an account, how do I return to him his passkey, so that he can start using the tracker? I can't find the place it is being generated.

Could you guys tell me how to create a user for the XBT tracker?
Go to the top of the page
 
+
xtf
post Dec 1 2008, 02:07 AM
Post #2
XBT Developer
Group Icon

Group: VIP
Received 5 Thanks
Posts: 1,690
Joined: 17-October 03
Member No.: 208



insert into xbt_users (uid) values (1);
or
insert ignore into xbt_users (uid) select id from users;

This post has been edited by xtf: Dec 1 2008, 02:10 AM
Go to the top of the page
 
+
NoMercy
post Dec 2 2008, 06:47 PM
Post #3
Newbie
Group Icon

Group: Member
Posts: 2
Joined: 29-November 08
Member No.: 53,636




Thanks for the reply, but how do you generate the torrent pass for a user? The part to put in the annouce url? (eg. 127.0.0.1/00000001a123456789b123456789cdef/announce)

What I found was something like:

0-7 uid | 8-31 pass

where pass is 24 chars, hex decoded into 12 bytes and compared to 12 bytes of a generated sha1 key.

But I can't find how the pass can be generated. Right now I'm just testing it by copying it from the sha1 key as the part I want.
Go to the top of the page
 
+
xtf
post Dec 2 2008, 07:49 PM
Post #4
XBT Developer
Group Icon

Group: VIP
Received 5 Thanks
Posts: 1,690
Joined: 17-October 03
Member No.: 208



$info_hash = 'aabbccddf8c594cf481dbd4d12f0c376bae7d334';
$torrent_pass_private_key = 'xxx';
$torrent_pass_version = 3;
$uid = 757854;
printf('%08x%s', $uid, substr(sha1(sprintf('%s %d %d %s', $torrent_pass_private_key, $torrent_pass_version, $uid, pack('H*', $info_hash))), 0, 24));
Go to the top of the page
 
+
Jaggi
post Dec 4 2008, 10:30 PM
Post #5


Advanced Member
Group Icon

Group: Admin
Received 1 Thanks
Posts: 1,027
Joined: 11-August 04
Member No.: 215





QUOTE (xtf @ Dec 2 2008, 07:49 PM) *
$info_hash = 'aabbccddf8c594cf481dbd4d12f0c376bae7d334';
$torrent_pass_private_key = 'xxx';
$torrent_pass_version = 3;
$uid = 757854;
printf('%08x%s', $uid, substr(sha1(sprintf('%s %d %d %s', $torrent_pass_private_key, $torrent_pass_version, $uid, pack('H*', $info_hash))), 0, 24));


not had chance to look at the new hash system yet XTF but thats one crazy hash u got there. Looks good and i know its alot more secure than before, it will be standard in IPBTracker 3.0.
Go to the top of the page
 
+

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 







Loans | Bankruptcy | Guitar Books | Hotels in Krakow | Free Advertising
RSS Lo-Fi Version | SEO by MinervaSEO © Icelabz.net Time is now: 7th January 2009 - 06:07 PM