Author Topic: HostBot Dev Thread  (Read 7089 times)

Offline USA~Archer

  • Grunt
  • ***
  • Posts: 158
  • Don't shoot the sheep!
    • View Profile
HostBot Dev Thread
« on: June 04, 2015, 12:11:25 PM »
Hi War2 Modders,

I was reading this interview with a BNETD developer and he was talking about the packet structure for server/client communication

 http://www.onlamp.com/pub/a/onlamp/2002/05/09/bnetd.html?page=2

These are the types of packets sent (I think this is TCP only)

bn_byte = single byte
bn_short = two bytes
bn_int = four bytes
bn_long = eight bytes


When I create a game and watch with WireShark, I see a few packets slide by, looks like some TCP length of 4 or 8 like bn_int and bn_long above

and then theres 1 UDP packet, and I dont understand what its data contains

Curious to learn more about how you (tupac /others) reverse engineer these things and how/if I can help


I think modifying an old winbot is a great idea to start with, I guess theres been some problem with WarWinner not having UDP support tho.

It was my understanding that winbots never even created real games, they just sent "win" information to the server every 2minutes saying that an imaginary game was played, but I guess real games are actually created so in theory we should be able to modify that to be a hostbot

I remember there was another winbot back in the day called MaddoX Winbot, but I havent been able to find a copy online




« Last Edit: June 04, 2015, 12:17:12 PM by USA~Archer »

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
Re: HostBot Dev Thread
« Reply #1 on: June 04, 2015, 12:52:57 PM »

Hi War2 Modders,

I was reading this interview with a BNETD developer and he was talking about the packet structure for server/client communication

 http://www.onlamp.com/pub/a/onlamp/2002/05/09/bnetd.html?page=2

These are the types of packets sent (I think this is TCP only)

bn_byte = single byte
bn_short = two bytes
bn_int = four bytes
bn_long = eight bytes


When I create a game and watch with WireShark, I see a few packets slide by, looks like some TCP length of 4 or 8 like bn_int and bn_long above

and then theres 1 UDP packet, and I dont understand what its data contains

Curious to learn more about how you (tupac /others) reverse engineer these things and how/if I can help


I think modifying an old winbot is a great idea to start with, I guess theres been some problem with WarWinner not having UDP support tho.

It was my understanding that winbots never even created real games, they just sent "win" information to the server every 2minutes saying that an imaginary game was played, but I guess real games are actually created so in theory we should be able to modify that to be a hostbot

I remember there was another winbot back in the day called MaddoX Winbot, but I havent been able to find a copy online


Link Pm'd


Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline USA~Archer

  • Grunt
  • ***
  • Posts: 158
  • Don't shoot the sheep!
    • View Profile
HostBot Dev Thread
« Reply #2 on: June 04, 2015, 01:00:24 PM »
Thats warwinner, im looking for maddox winbot


Sent from my iPhone using Tapatalk

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: HostBot Dev Thread
« Reply #3 on: June 04, 2015, 01:10:27 PM »
This will help you alot bnanalyzer from reality ripple. Automatically captures packets from 6112 port and then actually filter then so you know what they are. If you want my project you can have it. Download SCGP source and edit to war2 and not starcraft.


Actually the warwinner bot does create real games because the TCP packets are sent, but when you don't have the UDP support. You will get game is full, or can't join, that's why we need UDP to send and receive maps and player info. Go with SCGP and just edit..

It's going to be a pain in the ass unless your some leet god. There is little to none documentation for war2....
« Last Edit: June 04, 2015, 01:19:15 PM by tupac »

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: HostBot Dev Thread
« Reply #4 on: June 04, 2015, 01:26:01 PM »
Here is the info for the storm.dll aka UDP
https://bnetdocs.org/?op=doc&did=34

More info about storm with packets
https://bnetdocs.org/?op=doc&did=34

SCGP - download is elite grounds check the source......
http://www.elitegrounds.net/scSourcecodes/SCGP.zip

Offline USA~Archer

  • Grunt
  • ***
  • Posts: 158
  • Don't shoot the sheep!
    • View Profile
Re: HostBot Dev Thread
« Reply #5 on: June 04, 2015, 06:22:16 PM »
cool thanks tupac

heres the read me file for the "Madd0x" bot. I think it is much more advanced than WarWinner and may be more useful for hostbot, may be easier to mod then a SC bot, if it provides UDP functions that we need. However, I still have not found the source or exe ("Winningbot.exe")

http://home.arcor.de/norman15/WiN/readme.txt
« Last Edit: June 04, 2015, 06:30:35 PM by USA~Archer »

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: HostBot Dev Thread
« Reply #6 on: June 04, 2015, 06:50:00 PM »
Removed link : PM me.

Winbot.... but no source....
« Last Edit: June 04, 2015, 10:21:40 PM by tupac »

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
HostBot Dev Thread
« Reply #7 on: June 04, 2015, 09:17:19 PM »
Mr.blid will come and delete the links...I would pm them. Surprised he hasn't already....lazy admin [emoji47]


Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: HostBot Dev Thread
« Reply #8 on: June 04, 2015, 10:21:10 PM »
I would ditch the Maddox bot. I doubt the source was public. Anyways where not even sure that it has UDP support. You can packet sniff on port 6112 with this loading a game....