Proxy Library

08/01/2012 00:45 xmen01235#1
Implementation:
1.) Add Reference XmenProxy.dll and don't forget to add it in the header

Code:
using XmenProxy;

2.) Redirecting the conquer client(Change the pathname of the conquer.exe according to the instalation path of conquer in your PC)
Code:
redirect.LoadCOWithBypass("D:\\Games\\Conquer Online 2.0\\conquer.exe",
 " blacknull blacknull");
3.) Define GameServer & Authentication Server

Code:
       
        private GameServerEngine GSEngine = new GameServerEngine();
        private AuthServer ASEngine1 = new AuthServer();   // For Group 1
        private AuthServer ASEngine2 = new AuthServer();  // For Group 2
4.) Start the Server
Code:
            string localhostIP = myLocalhost.GetmyIP();
            GSEngine.OnDataArrival +=
                 new GameServerEngine.OnPacketArrivalDelegate(GSEngine_OnDataArrival);
            GSEngine.localPort = 5816;
            GSEngine.remoteIP = "184.175.115.3";
            GSEngine.remotePort = 5816;
            GSEngine.localIP = localhostIP;
            GSEngine.Start();


            ASEngine1.localPort = 9959;
            ASEngine1.remoteIP = "208.96.34.46";
            ASEngine1.remotePort = 9959;
            ASEngine1.localIP = localhostIP;
            ASEngine1.Start();

            ASEngine2.localPort = 9960;
            ASEngine2.remoteIP = "208.96.34.46";
            ASEngine2.remotePort = 9960;
            ASEngine2.localIP = localhostIP;
            ASEngine2.Start();

5.) Edit or View the Decrpyted Packet at GSEngine_OnDataArrival event
You can do anything you want on packet on this event but just takenote the packetsender(Eg. if the packetsender was fromClient then it should be send toserver and vice versa).
Code:
        private void GSEngine_OnDataArrival(ref byte[] buffer, int bytesize, ProxyGSConn ProConn, string PacketSender)
        {
            switch (PacketSender)
            {
                case "fromClient":                    
                    ProConn.Send(buffer, "toserver"); break;
                case "fromServer":
                    ProConn.Send(buffer, "toclient"); break;
            }

        }
Additionally you need to save the following dll into your root directory.
1.)ManagedOpenSsl.dll
2.)ssleay32.dll
3.)libeay32.dll


I made a packet logger as an example just please check the attachment.

If you find any bugs please don't get mad on me because I am not pro :D..
08/01/2012 01:33 diedwarrior#2
Good job.
Does the packet logger work or just an example?
08/01/2012 06:04 xmen01235#3
Quote:
Originally Posted by diedwarrior View Post
Good job.
Does the packet logger work or just an example?
Yes it works bro.
08/01/2012 08:51 I don't have a username#4
9958 auth servers doesn't exist anymore? :p
08/01/2012 09:03 xmen01235#5
Quote:
Originally Posted by I don't have a username View Post
9958 auth servers doesn't exist anymore? :p
You can add that anyway if that still exist. Just define new authentication server with remote and local port at 9958.
08/01/2012 09:12 I don't have a username#6
Quote:
Originally Posted by xmen01235 View Post
You can add that anyway if that still exist. Just define new authentication server with remote and local port at 9958.
I have no idea if it does, that's why I asked :P But I'm not going to use this at anytime, already got my own proxy (Not for conquer tho.) However I could easily set it up for it. But it's a great share and I'm sure people will find your release useful.
08/01/2012 12:19 Mind Fuck#7
thanks for the packet logger :)
08/01/2012 13:48 xmen01235#8
Quote:
Originally Posted by Mind Fuck View Post
thanks for the packet logger :)
No problem.
08/01/2012 16:32 diedwarrior#9
for some reason I get stuck at login.
08/01/2012 18:51 xmen01235#10
Quote:
Originally Posted by diedwarrior View Post
for some reason I get stuck at login.
Check if the following dll are in your debug folder.
1.)ManagedOpenSsl.dll
2.)ssleay32.dll
3.)libeay32.dll
08/01/2012 22:55 diedwarrior#11
Yep they're.
08/02/2012 08:59 xmen01235#12
Quote:
Originally Posted by diedwarrior View Post
Yep they're.
Are you still stuck on the login?
08/02/2012 09:29 ConquerServer#13
The problem in the login process
08/02/2012 11:55 xmen01235#14
Let me check this one tonight.
08/02/2012 12:43 ConquerServer#15
I need source code XmenProxy.dll adjust the imbalance