• Welcome to Valhalla Legends Archive.
 

Client Token and account creation

Started by OriOn, May 12, 2003, 06:38 AM

Previous topic - Next topic

OcTaViuS

Quote from: tA-Kane on May 13, 2003, 02:43 PM
Keep trying, don't give up. You keep the knowledge you learn the longest when you learn it yourself instead of having someone else hand-feed you the knowledge.

not true, theres alot of ppl (including myself) who learn better thru your so called 'hand-feed' method

vampgirl

Quote from: vampgirl on May 15, 2003, 08:03 AM
Thank you for that last reply.  That was very helpful to me.  I understand how to hash the password and how to send the packets now.  I created my own packetbuffer class and my own secure hash module.  I tested it on my pvpgn and it did create the account, however it did not login.

I took a snapshot of Fyrebot's login sequence to create an account and login and it works as follows:
3a,3d,2d,3d,3a,0a

This is the snapshot of my sc game client making an account
c->s 51
s->c 51
c->s 2d
s->c 2d
33 (not important just the profile)
c->s 3d
s->c 3d
c->s 29
s->c 29
c->s ack <-- maybe im missing this in my bot packet login sequence
c->s 0a
s->c 0a

I send in my sequence:  2d,36,3d,29 <- after 29 I send FIN packet.  It is closing the connection because the account was not made to login, however after 5 mins the account shows up on the server.
What am I not getting here?


BTW, since Im Ipbanned from bnetdocs (I dont know why), Can someone please tell me the meaning of each returned byte from server for 0x3D ?
Thank you.

Kp

Quote from: vampgirl on May 15, 2003, 08:03 AM
I took a snapshot of Fyrebot's login sequence to create an account and login and it works as follows:
3a,3d,2d,3d,3a,0a

This is the snapshot of my sc game client making an account
c->s 51
s->c 51
c->s 2d
s->c 2d
33 (not important just the profile)
c->s 3d
s->c 3d
c->s 29
s->c 29
c->s ack <-- maybe im missing this in my bot packet login sequence
c->s 0a
s->c 0a

I send in my sequence:  2d,36,3d,29 <- after 29 I send FIN packet.  It is closing the connection because the account was not made to login, however after 5 mins the account shows up on the server.
What am I not getting here?
FYI, 33 is not profile request. :)  26 is profile query.

What prompted your closure of the connection?  Unless the server is incompatible with bncs, it should not kick you for a failed creation.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

vampgirl

#18
no no .. all the data is from useast.battle.net
oh i didnt know 26 was the profile request ..
but i think 33 is the initial profile that you get before you login
or something from bnet.  i didnt make that up .. its what the game
client sends.  and the server didnt send the session close .. my client
closed it.  the reason it closes it is because it did not login.  but i can easily fix that.  the point is why cant i login after i create the account which i know i have created cuz i see the file when i tested it on my pvpgn server. (although it doesnt create it right away... like 2-3 mins later)  but when i use a game client or another bot that creates accounts like fyrebot .. it creates the account right away on my pvpgn.  so basically what im asking is, what is wrong with my packet sequence?  And why is the account made 2-3 mins later.  Here is my event sequence:
send 36 to verify key
catch 36 (key is good)
send 3d create account
catch 3d (its created)
send 29 to login
catch 29 (login failed)


Kp

Quote from: vampgirl on May 16, 2003, 11:58 AM
no no .. all the data is from useast.battle.net
oh i didnt know 26 was the profile request ..
but i think 33 is the initial profile that you get before you login
or something from bnet.  i didnt make that up .. its what the game
client sends.  and the server didnt send the session close .. my client
closed it.  the reason it closes it is because it did not login.  but i can easily fix that.  the point is why cant i login after i create the account which i know i have created cuz i see the file when i tested it on my pvpgn server. (although it doesnt create it right away... like 2-3 mins later)  but when i use a game client or another bot that creates accounts like fyrebot .. it creates the account right away on my pvpgn.  so basically what im asking is, what is wrong with my packet sequence?  And why is the account made 2-3 mins later.  Here is my event sequence:
send 36 to verify key
catch 36 (key is good)
send 3d create account
catch 3d (its created)
send 29 to login
catch 29 (login failed)
33 is indeed sent by the game client, but it has nothing to do with profiles.

As to your account creation, my guess is that either: a) you're misinterpreting the response the server gives, so you think the create worked when it didn't or b) you're not properly sending your password.  Without the code of what you do to create each of those packets, there's not much more I can do.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Arta

RE banning from BnetDocs: Don't use proxies. Don't use a shitty ISP (Read: AOL). Don't use a crappy browser like MSN or AOL.

Failing that, it's temporary anyway, so just go back later.

vampgirl

#21
THANK YOU! :)
I got it to work! ... apparently all my packet sequences were wrong lol.