|
--
--
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
(Today, 04:35 PM) snookered
--
If you see advertising/spam in the forums, please click
for that post. Thank you |
||
|
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
![]() ![]() |
Nov 29 2008, 08:51 PM
Post
#1
|
|
Newbie
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? |
|
|
|
Dec 1 2008, 02:07 AM
Post
#2
|
|
XBT Developer
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 |
|
|
|
Dec 2 2008, 06:47 PM
Post
#3
|
|
Newbie
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. |
|
|
|
Dec 2 2008, 07:49 PM
Post
#4
|
|
XBT Developer
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)); |
|
|
|
Dec 4 2008, 10:30 PM
Post
#5
|
|
![]() Advanced Member
Group: Admin Received 1 Thanks Posts: 1,027 Joined: 11-August 04 Member No.: 215 ![]() |
$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. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | SEO by MinervaSEO © Icelabz.net | Time is now: 7th January 2009 - 06:07 PM |