Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: BlazingKnight on October 06, 2003, 11:45 PM

Title: Emulation
Post by: BlazingKnight on October 06, 2003, 11:45 PM
I can't remember who wrote it, but it was a [vl] member. Anyway, he talked about hijacking a connecting during the very basic emulation of a programming. Could you do something like hijacking a connection to emulate the packets to get a desired result for the game such as ping spoofing?
Title: Re:Emulation
Post by: iago on October 07, 2003, 12:00 AM
Yes.

If you're talking about Starcraft (for example), change the server in the registry to 127.0.0.1 (localhost), then write a program that listens on 127.0.0.1.  When it recieves a connection from your program, it will establish a connection with battle.net and forward the packets back and forth.  It also lets you spoof packets and edit packets and all that fun stuff, but I could never get UDP to work using the vb winsock control because you can't listen and send on 6112.
Title: Re:Emulation
Post by: Adron on October 07, 2003, 11:51 AM
You could also hook the winsock function calls in Starcraft to modify the data it sends/receives.
Title: Re:Emulation
Post by: iago on October 07, 2003, 12:39 PM
Quote from: Adron on October 07, 2003, 11:51 AM
You could also hook the winsock function calls in Starcraft to modify the data it sends/receives.

I think that's more avanced than he intends to go, though..
Title: Re:Emulation
Post by: Banana fanna fo fanna on October 07, 2003, 02:15 PM
Wasn't a vL member...

/me raises hand
Title: Re:Emulation
Post by: UserLoser on October 07, 2003, 03:40 PM
Quote from: St0rm.iD on October 07, 2003, 02:15 PM
/me raises hand

and points to a vL member
Title: Re:Emulation
Post by: BlazingKnight on October 07, 2003, 04:17 PM
I didn't really plan on doing anything, the questions was just for reference purposes.
Title: Re:Emulation
Post by: Banana fanna fo fanna on October 07, 2003, 05:57 PM
Well what it did was:

a) accept connection from game client, determined by first byte sent (also have to proxy bnftp)
b) connect to battle.net server
c) proxy all data both ways
d) accept connection from chat bot, determined by first byte
e) boot the game client
f) parse binary packets and send chat packets, and vice versa

I could send you the extremely buggy prototype I made a week after the bot ban if you like.
Title: Re:Emulation
Post by: PaiD on October 07, 2003, 06:07 PM
Could you send it to me?
Title: Re:Emulation
Post by: iago on October 07, 2003, 08:55 PM
Quote from: St0rm.iD on October 07, 2003, 02:15 PM
Wasn't a vL member...

/me raises hand

I also did that, and Grok made something like that (Gateway.zip or something)
Title: Re:Emulation
Post by: Adron on October 08, 2003, 10:35 AM
Quote from: iago on October 07, 2003, 12:39 PM
Quote from: Adron on October 07, 2003, 11:51 AM
You could also hook the winsock function calls in Starcraft to modify the data it sends/receives.

I think that's more avanced than he intends to go, though..

It works rather neatly though. I'm pretty sure I have an ocx for that somewhere, that I haven't used in a long time.