• Welcome to Valhalla Legends Archive.
 

WAR3 CDKey Owner Packet

Started by WiLD, June 07, 2006, 10:30 AM

Previous topic - Next topic

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 ^^
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest


WiLD

Oh fair enough. For some reason i thought it was different with WAR3.

Thanks~
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest

WiLD

Im getting 'invaild version' back on 0x51 (WAR3).

Im sending;

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
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest

Hdx

Packet log please? We sorta need to know what info your sending.
But your format seems correct.
~-~(HDX)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Ringo

Quote from: WiLD on June 07, 2006, 10:30 AM
Just recently got back into bnet but my question is...
Quote from: WiLD on June 07, 2006, 11:36 AM
Im getting 'invaild version' back on 0x51 (WAR3).

Game binarys maybe out of date? (im pritty sure w3 patched a few month or so ago)

WiLD

Quote from: HdxBmx27 on June 07, 2006, 11:53 AM
Packet log please? We sorta need to know what info your sending.
But your format seems correct.
~-~(HDX)~-~

Log file
(/me has no idea   O.o)
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest

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.
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

Hdx

#8
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                       ..%......
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:
(tcp.port == 1622 and tcp.port == 9367) and (tcp.port == 1623 and tcp.port == 6112) and tcp.len > 0 and tcp.len != 34
~-~(HDX)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

l2k-Shadow

Quote from: HdxBmx27 on June 07, 2006, 05:06 PM
No...
Hes sending the wrong verbyte
Quoteff 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                       ..%......
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:
(tcp.port == 1622 and tcp.port == 9367) and (tcp.port == 1623 and tcp.port == 6112) and tcp.len > 0 and tcp.len != 34
~-~(HDX)~-~

ah lol i didn't check that packet =/
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

WiLD

Quote from: HdxBmx27 on June 07, 2006, 05:06 PM
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                       ..%......
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:
(tcp.port == 1622 and tcp.port == 9367) and (tcp.port == 1623 and tcp.port == 6112) and tcp.len > 0 and tcp.len != 34
~-~(HDX)~-~


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;

(BYTE[32]) Salt (s)
(BYTE[32]) Verifier (v)
(STRING) Username

So what are the two bytes exactly?
Also dont you have to include the password?
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest

Hdx

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)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status