I am trying to emulate Diablo II's email registration function.
Right after I send 0x51, I send the registation packet:
InsertNonNTString varEmail
SendPacket &H59
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
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 :)
Are you sure it isn't an NTString (note I know nothing about that packet)
Quote from: St0rm.iD on November 01, 2003, 09:45 AM
Are you sure it isn't an NTString (note I know nothing about that packet)
Yep, it is null terminated
Quote from: eRRoR on November 01, 2003, 04:53 AMI am doing it the exact same way UserLoser said it is done in another thread.
Usually when people just say STRING, it's null terminated, unless stated otherwise
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 from: eRRoR on November 01, 2003, 11:33 PM
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.
If you have already registered an e-mail address for that account, re-registering will probably result in a ban.
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)
The account isn't registered yet. I still get 0x59 sent when I login.
Still not working...
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?
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 :-/
got it working...but now how can i bypass it so I dont have to give them a email?
InsertNonNTString ""
SendPacket &H59
won't work.
Quote from: botmaster on November 12, 2003, 12:17 PM
got it working...but now how can i bypass it so I dont have to give them a email?
InsertNonNTString ""
SendPacket &H59
won't work.
IntertNonNTString "
[email protected]"?
all i did was make it gen random names then i just added @hotmail.com i guess that will do for now.
Quote from: botmaster on November 12, 2003, 12:40 PM
all i did was make it gen random names then i just added @hotmail.com i guess that will do for now.
Would be hilarious if one of those random accounts existed, and someone then got your password via password recovery.
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?
for some reason this is giving me a ipban anyone know why?
Quote from: botmaster on November 14, 2003, 01:06 PM
for some reason this is giving me a ipban anyone know why?
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.
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
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
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...)
Quote from: UserLoser. on November 14, 2003, 04:02 PM0x26 = 38, length of that is only 36
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)?
here is my code for making the account
Dim p As New PacketBuffer
p.InsertNonNTString AccountHash
p.InsertNTString account
p.SendPacket frmMain.bnet, &H3D
what I am doing wrong here?
Quote from: botmaster on November 15, 2003, 03:07 PM
here is my code for making the account
Dim p As New PacketBuffer
p.InsertNonNTString AccountHash
p.InsertNTString account
p.SendPacket frmMain.bnet, &H3D
what I am doing wrong here?
"
InsertNonNTString AccountHash" doesn't look right. Shouldn't this be a series of DWORDs?
this is the packet it is giving me now too
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
[Edit: OK, you're using code tags. Now you just need to use a decent packet capture utility that formats the lines.]
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
[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!
i dont know what they are and i tried null terminated
well then explain what you mean because maybe im doing wrong.