Clan x86

General Forums => General Discussion => Topic started by: GameSnake on April 22, 2005, 10:03:47 PM

Title: How would you do it!
Post by: GameSnake on April 22, 2005, 10:03:47 PM
Rip off of vL thread
Is it possible to have a bot intercept battle.net packets and send certin, different ones?
Title: Re: How would you do it!
Post by: iago on April 22, 2005, 11:28:16 PM
Yes.  Although it wouldn't be a bot, there's a funny name for it.  Not a proxy.. I can't remember what it's called.  But yeah, tell the game to connect to 127.0.0.1 instead of Battle.net, and your program listens on Battle.net and forwards the packets to the Battle.net server and from the Battle.net srever back to the game.

When I did that, however, I couldn't use UDP because VB sucks at UDP.  In other languages, it would probably be possible, though.
Title: Re: How would you do it!
Post by: rabbit on April 23, 2005, 09:14:14 AM
I made that for StealthBot, it would probably work on clients, too, but I forget if I made it look at the StealthBot config for connection info or not.
Title: Re: How would you do it!
Post by: GameSnake on April 23, 2005, 10:59:52 AM
So I'd just need to write a little program to sniff packets going through battle.net, send it to my client then forward it back to battle.net?
Title: Re: How would you do it!
Post by: Screenor on April 23, 2005, 11:09:13 AM
And back through the circle of life, yep.
Title: Re: How would you do it!
Post by: iago on April 23, 2005, 11:38:57 AM
Quote from: GameSnake on April 23, 2005, 10:59:52 AM
So I'd just need to write a little program to sniff packets going through battle.net, send it to my client then forward it back to battle.net?

You aren't sniffing, they're being sent to you.  Assuming you do it my way.
Title: Re: How would you do it!
Post by: GameSnake on April 23, 2005, 12:17:20 PM
QuoteYou aren't sniffing, they're being sent to you.  Assuming you do it my way.
And if you don't mind me asking what is your way?
If packets are being sent to you then how can you read them without looking for them?
Title: Re: How would you do it!
Post by: rabbit on April 23, 2005, 12:33:39 PM
Have the client connect to your program, and your program to Battle.Net.  You'd be tunneling the connection and modifying what you want.

@iago: tunnel
Title: Re: How would you do it!
Post by: GameSnake on April 23, 2005, 12:38:07 PM
Ok thanks.
Title: Re: How would you do it!
Post by: iago on April 23, 2005, 01:00:00 PM
Quote from: GameSnake on April 23, 2005, 12:17:20 PM
QuoteYou aren't sniffing, they're being sent to you.  Assuming you do it my way.
And if you don't mind me asking what is your way?
If packets are being sent to you then how can you read them without looking for them?

See my first post!
Title: Re: How would you do it!
Post by: GameSnake on April 23, 2005, 01:37:32 PM
I thought you had an example or somthing.. nevermind. =)
Thanks iago, Rabbit.