Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 20:40

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

Advertisement



Help with cryptography

Discussion on Help with cryptography within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 25
Received Thanks: 1
Help with cryptography

Hello ppl, so ive been learning general hacking methods for quite a decent while now, first i started out with small things such as memory hacks and then i started learning even more which led me to packet sniffing and that led me to the idea of fiddling around with conquer. Now that ive had a chance to play around with it i decided to hook the connect function of the game and i was successful at doing so, i also managed to get the client to connect to my socket first rather than connect to the TQ server and now that ive done so i kind of have my own little proxy kinda haha, a man in the middle, but now im stuck the packets that r going through r encrypted and i would like to know how i can decrypt them and is it necessary that i learn to use a debugger such as olly?

Thanks,
Konsowa
konsowa is offline  
Old 05/14/2012, 02:00   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
Quote:
Originally Posted by konsowa View Post
Hello ppl, so ive been learning general hacking methods for quite a decent while now, first i started out with small things such as memory hacks and then i started learning even more which led me to packet sniffing and that led me to the idea of fiddling around with conquer. Now that ive had a chance to play around with it i decided to hook the connect function of the game and i was successful at doing so, i also managed to get the client to connect to my socket first rather than connect to the TQ server and now that ive done so i kind of have my own little proxy kinda haha, a man in the middle, but now im stuck the packets that r going through r encrypted and i would like to know how i can decrypt them and is it necessary that i learn to use a debugger such as olly?

Thanks,
Konsowa
Can you not hook the packet sniffer to before the packet gets encrypted?
Spirited is offline  
Old 05/14/2012, 07:11   #3
 
elite*gold: 0
Join Date: Dec 2009
Posts: 25
Received Thanks: 1
I don't think so, well if it is possible then which function will I be hooking now?
konsowa is offline  
Old 05/14/2012, 08:56   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
If you're already hooking the client then simply hook the send and receive methods. The packets being processed are pre/post encryption at that point.

Look at hawtness' hooking framework for an example.
pro4never is offline  
Old 05/14/2012, 09:24   #5
 
elite*gold: 0
Join Date: Dec 2009
Posts: 25
Received Thanks: 1
Oh ok ill try hooking them and ill see how things go from there ill tell u how I did when I get home coz now I'm at skool.

Thank you for the help!

Okay so i hooked the send and recv methods. So now i have the send function
int recv(
__in SOCKET s,
__out char *buf,
__in int len,
__in int flags
);

so what i understood from ur post is that what ever is in buf is not encrypted and that i shud be using the data inside buf and its encrypted in the send method. Please correct me if im wrong. If i was rite then how can i pass these packets to the proxy??

Note: I'm Detouring..
konsowa is offline  
Old 05/15/2012, 19:25   #6
 
elite*gold: 0
Join Date: Dec 2009
Posts: 25
Received Thanks: 1
Still waiting for an answer..and how do i run conquer in C# without play.exe?
konsowa is offline  
Old 05/15/2012, 21:00   #7
 
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
You need to blacknull the exe from code, again as P4N rightly stated take a look at the hooking methods that IamHawtness posted.
denominator is offline  
Old 05/15/2012, 22:19   #8
 
elite*gold: 0
Join Date: Dec 2009
Posts: 25
Received Thanks: 1
Well, i tried doing that by using this line of code yet i got some kind of error from conquer
Process.Start(ConquerPath, "blacknull");

error: Game Data Set Init Failed.

i also tried removing the argument thinking it wud give me the "Please run Play.exe" messagebox yet i still got the same error

note: I did get a folder in my projects debug folder called debug and it contains a file, I attached it.

Any idea how i can solve this problem?
Attached Files
File Type: txt 2012_5_14.txt (28.4 KB, 14 views)
konsowa is offline  
Old 05/15/2012, 22:24   #9
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
Quote:
Originally Posted by konsowa View Post
Well, i tried doing that by using this line of code yet i got some kind of error from conquer
Process.Start(ConquerPath, "blacknull");

error: Game Data Set Init Failed.

i also tried removing the argument thinking it wud give me the "Please run Play.exe" messagebox yet i still got the same error

note: I did get a folder in my projects debug folder called debug and it contains a file, I attached it.

Any idea how i can solve this problem?
Are you using the hooking framework? If not, you need to specify the working directory too.
IAmHawtness is offline  
Thanks
1 User
Old 05/15/2012, 22:27   #10
 
elite*gold: 0
Join Date: Dec 2009
Posts: 25
Received Thanks: 1
Thanks bro it works now but im still a bit confused in terms of the packets are they really decrypted when i get them in my hooked recv?
konsowa is offline  
Old 05/16/2012, 11:47   #11
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
Quote:
Originally Posted by konsowa View Post
Thanks bro it works now but im still a bit confused in terms of the packets are they really decrypted when i get them in my hooked recv?
If you hook recv function in ws2_32.dll, the packets are definitely not decrypted. You'd have to hook somewhere inside Conquer.exe after the packet has been decrypted.

You could look at my samples in the ".NET hooking library take two" thread to see how I do it if you need that
IAmHawtness is offline  
Reply


Similar Threads Similar Threads
Free Stanford Cryptography course
03/07/2012 - CO2 Programming - 6 Replies
Hey just in case anyone is interested, Stanford has a free online course that starts to today on cryptography. They also have other ones on computer science, game design, algorithm design, etc coming out soon. Course: https://www.coursera.org/crypto/auth/welcome
[Release]5017 Password Cryptography
06/22/2011 - CO2 PServer Guides & Releases - 10 Replies
-5017+ Will work with Lower Versions but not all Will work with Higher versions but not all Create a new .cs file if you wish and paste this class:
Password Cryptography
03/03/2011 - CO2 Private Server - 13 Replies
#Problem solved Thank You everybody, I Appreciate this.
Client Server Cryptography?
07/14/2009 - Archlord - 7 Replies
i was wondering, the communication between alefcient and the game server is encrypted, and alefclient binary seems to use Cryptography API (CNG) with most of its functions like: BCryptCloseAlgorithmProvider BCryptCreateHash BCryptDecrypt BCryptDeriveKey BCryptDestroyHash BCryptDestroyKey BCryptDestroySecret BCryptDuplicateHash



All times are GMT +1. The time now is 20:41.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.