Implementation:
1.) Add Reference XmenProxy.dll and don't forget to add it in the header
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

..