Valhalla Legends Forums Archive | Battle.net Bot Development | WAR3 CDKey Owner Packet

AuthorMessageTime
WiLD
Just recently got back into bnet but my question is...

...what packet am i looking at to register the cdkey? ("This cdkey is already inuse by ......")

I'm using BNLS.



I also forgot the link to Bnet Docs, anyone want to remind me? :)
Does Bnet Docs include documentation for BNLS or is there another place for that? Im just wondering on a certain packet.

Thanks ^^
June 7, 2006, 3:30 PM
bethra
It's sent in SID_AUTH_CHECK (0x51).
June 7, 2006, 3:53 PM
WiLD
Oh fair enough. For some reason i thought it was different with WAR3.

Thanks~
June 7, 2006, 4:03 PM
WiLD
Im getting 'invaild version' back on 0x51 (WAR3).

Im sending;
[code]
Private Sub packx51()
    InsertDWORD GTC
    InsertDWORD Version
    InsertDWORD Checksum
    If sXpan Then
        InsertDWORD &H2
    Else
        InsertDWORD &H1
    End If
    InsertDWORD &H0
    InsertNonNTString CdkeyHash
    If sXpan Then
        InsertNonNTString Cdkey2Hash
    End If
    InsertNTString exeinfo
    InsertNTString strUser
    sendPacket &H51
[/code]
June 7, 2006, 4:36 PM
HdxBmx27
Packet log please? We sorta need to know what info your sending.
But your format seems correct.
~-~(HDX)~-~
June 7, 2006, 4:53 PM
Ringo
[quote author=WiLD link=topic=15147.msg154023#msg154023 date=1149694237]
Just recently got back into bnet but my question is...
[/quote]
[quote author=WiLD link=topic=15147.msg154028#msg154028 date=1149698203]
Im getting 'invaild version' back on 0x51 (WAR3).
[/quote]

Game binarys maybe out of date? (im pritty sure w3 patched a few month or so ago)
June 7, 2006, 5:17 PM
WiLD
[quote author=HdxBmx27 link=topic=15147.msg154029#msg154029 date=1149699190]
Packet log please? We sorta need to know what info your sending.
But your format seems correct.
~-~(HDX)~-~
[/quote]

Log file
([color=Yellow]/me has no idea   O.o[/color])
June 7, 2006, 6:18 PM
l2k-Shadow
Interesting, your 0x51 looks OK, only thing I can see now is the fact that BNLS is sending you outdated data. Maybe try using a local hashing library.. it's way more reliable, you don't have to rely on BNLS to update every time there is a new version of the game you are connecting to... BNCSUtil is an excellent hashing library.
June 7, 2006, 7:36 PM
HdxBmx27
No...
Hes sending the wrong verbyte
[quote]                                               ff 50 3a 00 00 00 00 00 36            P:.....6
0040   38 58 49 33 52 41 57 0f 00 00 00 00 00 00 00 00  8XI3RAW.........
0050   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55  ...............U
0060   53 41 00 55 6e 69 74 65 64 20 53 74 61 74 65 73  SA.United States
0070   00 ff 25 08 00 00 00 00 00                       ..%......
[/quote]
Your not handeling 0x10 BNLS_REQUESTVERSIONBYTE properly
the current VB is 0x14 witch BNLS is sending you.

BTW, its annoying to have other connections in the log so everyone, for jsut this connection in the log use the following filter:
[code](tcp.port == 1622 and tcp.port == 9367) and (tcp.port == 1623 and tcp.port == 6112) and tcp.len > 0 and tcp.len != 34[/code]
~-~(HDX)~-~
June 7, 2006, 10:06 PM
l2k-Shadow
[quote author=HdxBmx27 link=topic=15147.msg154058#msg154058 date=1149718012]
No...
Hes sending the wrong verbyte
[quote]                                              ff 50 3a 00 00 00 00 00 36            P:.....6
0040  38 58 49 33 52 41 57 0f 00 00 00 00 00 00 00 00  8XI3RAW.........
0050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55  ...............U
0060  53 41 00 55 6e 69 74 65 64 20 53 74 61 74 65 73  SA.United States
0070  00 ff 25 08 00 00 00 00 00                      ..%......
[/quote]
Your not handeling 0x10 BNLS_REQUESTVERSIONBYTE properly
the current VB is 0x14 witch BNLS is sending you.

BTW, its annoying to have other connections in the log so everyone, for jsut this connection in the log use the following filter:
[code](tcp.port == 1622 and tcp.port == 9367) and (tcp.port == 1623 and tcp.port == 6112) and tcp.len > 0 and tcp.len != 34[/code]
~-~(HDX)~-~
[/quote]

ah lol i didn't check that packet =/
June 7, 2006, 11:42 PM
WiLD
[quote author=HdxBmx27 link=topic=15147.msg154058#msg154058 date=1149718012]
No...
Hes sending the wrong verbyte
[quote]                                               ff 50 3a 00 00 00 00 00 36            P:.....6
0040   38 58 49 33 52 41 57 0f 00 00 00 00 00 00 00 00  8XI3RAW.........
0050   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55  ...............U
0060   53 41 00 55 6e 69 74 65 64 20 53 74 61 74 65 73  SA.United States
0070   00 ff 25 08 00 00 00 00 00                       ..%......
[/quote]
Your not handeling 0x10 BNLS_REQUESTVERSIONBYTE properly
the current VB is 0x14 witch BNLS is sending you.

BTW, its annoying to have other connections in the log so everyone, for jsut this connection in the log use the following filter:
[code](tcp.port == 1622 and tcp.port == 9367) and (tcp.port == 1623 and tcp.port == 6112) and tcp.len > 0 and tcp.len != 34[/code]
~-~(HDX)~-~
[/quote]


Ahh i found it now! I hardcoded an old verbyte eariler but totally forgot about it.
I was looking for an effective filter, thats for that one.

Well all is working fine so i have moved onto 0x52 and after looking at Bnet Docs im stuck on;
[code]
(BYTE[32]) Salt (s)
(BYTE[32]) Verifier (v)
(STRING) Username
[/code]
So what are the two bytes exactly?
Also dont you have to include the password?
June 8, 2006, 1:32 AM
HdxBmx27
the s/v are the password
these should be of some help:
http://www.javaop.com/~iago/SRP.html

BNLS_CHOOSENLSREVISION
BNLS_LOGONCHALANGE
BNLS_LOGONPROOF
BNLS_CREATEACCOUNT

Oh and the ever wonderfull BNLS Protocol Specifications

Lear to readup boyo!
Have fun.
Should be more then enuf to get you going ont eh next few packets.
~-~(HDX)~-~
June 8, 2006, 2:20 AM

Search