• Welcome to Valhalla Legends Archive.
 

Realms

Started by Soul Taker, October 26, 2002, 06:03 AM

Previous topic - Next topic

Soul Taker

Can someone tell me how to correctly send packet 0x3e to  get B.net to send me realm IP/port to connect to?
I'm trying to use BNLS' HashData with the Serverhash from 0x50 but that seems to not work.
Might just be me doing something wrong though =/

Guest

#1
Might be doing something wrong? If it's not working then you're doing something wrong. :)

Soul Taker

#2
I've tried a bunch of stuff.

When I recieve 0x50, I store Mid(strData, 9, 4) as ServerHash.  Everything using that value has always worked.

Then after recieving 0x34, I send ServerHash to BNLS...
B.HashData ServerHash

Public Function HashData(strData As String)
p.InsertDWORD Len(strData)
p.InsertDWORD &H0
p.InsertNonNTString strData
p.SendBNLSPacket frmMain.sckBNLS, &HB
End Function

Public Function SendBNLSPacket(SOCKET As Winsock, PacketID As Byte)
If frmMain.sckBNLS.State = sckConnected Then
    SOCKET.SendData MakeWORD(Len(Buffer) + 3)
    SOCKET.SendData Chr(PacketID)
    SOCKET.SendData Buffer
    Clear
    DoEvents
End If
End Function
I keep trying different variations but can't figure out what I'm doing wrong =[

Skywing

BNLS's HashData implementation is compatible with the realm logon hash; you just need to use the right inputs.  Remember that just like the password hash, the realm hash needs to be double-hashed.

Joe

#4
What function in bnetauth.dll is equivilant to BNLS's hash data?

Zakath

#5
Figure it out yourself? ::)

As far as I know, only HukChat uses bnetauth.dll. Why are you using it?
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.