Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 Main - Discussions / Questions > CO2 Programming
You last visited: Today at 02:28

  • Please register to post and access all features, it's quick, easy and FREE!

 

[HELP] Server.dat bypass (Conquer.exe)

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2012
Posts: 63
Received Thanks: 12
[HELP] Server.dat bypass (Conquer.exe)

Hello,
as you know, Server.dat got encrypted after a certain patch (I belive 5072) and you cannot simply NOP the inet_addr in order to connect to private servers/proxies etc. For this higher patches, the "NOP the inet_addr" method it's working but once I replace the Server.dat content (a crypted one) with the normal one, there are no servers to choose, I mean, the message "Server.dat failed" doesn't pop-up but it's obviously there is something wrong with the file since if I replace the custom Server.dat with a original, untouched one, it works but well, I can't edit its content.

Now I'm asking you people, what should I search in Ollydbg or what's the method to make the Conquer.exe bypass this encryption and read directly the uncrypted content.

Any help will be greatly appreciated!



~Zero~ is offline  
Old   #2
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,189
Received Thanks: 846
The server.dat is encrypted by RSA at patch 5180-5187(5817 I think..) and I believe only one person so far has cracked that?

Anyhow, I would assume the server.dat structure has changed dramatically since they implemented the RSA encryption.

I have accomplished the task of overriding the connect() function in both C++ and C#.

I have never attempted to mess with the inet_addr function on its own as such, as I think it gets overriden when hooking connect() (a function conquer.exe uses from ws2_32.dll to connect).

As for C++ I just use detours, I detour the connect function(from memory the exact name of the function is "connect" and the parameters are "socket s, inet_addr Handle, int length" that's right or at least very similar, double check!) and replace the IP with my own, and the ports.

As for C#, I do the exact same thing, but with EasyHooks, Someone posted a C#+C++ code of doing this task without using Detours or EasyHooks but pure changing the memory using kernel32.

But as I said.

Override the connect function and replace the IP and port and return it.

Hope I was of some help.


_DreadNought_ is offline  
Thanks
2 Users
Old   #3
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,189
Received Thanks: 846
Sorry for the bump...

Did you get the information you seeked to successfully bypass the server.dat?
_DreadNought_ is offline  
Old   #4
 
elite*gold: 0
Join Date: Apr 2012
Posts: 63
Received Thanks: 12
Yup, thank you, this is valueable info. However, the thing I req to do is more a ASM thing but nevertheless, your stuff is cool and it will help me for my future projects.
NOP-ing the inet_addr just let's you connect to localhost (127.0.0.1) and thats all, it doesnt help in decrypting/bypassing the server.dat.


~Zero~ is offline  
Old   #5
 
elite*gold: 0
Join Date: Aug 2010
Posts: 981
Received Thanks: 1,053
Im not sure whats the goal of bypassing the server.dat but...

If you set a break point on this address and step into it you can see where its processing the ip/port and maybe the server name i don`t remember.

004ADE7E . E8 F6C6FFFF CALL Conquer.004AA579

And so you don't get confused cus there is too many calls for that address

I used to patch some addresses around that call to change the ip/port upon login
And i believe that if you spend some time debugging the exe you will find where the server.dat is being decrypted.

Good luck.


{ Angelius } is offline  
Thanks
1 User
Reply



« Previous Thread | Next Thread »

Similar Threads
Server DragonBall Conquer 5065 its like Original Conquer server never down try it
#Removed
8 Replies - CO2 PServer - Discussions / Questions



All times are GMT +2. The time now is 02:28.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.