Author Topic: How would you do it!  (Read 3596 times)

0 Members and 1 Guest are viewing this topic.

Offline GameSnake

  • News hound
  • Hero Member
  • *****
  • Posts: 2937
    • View Profile
How would you do it!
« 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?

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: How would you do it!
« Reply #1 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.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: How would you do it!
« Reply #2 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.

Offline GameSnake

  • News hound
  • Hero Member
  • *****
  • Posts: 2937
    • View Profile
Re: How would you do it!
« Reply #3 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?

Offline Screenor

  • Hero Member
  • *****
  • Posts: 1611
  • My own little world.
    • View Profile
Re: How would you do it!
« Reply #4 on: April 23, 2005, 11:09:13 am »
And back through the circle of life, yep.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: How would you do it!
« Reply #5 on: April 23, 2005, 11:38:57 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.

Offline GameSnake

  • News hound
  • Hero Member
  • *****
  • Posts: 2937
    • View Profile
Re: How would you do it!
« Reply #6 on: April 23, 2005, 12:17:20 pm »
Quote
You 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?

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: How would you do it!
« Reply #7 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

Offline GameSnake

  • News hound
  • Hero Member
  • *****
  • Posts: 2937
    • View Profile
Re: How would you do it!
« Reply #8 on: April 23, 2005, 12:38:07 pm »
Ok thanks.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: How would you do it!
« Reply #9 on: April 23, 2005, 01:00:00 pm »
Quote
You 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!

Offline GameSnake

  • News hound
  • Hero Member
  • *****
  • Posts: 2937
    • View Profile
Re: How would you do it!
« Reply #10 on: April 23, 2005, 01:37:32 pm »
I thought you had an example or somthing.. nevermind. =)
Thanks iago, Rabbit.