Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: iNsaNe on January 30, 2008, 08:47 PM

Title: Intercepting and Sending Packets
Post by: iNsaNe on January 30, 2008, 08:47 PM
I want to create a custom game program that acts like WC3Banlist and Autorefresher. I want to first learn how Autorefresher works... I first want to try replicating the program but I dont know how, and I think this would be a good place to start.

How do I intercept packets coming from port 6112 on my computer, and then send packets back to Battle.net?

For example, when Battle.net sends me the packet that someone just joined the channel, I want the program to react to that packet and have my actual war3 account send an 0x0e (chat command) to the channel. How can I do this?
Title: Re: Intercepting and Sending Packets
Post by: brew on January 30, 2008, 09:03 PM
Winsock hooking
Title: Re: Intercepting and Sending Packets
Post by: iNsaNe on January 30, 2008, 09:09 PM
Quote from: brew on January 30, 2008, 09:03 PM
Winsock hooking

preferably in .NET ? (System.Net...)
Title: Re: Intercepting and Sending Packets
Post by: Barabajagal on January 30, 2008, 10:05 PM
http://packetvb.sourceforge.net/ ?