Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: shadypalm88 on May 11, 2004, 08:23 PM

Title: SID_LOGONRESPONSE2 ignored?
Post by: shadypalm88 on May 11, 2004, 08:23 PM
Has anyone ever had Battle.Net ignore a LOGONRESPONSE(2) packet?  I sent it, Battle.net gave an ACK and did not close the connection, but didn't send anything back.  This is an account I created to test account creation on my bot connected as Brood War.  And no, Battle.Net does not ask for e-mail registration.  Any ideas?
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: tA-Kane on May 11, 2004, 08:34 PM
Quote from: shadypalm88 on May 11, 2004, 08:23 PMBattle.net gave an ACK ... but didn't send anything back.
You lost me there. Battle.net did or did not send anything back? If it didn't send anything back, then perhaps you should define ACK for me?
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: shadypalm88 on May 11, 2004, 08:35 PM
That's what shows up in Ethereal (packet logger).  ACK is a TCP flag that Battle.net sent back saying that it recieved the LOGONRESPONSE2 packet.  So it goes through, I don't get IP-banned, but I don't log on either.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: tA-Kane on May 11, 2004, 08:52 PM
Do you have a packetlog? What client were you trying to emulate?
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: Eric on May 11, 2004, 09:10 PM
If you enter an invalid password too many times, Battle.net will temporarily lock you out of the account without warning.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: Falcon[anti-yL] on May 11, 2004, 09:26 PM
Its 5 times.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: hismajesty on May 11, 2004, 09:45 PM
Yea, which client? Not all clients require e-mail accounts which could be why it didn't request one? :P
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: shadypalm88 on May 11, 2004, 09:49 PM
Nah, I'm thinking it's a lockout.  My bot probably is creating accounts with incorrect passwords.  Thanks.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: Falcon[anti-yL] on May 11, 2004, 10:25 PM
You get locked out when you use the wrong password for an account 5 times.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: MyndFyre on May 12, 2004, 01:01 PM
Nope, I send SID_LOGONRESPONSE2 for SC/BW/W2/D2/LoD and I connect fine.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: Skywing on May 12, 2004, 08:02 PM
Quote from: LoRd[nK] on May 11, 2004, 09:10 PM
If you enter an invalid password too many times, Battle.net will temporarily lock you out of the account without warning.
IIRC, the lockout scheme is something like: start at a 20 second delay, and after each further failure double the delay time.  At some point, Blizzard may have implemented sharing of lockout delays between all servers in a server cluster.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: shadypalm88 on May 29, 2004, 02:23 PM
I'm just going to ressurect this briefly to add a note.  I recently added "hashed" connections to my bot, with a slightly modified version of BnetAuth.dll.  When it got to sending SID_LOGONRESPONSE2, this same thing was happenning, Battle.Net received the packet but apparently ignored it.  When I logged on this account with the Brood War game, not more than 30 seconds later, the account was not locked, and Battle.Net did not report any failed login attempts.  There was apparently a problem with the hashing routine because when I rewrote PasswordHash (A on some .dll's) in VB, it connected fine.  So I guess Battle.Net will ignore your login packet if your hashing routine is horribly broken, even if your account is not locked.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: UserLoser. on May 29, 2004, 09:53 PM
Quote from: shadypalm88 on May 29, 2004, 02:23 PM
I'm just going to ressurect this briefly to add a note.  I recently added "hashed" connections to my bot, with a slightly modified version of BnetAuth.dll.  When it got to sending SID_LOGONRESPONSE2, this same thing was happenning, Battle.Net received the packet but apparently ignored it.  When I logged on this account with the Brood War game, not more than 30 seconds later, the account was not locked, and Battle.Net did not report any failed login attempts.  There was apparently a problem with the hashing routine because when I rewrote PasswordHash (A on some .dll's) in VB, it connected fine.  So I guess Battle.Net will ignore your login packet if your hashing routine is horribly broken, even if your account is not locked.

So before you were logging in without hashing any data?  That's kind of hard.  If your hash function is broken, it shouldn't matter because you'd get an invalid password response from Battle.net as long as it's still producing a 5 DWORD result.  Otherwise, most likely you would get banned for a bad 0x3A packet size.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: Adron on May 30, 2004, 05:27 AM
Quote from: UserLoser. on May 29, 2004, 09:53 PM
Otherwise, most likely you would get banned for a bad 0x3A packet size.

Unless you're sending the correct packet length, but your actual data is too short. Then it would seem to you that b.net is ignoring your packet.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: shadypalm88 on May 30, 2004, 01:03 PM
Quote from: Adron on May 30, 2004, 05:27 AM
Quote from: UserLoser. on May 29, 2004, 09:53 PM
Otherwise, most likely you would get banned for a bad 0x3A packet size.

Unless you're sending the correct packet length, but your actual data is too short. Then it would seem to you that b.net is ignoring your packet.
Only I don't believe that it was just that Battle.Net was waiting for more data.  It was a valid packet where the actual length matched the length in the header.

You see, I tested this on an account that didn't exist yet.  The first time the bot tried to log on, Battle.Net came back and said the account didn't exist.  My bot created it.  Then, when it went to actually log it on, using the same password hashing routine as it did when it tried to log on the first time, Battle.net "ignored" the packet.
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: Networks on May 30, 2004, 07:18 PM
Quote from: LoRd[nK] on May 11, 2004, 09:10 PM
If you enter an invalid password too many times, Battle.net will temporarily lock you out of the account without warning.

Does this lock everyone out for a amount of time or just the IP entering the invalid password?

*possible exploit?*
Title: Re:SID_LOGONRESPONSE2 ignored?
Post by: Skywing on May 30, 2004, 07:21 PM
Just the IP address.