• Welcome to Valhalla Legends Archive.
 

0x2A

Started by Nodens, April 06, 2004, 02:10 PM

Previous topic - Next topic

Nodens

Packet ID: 0x2A
Direction: Client -> Server (Sent)
Format:
Help (DWORD[5])    Hashed password
(STRING)       Username
Remarks: Creates an account.

I'm using visual basic and am having difficulties figuring out what method is needed to hash the password on 0x2A. Anyone able to help me or at least point me in a good direction?

Eric

#1
Assuming you're using the public BnetAuth dll, it would be the X(outbuf, password) function.

Nodens

#2
I'm using Hash.dll and CheckRevision.dll right now.
I'd like to change to bnetauth.dll, but I don't know the API declarations for it.

Any help on that?

ChR0NiC

Quote from: Nodens on April 06, 2004, 02:30 PM
I'm using Hash.dll and CheckRevision.dll right now.
I'd like to change to bnetauth.dll, but I don't know the API declarations for it.

Any help on that?

Quote from: LoRd[nK] on April 06, 2004, 02:25 PM
Assuming you're using the public BnetAuth dll, it would be the X(outbuf, password) function.

Read lord's post. The answer is in there

Eli_1

Quote from: ChR0NiC on April 06, 2004, 10:28 PM
Read lord's post. The answer is in there
He wants more than just one declaration, ChR0NiC.

Tazo


Public Declare Function z Lib "bnetauth.dll" Alias "Z" (ByVal FileExe As String, ByVal FileStormDll As String, ByVal FileBnetDll As String, ByVal HashText As String, ByRef version As Long, ByRef checksum As Long, ByVal exeinfo As String, ByVal MPQName As String) As Long
Public Declare Function c Lib "bnetauth.dll" Alias "C" (ByVal outbuf As String, ByVal serverhash As Long, ByVal prodid As Long, ByVal val1 As Long, ByVal val2 As Long, ByVal seed As Long) As Long
Public Declare Function A Lib "bnetauth.dll" (ByVal outbuf As String, ByVal ServerKey As Long, ByVal Password As String) As Long
Public Declare Function A2 Lib "bnetauth.dll" (ByVal outbuf As String, ByVal key As Long) As Long
Public Declare Function x Lib "bnetauth.dll" Alias "X" (ByVal outbuf As String, ByVal Password As String) As Long
Public Declare Function G Lib "bnetauth.dll" (ByVal outbuf As String) As Long

Nodens

#6
Thanks a lot Laurion. I really appriciate that. I've been in search of those for quite a while, however, I do have one little problem. I have no clue what each of them are for. I hope I'm not asking for too much, but single letters aren't the best names for functions. Perhaps there's a brief description of them on another site somewhere? If not, it'd be a good idea to post it anyhow for newbies like me.

ChR0NiC

I wonder which source Laurion ripped those API Declares out of, even though they are public.

Newby

Quote from: ChR0NiC on April 08, 2004, 12:21 PM
I wonder which source Laurion ripped those API Declares out of, even though they are public.
So if they're public ... why are you accusing him of ripping them?
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

ChR0NiC

#9
Quote from: Nodens on April 07, 2004, 07:23 PM
Thanks a lot Laurion. I really appriciate that. I've been in search of those for quite a while, however, I do have one little problem. I have no clue what each of them are for. I hope I'm not asking for too much, but single letters aren't the best names for functions. Perhaps there's a brief description of them on another site somewhere? If not, it'd be a good idea to post it anyhow for newbies like me.

Seeming as you said you used to use CheckRevision.dll

Quote from: LoRd[nK] on February 29, 2004, 11:32 PM
BnetAuth.dll and CheckRevision.dll have the same CheckRevision functions.

Or Get The Source For BnetAuth.dll Here

Edit: My bad....I guess the source was taken down from there.

Tazo

Quote from: ChR0NiC on April 08, 2004, 12:21 PM
I wonder which source Laurion ripped those API Declares out of, even though they are public.
:-\ my own?

Maddox

It would probably be more helpful to change the alias from Z to CheckRevision, etc.
asdf.

Eric

#12
Quote from: Maddox on April 14, 2004, 12:01 PM
It would probably be more helpful to change the alias from Z to CheckRevision, etc.
Also, you could change the function names from z() to Z(), c() to C(), etc. eliminating the need for an alias.

Nodens

Not been on in a while, but wanted to ask if I could have some better aliases like Maddox showed me. Z to CheckRevision was very helpful, but the other 5 are still not known to me.

Networks

#14
Quote from: laurion on April 10, 2004, 07:36 AM
Quote from: ChR0NiC on April 08, 2004, 12:21 PM
I wonder which source Laurion ripped those API Declares out of, even though they are public.
:-\ my own?

What difference does it make? He helped someone...

Far more than you did.