Valhalla Legends Forums Archive | Battle.net Bot Development References | Packet 0x59 Information

AuthorMessageTime
eRRoR
I am trying to emulate Diablo II's email registration function.
Right after I send 0x51, I send the registation packet:

[code]
InsertNonNTString varEmail
SendPacket &H59
[/code]

However, after 0x59 is sent, I am disconnected and IP banned from Battle.net.
I've tried packetlogging and it looks to me like I am doing everything right. I am doing it the exact same way UserLoser said it is done in another thread.
Has anyone worked with 0x59 and knows how to send it?

Any help is appriciated.

Edit: Spelling error
November 1, 2003, 10:53 AM
iago
I wish I could help more, but my advice is that, if you have the official client, packetlog that and make sure it's the same as yours.

Also, make sure you're logged in with Diablo 2 or LoD .. but that should be too obvious :)
November 1, 2003, 1:38 PM
St0rm.iD
Are you sure it isn't an NTString (note I know nothing about that packet)
November 1, 2003, 3:45 PM
UserLoser
[quote author=St0rm.iD link=board=17;threadid=3359;start=0#msg26798 date=1067701559]
Are you sure it isn't an NTString (note I know nothing about that packet)
[/quote]

Yep, it is null terminated

[quote author=eRRoR link=board=17;threadid=3359;start=0#msg26767 date=1067684002]I am doing it the exact same way UserLoser said it is done in another thread.
[/quote]

Usually when people just say STRING, it's null terminated, unless stated otherwise
November 1, 2003, 5:12 PM
eRRoR
I've tried it with an NTString aswell, with the same IP ban.

Sadly, I don't have the D2 game anymore. Could someone packet log it and see if I am doing it right?

(NTSTRING) emailaddress
(PACKET) 0x59

Isn't that it? I send that after 0x51 right?

I am still getting IP banned.
November 2, 2003, 5:33 AM
Skywing
[quote author=eRRoR link=board=17;threadid=3359;start=0#msg26965 date=1067751235]
I've tried it with an NTString aswell, with the same IP ban.

Sadly, I don't have the D2 game anymore. Could someone packet log it and see if I am doing it right?

(NTSTRING) emailaddress
(PACKET) 0x59

Isn't that it? I send that after 0x51 right?

I am still getting IP banned.
[/quote]
If you have already registered an e-mail address for that account, re-registering will probably result in a ban.
November 2, 2003, 5:37 AM
Soul Taker
Yes, he should only be sending it in response to a packet sent by the server if you have not registered yet (logically I'd say it's 0x59, but I don't recall so don't blame me if it's wrong =P)
November 2, 2003, 5:46 AM
eRRoR
The account isn't registered yet. I still get 0x59 sent when I login.

Still not working...
November 2, 2003, 1:41 PM
Dyndrilliac
Do you have to be logging in with D2 for 0x59 to work? Or can you send it with any client, its just naturally sent with D2?
November 2, 2003, 7:50 PM
botmaster
i got it just about working i just did on recv data looked for packet &H59 and then it sends that but still gets my ipbanned :-/
November 12, 2003, 4:53 PM
botmaster
got it working...but now how can i bypass it so I dont have to give them a email?

[code]
InsertNonNTString ""
SendPacket &H59
[/code]
won't work.
November 12, 2003, 6:17 PM
iago
[quote author=botmaster link=board=17;threadid=3359;start=0#msg28834 date=1068661075]
got it working...but now how can i bypass it so I dont have to give them a email?

[code]
InsertNonNTString ""
SendPacket &H59
[/code]
won't work.
[/quote]

IntertNonNTString "Killme@home.com"?
November 12, 2003, 6:39 PM
botmaster
all i did was make it gen random names then i just added @hotmail.com i guess that will do for now.
November 12, 2003, 6:40 PM
iago
Just use support@blizzard.com :)
November 12, 2003, 7:36 PM
Soul Taker
[quote author=botmaster link=board=17;threadid=3359;start=0#msg28838 date=1068662435]
all i did was make it gen random names then i just added @hotmail.com i guess that will do for now.
[/quote]
Would be hilarious if one of those random accounts existed, and someone then got your password via password recovery.
November 12, 2003, 8:33 PM
warz
Wouldn't you want to register it with a working email though? I mean, if you ever get your name stolen, that can retrieve it for you, can't it?
November 12, 2003, 9:13 PM
botmaster
for some reason this is giving me a ipban anyone know why?
November 14, 2003, 7:06 PM
Kp
[quote author=botmaster link=board=17;threadid=3359;start=15#msg29146 date=1068836762]
for some reason this is giving me a ipban anyone know why?[/quote]As usual, this is a bad question to ask. The better question would be, "Why does the following code cause me to get IPbanned? <user pastes code>" or even better "What is wrong with the following packet that causes me to get IP banned? <hex dump of offending packet>" UserLoser already told you what's wrong with the previous code you pasted, so I can only assume you've fixed that and something else is now wrong. If you haven't fixed it, you shouldn't be asking for someone else to help you since UserLoser already did. If you have fixed it, we need to know what your new code looks like.
November 14, 2003, 8:17 PM
botmaster
it's the same code but every time it makes the account which does work and regs it by email...it kicks me off bnet and gives me a ipban.

hex output

[code]ff 3d 26 00 b6 a5 ba d9 ad 62 fe 49 5c 38 9e 73
7e a2 31 65 41 5f 9c 48 65 78 70 69 6f 6d 65 70
75 6c 69 00[/code]

Edit: learn to use code tags for preformatted data, and paste the right packet. You provided the creation packet, yet all your questions seem to be about 0x59. +Karma to anyone who spots the flaw in this packet just by looking at it (it's rather glaring...)
November 14, 2003, 8:41 PM
Kp
[quote author=UserLoser. link=board=17;threadid=3359;start=15#msg29171 date=1068847321]0x26 = 38, length of that is only 36[/quote]Yup. +1

botmaster: how'd you manage to generate such a fundamentally flawed packet? Is your code building the packet headers explicitly (as opposed to having a packet construction class)?
November 14, 2003, 10:15 PM
botmaster
here is my code for making the account

[code]
Dim p As New PacketBuffer
p.InsertNonNTString AccountHash
p.InsertNTString account
p.SendPacket frmMain.bnet, &H3D
[/code]

what I am doing wrong here?
November 15, 2003, 9:07 PM
Spht
[quote author=botmaster link=board=17;threadid=3359;start=15#msg29317 date=1068930433]
here is my code for making the account

[code]
Dim p As New PacketBuffer
p.InsertNonNTString AccountHash
p.InsertNTString account
p.SendPacket frmMain.bnet, &H3D
[/code]

what I am doing wrong here?
[/quote]

"InsertNonNTString AccountHash" doesn't look right. Shouldn't this be a series of DWORDs?
November 15, 2003, 9:14 PM
botmaster
this is the packet it is giving me now too

[code]
FF 3D 25 00 B6 A5 BA D9 AD 62 FE 49 5C 4C 38 9E
73 7E A2 31 65 41 5F 9C 48 65 78 62 79 73 61 7A
75 65 78 79 00[/code]

[Edit: OK, you're using code tags. Now you just need to use a decent packet capture utility that formats the lines.]
November 15, 2003, 9:19 PM
botmaster
i still cant seem to get this working...right after i recv packet 59 and send it i get kicked off bnet and get a nice ipban

[code]
[22:16:53] Connecting to Battle.net server useast.battle.net
[22:16:53] Connected to Battle.net!
[22:16:53] Send: FF 50 3A 00 00 00 00 00 36 38 58 49 50 58 32 44 0A 00 00 00 00 00 00 00 00 00 00 00 80 04 00 00 33 10 00 00 33 10 00 00 55 53 41 00 55 6E 69 74 65 64 20 53 74 61 74 65 73 00
[22:16:53] Recv: FF 25 08 00 25 4E D2 E7
[22:16:53] Send: FF 25 08 00 25 4E D2 E7
[22:16:53] Recv: FF 50 62 00 00 00 00 00 A0 6F 98 3D 35 5F 11 00 00 3C 5B A5 63 E8 C0 01 49 58 38 36 76 65 72 37 2E 6D 70 71 00 41 3D 35 31 30 30 35 38 37 31 20 42 3D 33 37 34 35 37 31 38 33 36 20 43 3D 32 38 37 30 31 31 30 36 31 20 34 20 41 3D 41 5E 53 20 42 3D 42 5E 43 20 43 3D 43 2B 41 20 41 3D 41 2B 42 00
[22:16:53] Hashes passed checkversion.
[22:16:53] Send: FF 51 8A 00 94 FA 12 20 00 0A 00 01 3E 94 40 88 02 00 00 00 00 00 00 00 10 00 00 00 06 00 00 00 AC 1B 03 00 00 00 00 00 A4 26 6E 2B ED BC FD 13 5B 33 61 49 2F 99 A8 44 00 DB 36 F6 10 00 00 00 0A 00 00 00 52 03 4E 00 00 00 00 00 2F B9 4A 6F E9 36 09 24 B4 52 72 E7 3B 46 7F 44 F2 AC 0A A4 47 61 6D 65 2E 65 78 65 20 30 37 2F 30 33 2F 30 33 20 30 32 3A 32 33 3A 31 39 20 31 31 39 38 38 35 37 00 44 61 72 77 69 6E 00
[22:16:53] Recv: FF 51 09 00 00 00 00 00 00
[22:16:53] Versions and cdkey accepted.
[22:16:54] New Account: Hexcaveucezy
[22:16:54] Send: FF 3D 25 00 B6 A5 BA D9 AD 62 FE 49 5C 4C 38 9E 73 7E A2 31 65 41 5F 9C 48 65 78 63 61 76 65 75 63 65 7A 79 00
[22:16:54] Recv: FF 3D 0B 00 00 00 00 00 00 E5 52
[22:16:54] Account created!
[22:16:55] Length of password hash is 28
[22:16:55] Send: FF 3A 2D 00 9D 03 13 20 A0 6F 98 3D D3 97 3F FB 3A 1F C2 13 AE F7 05 80 2F AB 74 18 54 06 1F DB 48 65 78 63 61 76 65 75 63 65 7A 79 00
[22:16:55] Send: FF 14 08 00 62 6E 65 74
[22:16:55] Send: FF 2D 04 00
[22:16:55] Recv: FF 2D 16 00 00 08 16 BF E9 50 C3 01 69 63 6F 6E 73 2E 62 6E 69 00
[22:16:55] Recv: FF 59 04 00
[22:16:56] Send: FF 59 1A 00 48 65 78 63 61 76 65 75 63 65 7A 79 40 79 61 68 6F 6F 2E 63 6F 6D
[22:16:56] Connection lost!
[/code]
November 18, 2003, 4:18 AM
botmaster
i dont know what they are and i tried null terminated
November 21, 2003, 1:20 AM
botmaster
well then explain what you mean because maybe im doing wrong.
November 21, 2003, 1:48 AM

Search