Hello, epvp
how are you guys???
i finally finished my proxy(not bot for now)
i maked the client merged (auth and game)
auth encryption is easy cause it doesnt need a dhkey
but my problem is in game encryption
i have lastest encryption and key
this the event or receiving game data
i have the DHKey Exchance for client
but i dont know how it works in server
can some one help me ??
how the server Exchange works ??
this is my problem, i already have the client exchange
how are you guys???
i finally finished my proxy(not bot for now)
i maked the client merged (auth and game)
auth encryption is easy cause it doesnt need a dhkey
but my problem is in game encryption
i have lastest encryption and key
this the event or receiving game data
Code:
public void OnSendToGame(ref byte[] data,bool toserver)
{
byte[] xdG = data;
if (toserver)
{
//client sending to server
ServerCrypt.Decrypt(xdG);
byte[] exdata = xdG;
if (Exchange && exdata.Length != 0)
{
Exchange = false;
File.AppendAllText(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\Packets\CS\" + "packet.txt", BitConverter.ToString(data).Replace("-", " ") + Environment.NewLine);
ushort position = 7;
uint PacketLen = BitConverter.ToUInt32(exdata, position);
position = (ushort)(position + 4);
int JunkLen = BitConverter.ToInt32(exdata, position);
position = (ushort)(position + 4);
position = (ushort)(position + ((ushort)JunkLen));
int Len = BitConverter.ToInt32(exdata, position);
position = (ushort)(position + 4);
byte[] pubKey = new byte[Len];
for (int x = 0; x < Len; x++)
{
pubKey[x] = exdata[x + position];
}
string PubKey = Encoding.UTF7.GetString(pubKey);
Program.MainForm.Log("ClientPublicKey:" + PubKey);
GameCrypt = DHKeyExchance.HandleClientKeyPacket(PubKey, GameCrypt);
}
else if(!Exchange && exdata.Length !=0)
{
ushort ID = BitConverter.ToUInt16(data, 2);
}
ServerCrypt.Encrypt(xdG);
}
else
{
//server sending to client
GameCrypt.Decrypt(xdG);
byte[] exdata = xdG;
if (Exchange)
{
File.AppendAllText(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\Packets\SC\" + "packet.txt", BitConverter.ToString(data).Replace("-", " ") + Environment.NewLine);
// throw new NotImplementedException();
}
GameCrypt.Encrypt(xdG);
}
data = xdG;
}
but i dont know how it works in server
can some one help me ??
how the server Exchange works ??
this is my problem, i already have the client exchange