Battle.net 2.0 emulator?

Started by imdawe, February 17, 2012, 05:15:22 AM

Previous topic - Next topic

imdawe

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.


Myst

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

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

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

#5
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.

imdawe

#6
If i send the CAUTHCOMPLETTE and skip proofrequest and proofrespond i get this error ;D


totibg


imdawe

Thank you!
But the code of the starcrack is too old we cannot use it only the packets.

imdawe

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

#10
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

imdawe

Authentication Successfull. ^^
First private bnet2 server comming soon :P
Thanks helpfull answers for 1000 readers.

Myst

How will it be different than Starfriend?

saladom

That's so awesome.   ;D I'm waiting ur masterpiece.

cmdexe

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...