Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Freeware on September 03, 2003, 02:46 PM

Title: Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Freeware on September 03, 2003, 02:46 PM
Hey this is for I3inary below, but anyone else that likes this code can use it. (Insert this code RIGHT BELOW InsertDword Checksum in packet 0x51.)


If Product = "RHSS" Or Product = "LTRD" Or Product = "RHSD" Then
InsertDWORD &H0
InsertDWORD &H0
InsertNTString exeinfo
InsertNTString "Freeware"
SendPacket &H51
Exit Sub
End If


This sends the 0x51 packet with 0 cdkeys (ignoring all the cdkey info alltogether) Hope you find it useful.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: UserLoser on September 03, 2003, 03:39 PM
If that works, does this mean 0x50 works for those products too? [havn't tested this yet]

Edit: Wow, 0x50 does work for DRTL - 0x51 works too!

Is there a way to get JSTR to work with 0x51?  I get disconnected, but no IPban, i've also tried sending the CDKey in plain text also, and that didn't work either, yet no ipban.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Yoni on September 03, 2003, 04:37 PM
mamazing! +1
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Freeware on September 03, 2003, 04:44 PM
Thanks for comments. Yes it does use 0x50 like a normal binary connection. You could use the old login procedure, but (stupidly) bnet enabled the newer login connection for older clients.

SC Japan: I have tried logging in with SC Japan many many times, but am unable to get it to work. If anybody knows anything about connecting with it please post

[edit] After some research i found out that SC Japan requires the old login procedure since they disowned the game. SC Japan obviously still works (saw someone just the other day with a SC Japan icon), but I dont know any bots that support it. With Bnet Docs down, I cant find the older login procedure code anywhere. If anybody really wants to connect with SC Japan ill try to packet log it later.
Title: Reminder
Post by: Kp on September 03, 2003, 04:45 PM
The real non-cdkey clients presently do not use the 0x50 login; it is an oversight by the battle.net programmers that allows this method to work.  If they correct that oversight, your client will quite likely be banned upon its next connect.
Title: Re:Reminder
Post by: Freeware on September 03, 2003, 04:47 PM
Quote from: Kp on September 03, 2003, 04:45 PM
The real non-cdkey clients presently do not use the 0x50 login; it is an oversight by the battle.net programmers that allows this method to work.  If they correct that oversight, your client will quite likely be banned upon its next connect.

Yah but since when are they smart enough to do that. (*Cough Cough SC Japan Cough*)
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Yoni on September 03, 2003, 04:52 PM
You are correct; since SC Japan.
There was a short period where "Japan bots" were the latest craze and Blizzard disabled that, first by disabling non-plain CD-keys from SC Japan clients, then by restricting them to public channels.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Freeware on September 03, 2003, 05:11 PM
Yup Japan Bots were crazy until blizzard disabled them (in about a month). Though they were too stupid to ban all the cdkeys that did login with SC Japan. Probably Text Colors will be disabled next.

Well if anybody did want to know how to login with SC Japan:

Version byte: 0xA9

                   With PacketBuf
                       .InsertDWORD 0
                       .InsertNTString varCdkey 'Plaintext
                       .InsertNTString "Freeware"
                       .SendPacket sckBnet, &H30
                   End With

There you go its the '0x51' for SC Japan.
[Edit] I dont really know much about 0x30 login, but I think if you did want to login as spawn make the dword 1.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: UserLoser on September 03, 2003, 05:17 PM
Quote from: Freeware on September 03, 2003, 04:44 PM
Thanks for comments. Yes it does use 0x50 like a normal binary connection. You could use the old login procedure, but (stupidly) bnet enabled the newer login connection for older clients.

SC Japan: I have tried logging in with SC Japan many many times, but am unable to get it to work. If anybody knows anything about connecting with it please post

[edit] After some research i found out that SC Japan requires the old login procedure since they disowned the game. SC Japan obviously still works (saw someone just the other day with a SC Japan icon), but I dont know any bots that support it. With Bnet Docs down, I cant find the older login procedure code anywhere. If anybody really wants to connect with SC Japan ill try to packet log it later.

If you actually have Starcraft Japan, mind packet logging creating a game [0x1a/0x1c?], starting a game [0x3c?], and leaving a game, also a ladder game along with 0x2c :P
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Spht on September 03, 2003, 05:18 PM
Quote from: Freeware on September 03, 2003, 05:11 PM
Yup Japan Bots were crazy until blizzard disabled them (in about a month). Though they were too stupid to ban all the cdkeys that did login with SC Japan. Probably Text Colors will be disabled next.

Why would they ban the CD-keys of users that log on with the Japanese version of Starcraft? There are still people who play the game...
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Freeware on September 03, 2003, 05:34 PM
Quote from: UserLoser on September 03, 2003, 05:17 PM
If you actually have Starcraft Japan, mind packet logging creating a game [0x1a/0x1c?], starting a game [0x3c?], and leaving a game, also a ladder game along with 0x2c :P

I will upload that information later after i get JSTR login to work.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: CrAz3D on September 03, 2003, 05:52 PM
Holy Jesus!   Someone did their homework.....might be a little delayed in the color department but nice work everywhere else.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Freeware on September 03, 2003, 06:09 PM
Quote from: CrAz3D on September 03, 2003, 05:52 PM
Holy Jesus!   Someone did their homework.....might be a little delayed in the color department but nice work everywhere else.

Yup didnt take too long, - im almost done with JSTR login if anybody cares.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Camel on September 03, 2003, 09:05 PM
That's right, don't mention Camel for suggesting sending zero cd keys.

Quote from: Camel on August 29, 2003, 12:58 AM
Quote from: 13inary on August 28, 2003, 04:07 PM
Well Starcraft Shareware Accepts my 0x50 login but of course it rejects my 0x51 since there is no cdkey for starcraft shareware. For starcraft shareware's it seems like i can just send my 0x50, then the 68XIRHSS with the Exe information and continue from there. I just need to know if im doing it right.

Also it seems that i still use Bnetauth.dll to make a password hash, but it doesnt seem to need a 0x51 challenge hashes. Anyway I just want to know if i can send 0x50, send 68XIRHSS with the Exe information, send my login, join chat and thats it.

Every time i log the data everything sent is the same, but i need to know what D‡Û before the exe information is, that seems to be the only changing variable.

Did you try sending 0x51 with zero cd keys? I'm not sure if it will work, but from the way you phrased that, it seems like you're sending a single junk cd key.

BTW, that DWORD is probably the checksum.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Freeware on September 03, 2003, 09:12 PM
Well camel I used my own code i already had, and did not know you posted that. *thanks camel anyway*
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Camel on September 03, 2003, 09:45 PM
Damn straight! Now where are those 72 virgins I was promised?
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Soul Taker on September 03, 2003, 10:07 PM
Ew @ having your CD-Key storing variable as a variant.
And why do you keep talking about them 'banning' SC colors?  They gave up with disabling the D2 color codes.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: BlazingKnight on September 03, 2003, 10:30 PM
I have a question. Has anyone here ever download the actual JSTR game and played it. Or does anybody know where I can get it? I'd really like to have it for archival sake >.<
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: CrAz3D on September 03, 2003, 11:12 PM
Is archival a word?....just wondering.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Dark-Feanor on September 04, 2003, 10:04 AM
Quote from: Spht on September 03, 2003, 05:18 PM
Quote from: Freeware on September 03, 2003, 05:11 PM
Yup Japan Bots were crazy until blizzard disabled them (in about a month). Though they were too stupid to ban all the cdkeys that did login with SC Japan. Probably Text Colors will be disabled next.
Why would they ban the CD-keys of users that log on with the Japanese version of Starcraft? There are still people who play the game...
Not really.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: CrAz3D on September 04, 2003, 11:25 AM
Some people may though....it's not like ALL games die.
Title: Re:Diablo Retail, Diablo Shareware and Starcraft Shareware login.
Post by: Spht on September 04, 2003, 12:18 PM
Quote from: DaRk-FeAnOr on September 04, 2003, 10:04 AM
Quote from: Spht on September 03, 2003, 05:18 PM
Quote from: Freeware on September 03, 2003, 05:11 PM
Yup Japan Bots were crazy until blizzard disabled them (in about a month). Though they were too stupid to ban all the cdkeys that did login with SC Japan. Probably Text Colors will be disabled next.
Why would they ban the CD-keys of users that log on with the Japanese version of Starcraft? There are still people who play the game...
Not really.

You just don't disable a game because "not enough legitimate users play it and too many bots use it." Blizzard has been known to restrict games, however, which has already been done to the Japanese version of Starcraft. No other restrictions will be made.