Valhalla Legends Forums Archive | Battle.net Bot Development | Help! SID_AUTH_ACCOUNTLOGONPROOF password incorrect.

AuthorMessageTime
Flexx_rus
Hi. I develop my battle.net bot on J2ME.
Because I cant use Local Hashing, i use BNLS.

BNLS -> Send bnls_logonChallenge (0x02)
[code]
17 00 02 43 4c 41 4e 5b 59 45 41 48 5d 42 4f 54         ...CLAN[YEAH]BOT
33 00 -- -- -- -- 00                                                     3.----.
Length: 23
[/code]

BNLS -> reseived (first 3 bytes was removed)
[code]
19 a0 fe 33 9e a4 ac e4 89 22 7f 4a 15 d4 29 99         ...3....."J..).
e7 7f 88 28 ed f4 a9 73 3c 13 82 b2 bd dd 4b 16         ..(...s<.....K.
Length: 32
[/code]

Bnet -> Send SID_AUTH_ACCOUNTLOGON
[code]
ff 53 33 00 19 a0 fe 33 9e a4 ac e4 89 22 7f 4a           .S3....3....."J
15 d4 29 99 e7 7f 88 28 ed f4 a9 73 3c 13 82 b2         ..)...(...s<...
bd dd 4b 16 43 4c 41 4e 5b 59 45 41 48 5d 42 4f         ..K.CLAN[YEAH]BO
54 33 00                                                                         T3.
Length: 51
[/code]

Reseived: SID_AUTH_ACCOUNTLOGON  (first 4 bytes was removed)
[code]
00 00 00 00 b7 2d 4b 5f f5 59 0e 3a 8a 10 bd 51         .....-K_.Y.:...Q
25 b1 1f b7 14 cf ff d6 06 93 b4 14 02 3d 44 01         %............=D.
3d 17 a2 4c d8 64 4a 60 c5 1b 50 76 42 2b 6c 81         =..L.dJ`..PvB+l.
f7 19 dd 48 6a ca 9a c1 51 39 22 c7 ab 7f f6 5a         ...Hj...Q9"...Z
02 c3 8a 5d                                             ...]
Length: 68
[/code]

SID_AUTH_ACCOUNTLOGON OK!

BNLS -> Send logonProof (0x02)
[code]
43 00 03 b7 2d 4b 5f f5 59 0e 3a 8a 10 bd 51 25         C...-K_.Y.:...Q%
b1 1f b7 14 cf ff d6 06 93 b4 14 02 3d 44 01 3d         ............=D.=
17 a2 4c d8 64 4a 60 c5 1b 50 76 42 2b 6c 81 f7         ..L.dJ`..PvB+l..
19 dd 48 6a ca 9a c1 51 39 22 c7 ab 7f f6 5a 02         ..Hj...Q9"...Z.
c3 8a 5d                                                                       ..]
Length: 67
[/code]

BNLS -> reseived (first 3 bytes was removed)
[code]
42 8d f2 bf 76 a0 76 4d c6 9c b3 fd 13 c1 a6 f0         B...v.vM........
81 f6 1d 32                                                                 ...2
Length: 20
[/code]

Bnet -> Send SID_AUTH_ACCOUNTLOGONPROOF
[code]
ff 54 18 00 42 8d f2 bf 76 a0 76 4d c6 9c b3 fd         .T..B...v.vM....
13 c1 a6 f0 81 f6 1d 32                                              .......2
Length: 24
[/code]

Reseived: SID_AUTH_ACCOUNTLOGONPROOF (first 4 bytes was removed)
[code]
02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00 00 00 00 00 00 00 00                                           ........
Length: 24
[/code]

02 code - incorrect password.

Why???
Password was correct.
What i do incorrectly???
April 3, 2006, 2:17 PM
Myndfyr
[quote author=Flexx_rus link=topic=14677.msg149678#msg149678 date=1144073846]
Hi. I develop my battle.net bot on J2ME.
Because I cant use Local Hashing, i use BNLS.
[/quote]
Well I'd like to clear up, you can *definitely* use local hashing with Java, at the very least password hashing, and you don't need very many additional classes.  As long as the J2ME API edition you have supports SHA-1 hashing and BigInteger math, it's easy to do.  See iago's overview on the topic with example Java code.

Beyond that, your work seems right, and this is picky but in the future please don't remove packet headers.  It's easier to make sure we're talking about the same thing when everything is consistent.  Oh, and please don't post your password in packet captures -- I'm editing yours out.
April 3, 2006, 4:14 PM
UserLoser
You're probably not sending BNLS_CHOOSENLSREVISION like you should, like 99% of other people who claim to have this problem
April 3, 2006, 9:32 PM
Myndfyr
[quote author=UserLoser link=topic=14677.msg149698#msg149698 date=1144099950]
You're probably not sending BNLS_CHOOSENLSREVISION like you should, like 99% of other people who claim to have this problem
[/quote]

According to the BNLS protocol spec, it's supposed to be defaulting to the correct one, isn't it?  We don't use NLS for old clients.
April 3, 2006, 9:35 PM
UserLoser
[quote author=MyndFyre[vL] link=topic=14677.msg149699#msg149699 date=1144100105]
[quote author=UserLoser link=topic=14677.msg149698#msg149698 date=1144099950]
You're probably not sending BNLS_CHOOSENLSREVISION like you should, like 99% of other people who claim to have this problem
[/quote]

According to the BNLS protocol spec, it's supposed to be defaulting to the correct one, isn't it?  We don't use NLS for old clients.
[/quote]

No, it doesn't default to the one needed for Warcraft III. 1 was for War3Beta, 2 is for Warcraft III, 0 is for everything else.  IIRC, BNLS was written when War3 was still in beta, so that may be why it's defaulted to 1, however I may be wrong about that (about it being written in beta).
April 3, 2006, 9:37 PM
Myndfyr
[quote author=UserLoser link=topic=14677.msg149700#msg149700 date=1144100224]
No, it doesn't default to the one needed for Warcraft III. 1 was for War3Beta, 2 is for Warcraft III, 0 is for everything else.  IIRC, BNLS was written when War3 was still in beta, so that may be why it's defaulted to 1, however I may be wrong about that (about it being written in beta).
[/quote]

That's another one of those Otherworldly Things that I like to refer to I guess.  It makes sense to default to whatever is being predominantly used, at least in my mind.  *shrug*
April 4, 2006, 12:01 AM
Spht
[quote author=UserLoser link=topic=14677.msg149700#msg149700 date=1144100224]IIRC, BNLS was written when War3 was still in beta[/quote]

Skywing says:
use BNLS
Skywing says:
BNLS is the best thing ever
Spht says:
what's BNLS?
Skywing says:
battle.net logon server
Skywing says:
super neat


2002-Apr-13... four years from yesterday!

Anyway, that was when beta was going on.
April 14, 2006, 2:39 PM

Search