Valhalla Legends Forums Archive | Battle.net Bot Development | logon sequence

AuthorMessageTime
Laff
i've searched the forums and bnetdocs for the war3/tft logon sequence with no luck.  i want to use bnls as well.  can someone gimme the sequence?  thanks.
October 14, 2004, 9:24 PM
BaDDBLooD
Send 0x50
Send 0x25
Send BNLS 0x09
Send BNLS 0x01/0x0C
Send 0x51
Send BNLS 0x02
Send 0x53
Send BNLS 0x03
Send 0x54
Send 0x0A/0x0B

I didn't include the recieve, i figured that would be ok.

October 14, 2004, 10:03 PM
UserLoser.
You have bad luck then.  Following the BNLS spec will help guide your way through it, along with using a simple packet logger to log Warcraft III (if you have it, that is).  The formats for some of the messages are available on the BNLS spec, but to get you started, you first send SID_AUTH_INFO (packet id 50h), after receiving that, then you can preceede to send SID_AUTH_CHECK (packet id 51h).  Depending on the results of SID_AUTH_CHECK from the server, that'll determine if you can send any more messages; if so, you'd send SID_AUTH_ACCOUNTLOGON (packet id 53h, look on BNLS spec on how to do this, [server must always tell you to use logon version 2 since actual Blizzard Warcraft III client disconnects when logon version != 2, so that's logical to assume.  Otherwise if this isn't 2, you'd use SID_LOGONRESPONSE (packet id 29h) or SID_LOGONRESPONSE2 (packet id 3Ah)]), then the response off this message yet again determines what your next message to the server must be (account create, logon proof required).  If logon proof required, you must send SID_AUTH_ACCOUNTLOGONPROOF (packet id 54h, yet again look on BNLS spec).  If account doesn't exist, your next message could be SID_AUTH_ACCOUNTCREATE (packet id 52h, BNLS spec on how to use) . Response of SID_AUTH_ACCOUNTLOOGNPROOF from server will tell you if you have successfully passed the logon challenege, password invalid, server failed to prove it knew your password, or notify you of an error tagged onto your account.  On success, you can then send SID_ENTERCHAT (packet id 0Ah, BnetDocs).  On invalid password, obviously you supplied a bad password.  To prove the server really knows your password, you can use BNLS for this (Don't know BNLS packet id offhand, so look it up).  If it failed to know your password, just attempt to relogon.
October 14, 2004, 10:07 PM
bethra
When I look back on how noob I was and stuff, it really wasn't as hard as I thought.

Yes, BNLSprotocol.txt or w/e and BnetDocs are the way to go.  Once you find your starting point, it should guide you the rest of the way. sequentially.
October 14, 2004, 10:57 PM
KkBlazekK
BNLS: Send 0x0E        Optional
BNLS: Receive 0x0E    Optional
BNLS: Send 0x0F        Optional
BNLS: Receive 0x0F    Optional
BNLS: Send 0x11
BNLS: Receive 0x11
BNET: Send 0x50
BNET: Recieve 0x25
BNET: Recieve 0x50
BNET: Send 0x25        Optional
BNLS: Send 0x09
BNLS: Receive 0x09
BNLS: Send 0x01
BNLS: Receive 0x01
BNET: Send 0x51
BNET: Recieve 0x51
BNLS: Send 0x02
BNLS: Receive 0x02
BNET: Send 0x53
BNET: Recieve 0x53
BNLS: Send 0x03
BNLS: Recieve 0x03
BNET: Send 0x54
BNET: Recieve 0x54
BNET: Send 0x0A
BNET: Recieve 0x0A
October 15, 2004, 12:25 AM
Laff
correct me if i'm wrong, but don't you send bnet a 0x01 first?
October 15, 2004, 12:56 AM
UserLoser.
[quote author=Laff link=topic=9156.msg84470#msg84470 date=1097801782]
correct me if i'm wrong, but don't you send bnet a 0x01 first?
[/quote]

If you're emulating a game, then yes
October 15, 2004, 1:47 AM
Laff
so 2 people have given me 2 completely different logon sequences...what should i do...
October 15, 2004, 6:31 AM
Arta
Look for yourself: www.ethereal.com.
October 15, 2004, 8:51 AM
Laff
i've got a packet sniffer that i made, but i don't have a bot.  got a link to a good one?  thanks.
October 15, 2004, 5:20 PM
TangoFour
I think they meant packetlog the actual client

In any case, I suppose Stealthbot is a good bot

http://www.stealthbot.net
October 15, 2004, 5:24 PM
UserLoser.
[quote author=Laff link=topic=9156.msg84500#msg84500 date=1097821880]
so 2 people have given me 2 completely different logon sequences...what should i do...
[/quote]

Yes, but their's doesn't support things like: If account requires upgrade, upgrade proof, doesn't exist, error, ect
October 15, 2004, 5:29 PM
Laff
[quote author=TangoFour link=topic=9156.msg84568#msg84568 date=1097861073]
I think they meant packetlog the actual client
[/quote]

packetlogging warcraftiii won't help me at all with bnls ;)
October 15, 2004, 6:56 PM
TangoFour
I guess I misunderstood

But seriously - I managed to get my bot working fine (and by that I mean connected as WarCraft 3 and able to handle chat packets) by just using the BNLS specification
October 15, 2004, 7:45 PM
BaDDBLooD
[quote author=Laff link=topic=9156.msg84500#msg84500 date=1097821880]
so 2 people have given me 2 completely different logon sequences...what should i do...
[/quote]

Dude.. i gave you the same thing he did, i just made you do a little work, he didn't.
October 15, 2004, 8:19 PM
bethra
[quote author=Laff link=topic=9156.msg84576#msg84576 date=1097866612]
[quote author=TangoFour link=topic=9156.msg84568#msg84568 date=1097861073]
I think they meant packetlog the actual client
[/quote]

packetlogging warcraftiii won't help me at all with bnls ;)
[/quote]

If you want to packetlog BNLS and BNCS and actually seee the packets inorder being sent and all that stuff.  Get a bot, for example StealthBot and packetlog the bot connecting to Bnet via Warcraft III
October 15, 2004, 11:39 PM
Arta
[quote author=Laff link=topic=9156.msg84566#msg84566 date=1097860838]
i've got a packet sniffer that i made, but i don't have a bot.  got a link to a good one?  thanks.
[/quote]

[quote author=Arta[vL] link=topic=9156.msg84510#msg84510 date=1097830272]
Look for yourself: www.ethereal.com.
[/quote]

*sigh*
October 16, 2004, 12:59 AM
Minux
[quote author=Arta[vL] link=topic=9156.msg84612#msg84612 date=1097888382]
[quote author=Laff link=topic=9156.msg84566#msg84566 date=1097860838]
i've got a packet sniffer that i made, but i don't have a bot.  got a link to a good one?  thanks.
[/quote]

[quote author=Arta[vL] link=topic=9156.msg84510#msg84510 date=1097830272]
Look for yourself: www.ethereal.com.
[/quote]

*sigh*
[/quote]

Also I posted up WPE Pro here, you need to have Windows XP to use it. It's my favorite packet sniffer and is probably the most user friendly.
October 16, 2004, 2:30 AM
bethra
[quote author=Arta[vL] link=topic=9156.msg84612#msg84612 date=1097888382]
[quote author=Laff link=topic=9156.msg84566#msg84566 date=1097860838]
i've got a packet sniffer that i made, but i don't have a bot.  got a link to a good one?  thanks.
[/quote]

[quote author=Arta[vL] link=topic=9156.msg84510#msg84510 date=1097830272]
Look for yourself: www.ethereal.com.
[/quote]

*sigh*
[/quote]

hmmm kind of off topic but

I have ethereal but when I recieve packets I get this header like thing that is really long in front of all the packets.  So like instead of the packet starting with "0xFF" when shown in ethereal, it has all this other crap in front of the "0xFF" and so I have to look through past it and find where it starts.  a huge hassle.  wtf is it?

is there a way to get rid of it?
October 16, 2004, 4:07 AM
UserLoser.
[quote author=bethra link=topic=9156.msg84633#msg84633 date=1097899660]
[quote author=Arta[vL] link=topic=9156.msg84612#msg84612 date=1097888382]
[quote author=Laff link=topic=9156.msg84566#msg84566 date=1097860838]
i've got a packet sniffer that i made, but i don't have a bot.  got a link to a good one?  thanks.
[/quote]

[quote author=Arta[vL] link=topic=9156.msg84510#msg84510 date=1097830272]
Look for yourself: www.ethereal.com.
[/quote]

*sigh*
[/quote]

hmmm kind of off topic but

I have ethereal but when I recieve packets I get this header like thing that is really long in front of all the packets.  So like instead of the packet starting with "0xFF" when shown in ethereal, it has all this other crap in front of the "0xFF" and so I have to look through past it and find where it starts.  a huge hassle.  wtf is it?

is there a way to get rid of it?
[/quote]

That would be the IP/TCP header
October 16, 2004, 4:24 AM
OnlyMeat
[quote author=bethra link=topic=9156.msg84633#msg84633 date=1097899660]
[quote author=Arta[vL] link=topic=9156.msg84612#msg84612 date=1097888382]
[quote author=Laff link=topic=9156.msg84566#msg84566 date=1097860838]
i've got a packet sniffer that i made, but i don't have a bot.  got a link to a good one?  thanks.
[/quote]

[quote author=Arta[vL] link=topic=9156.msg84510#msg84510 date=1097830272]
Look for yourself: www.ethereal.com.
[/quote]

*sigh*
[/quote]

hmmm kind of off topic but

I have ethereal but when I recieve packets I get this header like thing that is really long in front of all the packets.  So like instead of the packet starting with "0xFF" when shown in ethereal, it has all this other crap in front of the "0xFF" and so I have to look through past it and find where it starts.  a huge hassle.  wtf is it?

is there a way to get rid of it?
[/quote]

Another big advantage of writing your own packet capture software is you can remove the tcp/ip header junk and on mine i added optional decompression ;)
October 17, 2004, 1:00 AM
Laff
same here, minus the decompression.  now that i have connection to bnet established, i print out only those packets i haven't added in yet and throw out the ones i don't need to see anymore.
October 17, 2004, 3:46 PM

Search