November 25, 2020, 08:06:26 AM

Author Topic: Battle.net 2.0 emulator?  (Read 5089 times)

imdawe

  • New Member
  • *
  • Posts: 10
    • View Profile
Battle.net 2.0 emulator?
« on: February 17, 2012, 05:15:22 AM »
Hi all!
I am a programmer and i am trying to make a battle.net 2.0 emulator.
I  found so much informations from battle.net v2 protocol and i written an emulator.
But when i try to connect i get invalid server error. I don't know how, but the client is knowing is it a real battle.net server or not.
I think the i have to inject some hack into client to kill the process that gets the real battle.net address.
Thus my question is next:
Is it possible project to make an emulator for sc2 or not?

Sry my bad english.
If you are interested in this project please pm me! I want to join a project or make a new one because i see the emulation was dead about 1-2 years ago.

raistlinthewiz

  • DarkBlizz Contributor
  • Member
  • *****
  • Posts: 43
    • View Profile

Myst

  • DarkBlizz
  • Wizard
  • *****
  • Posts: 992
  • DarkBlizz Founder | Owner
    • View Profile
    • DarkBlizz
Re: Battle.net 2.0 emulator?
« Reply #2 on: February 17, 2012, 01:25:05 PM »
Of course its possible to emulate SC2. 
You should also check out http://darkblizz.org/wiki/  although outdated, it would atleast give you an idea of what's going on.
also http://diablo3dev.com/w/Networking

imdawe

  • New Member
  • *
  • Posts: 10
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #3 on: February 18, 2012, 01:32:12 PM »
I receive  packet from sc2 and i think i do a working query to send back but i have no idea for this problem :s
c->s cauthinfo
s->c sproofrequest from starcrack sourcecode (i think thats query is old)

And i checked mooege source code but that is using a bnet library that i don't know.

imdawe

  • New Member
  • *
  • Posts: 10
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #4 on: February 19, 2012, 11:02:57 AM »
Ok,
I repaired last error but after this i get an unknown error.
Somebody know this?
This error is occurs after these:
C->S CAUTHINFO (client sendig informations)
S->C SPROOFREQUEST (server making auth modules and http responde and send it)
C->S CPROOFRESPONSE (i can't parse this information yet but in this request is password and etc..)
Print screen


msn imdawe@hotmail.com

imdawe

  • New Member
  • *
  • Posts: 10
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #5 on: February 19, 2012, 11:05:19 AM »
And if somebody want to work in this project contact me and i make up a vps and make a test server to check this error.
« Last Edit: February 19, 2012, 11:40:49 AM by imdawe »

imdawe

  • New Member
  • *
  • Posts: 10
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #6 on: February 22, 2012, 04:40:44 PM »
If i send the CAUTHCOMPLETTE and skip proofrequest and proofrespond i get this error ;D

« Last Edit: February 22, 2012, 04:43:29 PM by imdawe »

totibg

  • New Member
  • *
  • Posts: 1
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #7 on: February 26, 2012, 03:32:38 PM »
u can start here

https://bitbucket.org/Greatwolf/starcrack/src

old staff need some refactoring


+

old times

SC2 - Beta Working Offline

imdawe

  • New Member
  • *
  • Posts: 10
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #8 on: February 27, 2012, 12:21:04 PM »
Thank you!
But the code of the starcrack is too old we cannot use it only the packets.

imdawe

  • New Member
  • *
  • Posts: 10
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #9 on: March 02, 2012, 06:09:14 PM »
Hi again!
I made an srp6 class for my emulator.
I think the authentication is ok.
But on this picture the client is waiting for a packet.
This packet is always 14byte and random.
Who have any idea?


imdawe

  • New Member
  • *
  • Posts: 10
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #10 on: March 04, 2012, 03:27:21 PM »
A new UNKOWN packet researched! (This is Encrypted packet!)
Size always 14 byte
Packet ID: 4
HasChannel?: True
ChannelID: 1
If i send this packet to client, i get invalid server error.
I think this packet are another kind of thumbprint.

Update:
In this packet have 2 ip address.
packet structure:
header is [4, 1]
5 bit unkown, value 0
32 bit int ip address1 in inet_aton
16 bit int port1 number
32 bit int ip address2 in inet_aton
16 bit int port2 number
the real battle.net server sends 213.248.127.212:1119 and 213.248.127.166:1119
« Last Edit: March 08, 2012, 01:21:25 AM by imdawe »

imdawe

  • New Member
  • *
  • Posts: 10
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #11 on: March 09, 2012, 01:17:50 PM »
Authentication Successfull. ^^
First private bnet2 server comming soon :P
Thanks helpfull answers for 1000 readers.

Myst

  • DarkBlizz
  • Wizard
  • *****
  • Posts: 992
  • DarkBlizz Founder | Owner
    • View Profile
    • DarkBlizz
Re: Battle.net 2.0 emulator?
« Reply #12 on: March 09, 2012, 03:11:00 PM »
How will it be different than Starfriend?

saladom

  • New Member
  • *
  • Posts: 1
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #13 on: March 12, 2012, 04:33:56 AM »
That's so awesome.   ;D I'm waiting ur masterpiece.

cmdexe

  • New Member
  • *
  • Posts: 6
    • View Profile
Re: Battle.net 2.0 emulator?
« Reply #14 on: March 13, 2012, 03:51:36 PM »
this is amazing and really think n1ce...
Starfriend not using server, only 4 play like wc3 LAN...

And BLZRD sad there no longer write new login system...