Can you help me
which codes need editing to decrypt password successfully in verson 6711
public void Deserialize(byte[] buffer)
{
if (buffer.Length == 312)
{
ushort length = BitConverter.ToUInt16(buffer, 0);
if (length == 312)
{
ushort type = BitConverter.ToUInt16(buffer, 2);
byte[] temp = new byte[16];
if (type == 1636)
{
MemoryStream MS = new MemoryStream(buffer);
BinaryReader BR = new BinaryReader(MS);
BR.ReadUInt16();
BR.ReadUInt16();
Username = Encoding.Default.GetString(BR.ReadBytes(32)).Replace("\0", "");
BR.ReadBytes(36);
var PasswordArray = BR.ReadBytes(32);
LoaderEncryption.Decrypt(PasswordArray, 32);
Password = Encoding.Default.GetString(PasswordArray).Replace("\0", "");
BR.ReadBytes(32);
Server = Encoding.Default.GetString(BR.ReadBytes(16)).Replace("\0", "");
MacAddress = Encoding.Default.GetString(BR.ReadBytes(12)).Replace("\0", "");
BR.Close();
MS.Close();
}
}
}
}
public class LoaderEncryption
{
private static byte[] Key = {0x85,0xC0,0x75,0x2F,0x8B,0x4F,0x14,0xE8,0x2B,0xF0,0xFF,0xFF,0x83,0x4D,0xFC,0xFF,0x8B,0x4D,0xF4};
public static void Encrypt(byte[] arr)
{
int length = Key.Length;
for (int i = 0; i < arr.Length; i++)
{
arr[i] ^= Key[i % length];
arr[i] ^= Key[(i + 1) % length];
}
}
public static void Decrypt(byte[] arr, int size)
{
int length = Key.Length;
for (int i = 0; i < size; i++)
{
arr[i] ^= Key[(i + 1) % length];
arr[i] ^= Key[i % length];
}
}
}
I tried to change Key array with patterns i found in Cl Hook according corresponding version but it doesn't work