Valhalla Legends Forums Archive | Battle.net Bot Development | BotNet 0x02 Parse

AuthorMessageTime
ChR0NiC
When I first logon I get a huge user list and I pretty much know the format of the user's but there seems to be 2 DWORD's before the userlist and after the result boolean and I was wondering if anybody could tell me what these represent, they aren't really discussed in the BotNet Latest by KP or on Bnet Docs so....

[code]
0000: 01 02 08 00 01 00 00 00 01 06 42 00 4B 04 00 40 ....B.K.@
[/code]

After that the userlist starts but it's not necessary to post that so...
August 21, 2004, 7:47 PM
UserLoser.
Fix your data handler. That's two packets:

[pre]
01 02 08 00 01 00 00 00
[/pre]

Note the bold, only 8 bytes in this packet.

[quote]
(send to client) id 0x02: update bot status
(DWORD) status : 0=FAIL, 1=OK. In version 4, this message is always success.
[/quote]

[pre]
01 06 42 00 4B 04 00 40
[/pre]

[quote]
(send to client) id 0x06: botnet bot information
Contents:
   (DWORD) bot id
   (4.1) (DWORD) database access flags
   (4.1) (DWORD) administrative capabilities
   (STRING:20) bot name
   (STRING:*) bot channel
   (DWORD) bot server
   (2) (STRING:16) unique account name
   (3) (STRING:*) database
[/quote]

Where's the other 66 bytes?
August 21, 2004, 8:00 PM
ChR0NiC
Oh I see, so they put all the users together, I don't know why I didn't think of that before, thanks Userloser.
August 21, 2004, 8:10 PM
Kp
[quote author=ChR0NiC link=board=17;threadid=8287;start=0#msg76592 date=1093119011]Oh I see, so they put all the users together, I don't know why I didn't think of that before, thanks Userloser.[/quote]

No. I queue each user individually, then the application-to-OS handler merges all outbound traffic (without regard to its type), and sends it to you. You may or may not receive the users as a lumped object, depending on the size of your receive window and the frequency with which you call recv() relative to the frequency with which you receive data. This is the exact same issue people encounter when receiving the userlist of a newly joined channel on battle.net -- botnet just has lots more entries than any given battle.net channel would.
August 21, 2004, 8:36 PM
ChR0NiC
[quote author=Kp link=board=17;threadid=8287;start=0#msg76599 date=1093120605]
[quote author=ChR0NiC link=board=17;threadid=8287;start=0#msg76592 date=1093119011]Oh I see, so they put all the users together, I don't know why I didn't think of that before, thanks Userloser.[/quote]

No. I queue each user individually, then the application-to-OS handler merges all outbound traffic (without regard to its type), and sends it to you. You may or may not receive the users as a lumped object, depending on the size of your receive window and the frequency with which you call recv() relative to the frequency with which you receive data. This is the exact same issue people encounter when receiving the userlist of a newly joined channel on battle.net -- botnet just has lots more entries than any given battle.net channel would.
[/quote]

Thanks alot !! ;D

Edit:
I noticed sometimes the packet runs out of room so it has to continue the rest of the particular packet on the next one, can anyone give me some tips as to how to handle this?
August 21, 2004, 8:55 PM

Search