Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: TriCk on April 07, 2004, 09:01 PM

Title: Proxy Help...
Post by: TriCk on April 07, 2004, 09:01 PM
vb6

For some strange reason my bot wont pass after sending 0x1E it either freezes the bot, disconnects or does nothing. I have compared my code with many other bots and fail to see anything wrong, does anyone know what it might be?
Title: Re:Proxy Help...
Post by: Noodlez on April 07, 2004, 09:12 PM
Packet logs might be helpful.
Title: Re:Proxy Help...
Post by: Lenny on April 07, 2004, 10:05 PM
Just to make it clear, is this connection through a proxy?
Title: Re:Proxy Help...
Post by: TriCk on April 08, 2004, 01:28 AM
yea its through a proxy
Title: Re:Proxy Help...
Post by: Lenny on April 08, 2004, 02:04 AM
Well with the info youve given me (or should I say havent given)....I conclude that you are unaware that you have to login a proxy before using it.....
Title: Re:Proxy Help...
Post by: o.OV on April 08, 2004, 03:27 AM
Quote from: Lenny on April 08, 2004, 02:04 AM
Well with the info youve given me (or should I say havent given)....I conclude that you are unaware that you have to login a proxy before using it.....

I prefer the term authentication..
since login with an actual username and password isn't always required as with most public proxies that I know of.
Title: Re:Proxy Help...
Post by: ChR0NiC on April 08, 2004, 12:39 PM
Why the hell do people use 0x1E....I find it out of date and pointless.
Title: Re:Proxy Help...
Post by: Newby on April 08, 2004, 12:46 PM
Quote from: ChR0NiC on April 08, 2004, 12:39 PM
Why the hell do people use 0x1E....I find it out of date and pointless.
Warcraft II uses it still. (For the game client last time I checked)
Title: Re:Proxy Help...
Post by: Archangel on April 08, 2004, 07:10 PM
Quote from: Newby on April 08, 2004, 12:46 PM
Quote from: ChR0NiC on April 08, 2004, 12:39 PM
Why the hell do people use 0x1E....I find it out of date and pointless.
Warcraft II uses it still. (For the game client last time I checked)

Well, i prefer 0x51 than 0x1E.
Title: Re:Proxy Help...
Post by: o.OV on April 08, 2004, 07:42 PM
Quote from: ChR0NiC on April 08, 2004, 12:39 PM
Why the hell do people use 0x1E....I find it out of date and pointless.

Last I checked.. with 0x1E I could logon to a single server twice with the same cdkey using different ip addresses.
Title: Re:Proxy Help...
Post by: Archangel on April 08, 2004, 08:18 PM
Quote from: o.OV on April 08, 2004, 07:42 PM
Quote from: ChR0NiC on April 08, 2004, 12:39 PM
Why the hell do people use 0x1E....I find it out of date and pointless.

Last I checked.. with 0x1E I could logon to a single server twice with the same cdkey using different ip addresses.

Are you sure of this? Because alot of people Bluff about this.
Title: Re:Proxy Help...
Post by: MyndFyre on April 08, 2004, 08:19 PM
Quote from: o.OV on April 08, 2004, 07:42 PM
Quote from: ChR0NiC on April 08, 2004, 12:39 PM
Why the hell do people use 0x1E....I find it out of date and pointless.

Last I checked.. with 0x1E I could logon to a single server twice with the same cdkey using different ip addresses.

I am able to log into Starcraft with Webbot and Brood War with my bot at the same time -- I'm not sure what Webbot uses, but my bot uses 0x51.  I have one key. :)
Title: Re:Proxy Help...
Post by: ChR0NiC on April 08, 2004, 08:43 PM
Are they both on the same server :P
Title: Re:Proxy Help...
Post by: MyndFyre on April 09, 2004, 12:10 AM
Quote from: ChR0NiC on April 08, 2004, 08:43 PM
Are they both on the same server :P

Yes, US East.
Title: Re:Proxy Help...
Post by: ChR0NiC on April 09, 2004, 12:12 AM
Quote from: ChR0NiC on April 08, 2004, 08:43 PM
Are they both on the same server :P

Quote from: Myndfyre on April 09, 2004, 12:10 AM
Yes, US East.

Perhaps packet log Web Bot and post your findings?

Edit: You don't have to, but I would like to see if it's possible to replicate this "two keys on 1 server" system.
Title: Re:Proxy Help...
Post by: MyndFyre on April 09, 2004, 12:28 AM
Tested results:

Home computer connected WebBot with Starcraft on US East at all times.
Home computer connection with my bot to Brood War on US East: failed.
Home computer connection with my bot to Brood War on US West: success.
Computer at school connection with my bot to Brood War on US East: success.
Computer at school connection with my bot to Brood War on US West: success.

WebBot also uses 0x50, according to my packet log.
Title: Re:Proxy Help...
Post by: o.OV on April 09, 2004, 12:30 AM
Quote from: Myndfyre on April 08, 2004, 08:19 PM
Quote from: o.OV on April 08, 2004, 07:42 PM
Quote from: ChR0NiC on April 08, 2004, 12:39 PM
Why the hell do people use 0x1E....I find it out of date and pointless.

Last I checked.. with 0x1E I could logon to a single server twice with the same cdkey using different ip addresses.

I am able to log into Starcraft with Webbot and Brood War with my bot at the same time -- I'm not sure what Webbot uses, but my bot uses 0x51.  I have one key. :)

Oh.. I thought only 0x1E could do this..
I used zDS bots which I assume is 0x1E and a normal starcraft game client which is 0x51 to test this about a year ago. My conclusions were wrong then if what you say is true.
I'll test it again and see what I come up.
Title: Re:Proxy Help...
Post by: ChR0NiC on April 09, 2004, 12:36 AM
Is it just because they are all running on separate IP's?? Or possibly proxies? Do you know how or why this is possible ?
Title: Re:Proxy Help...
Post by: MyndFyre on April 09, 2004, 12:54 AM
Quote from: ChR0NiC on April 09, 2004, 12:36 AM
Is it just because they are all running on separate IP's?? Or possibly proxies? Do you know how or why this is possible ?

My best guess is that it is the combination of different client ID and IP address, although as I said, I can get on both USEast and USWest simultaneously.
Title: Re:Proxy Help...
Post by: o.OV on April 09, 2004, 05:08 AM
Ok.. I just tested it myself and no packetlogs needed since its all coded locally.

I took an old 0x1E chat bot of mine.
Set it up for 0x51 login.
And added proxy support.

I compiled and ran two copies that used 0x51.
On one I set it to login with a proxy.
On the other I set it up to login using local ip.

Then I ran the an old copy that uses 0x1E.

(none are connected yet and all three are using the same key)
So.. I started connecting.

I ran one of the 0x51 bots using a proxy.
It logged in fine.

next I ran the other 0x51 bot without a proxy.
It rejected the key and said.. Key in Use.

Then I ran the 0x1E bot without a proxy..
It logged in.

Add-On:
Oh.. And I did login a 4th bot with different key on local ip for a squelch test to make sure one of them was on a proxy :)

Add-On:
and checked that the 0x50/0x51 copy functioned properly when using local ip.. it is fine.
Title: Re:Proxy Help...
Post by: Lenny on April 09, 2004, 01:34 PM
All these bots connected through the same client?
Title: Re:Proxy Help...
Post by: o.OV on April 09, 2004, 06:15 PM
Quote from: Lenny on April 09, 2004, 01:34 PM
All these bots connected through the same client?

Yes.
Title: Re:Proxy Help...
Post by: Newby on April 09, 2004, 07:48 PM
AFAIK, I used a bot that used 0x50 and I logged on the same CDkey twice if I had a different IP.