Development Source Conquer

Download CSV3Hook 7710 P-Server

AccServer :
Change class Authentication.cs You Have To this Class
  1. using System;
  2. using System.IO;
  3. using System.Text;
  4. using AccServer.Network.Cryptography;
  5. namespace AccServer.Network.AuthPackets
  6. {
  7.     public unsafe class Authentication : Interfaces.IPacket
  8.     {
  9.         public string Username;
  10.         public string Password;
  11.         public string Server;
  12.         public string Key;
  13.         public Authentication()
  14.         {
  15.         }
  16.         public void Deserialize(byte[] buffer)
  17.         {
  18.             try
  19.             {
  20.                 ushort length = BitConverter.ToUInt16(buffer, 0);
  21.                 if (length == 472)
  22.                 {
  23.                     ushort type = BitConverter.ToUInt16(buffer, 2);
  24.                     byte[] temp = new byte[16];
  25.                     if (type == 1942)
  26.                     {
  27.                         MemoryStream MS = new MemoryStream(buffer);
  28.                         BinaryReader BR = new BinaryReader(MS);
  29.                         BR.ReadUInt16();
  30.                         BR.ReadUInt16();
  31.                         byte UserLen = BR.ReadByte();
  32.                         byte PwLen = BR.ReadByte();
  33.                         byte ServerLen = BR.ReadByte();
  34.                         ushort serial = BR.ReadUInt16();
  35.                         BR.ReadByte();
  36.                         Username = Encoding.Default.GetString(BR.ReadBytes(UserLen));
  37.                         Username = Username.Replace(\0, “”);
  38.                         byte Size = (byte)(PwLen);
  39.                         byte[] passord = new byte[PwLen];
  40.                         passord = BR.ReadBytes(PwLen);
  41.                         Password = LoaderEncryption.Decrypt(passord, Size);
  42.                         Server = Encoding.Default.GetString(BR.ReadBytes(ServerLen));
  43.                         Server = Server.Replace(\0, “”);
  44.                         BR.Close();
  45.                         MS.Close();
  46.                     }
  47.                 }
  48.             }
  49.             catch
  50.             {
  51.                 Console.WriteLine(“Invalid login packet.”);
  52.             }
  53.         }
  54.         public unsafe byte[] ToArray()
  55.         {
  56.             throw new NotImplementedException();
  57.         }
  58.     }
  59. }
Then Change This Class if You Have LoaderEncryption.cs To this
  1. using System.Text;
  2. namespace AccServer.Network.Cryptography
  3. {
  4.     public unsafe class LoaderEncryption
  5.     {
  6.         private static byte[] Key1 = Encoding.Default.GetBytes(“f0HOXPCZo6pB8K3YVA3QYldAeGoW9mCC”);
  7.         private static byte[] Key2 = Encoding.Default.GetBytes(“jeiQoKKV7KmZ61Ss047mvmeYasTQiTM4”);
  8.         public static string Decrypt(byte[] data, int Length)
  9.         {
  10.             for (int x = 0; x < Length; x++)
  11.             {
  12.                 data[x] ^= Key1[x % Length];
  13.                 data[x] ^= Key1[(x * 24 % 32) % Length];
  14.                 data[x] ^= Key2[(x * 48 % 64) % Length];
  15.             }
  16.             string pass = Encoding.Default.GetString(data).Replace(\0, “”);
  17.             return pass;
  18.         }
  19.     }
  20. }
Loader Key in GameServer
LogginKey = R3Xx97ra5j8D6uZz
Don’t Forget if Your Old Loader is from magdy change this void CreateDHKey in your source to this void You Will Find The void in Class Program.cs
  1. public unsafe static void CreateDHKey(ServerSockets.SecuritySocket obj, ServerSockets.Packet stream)
  2.         {
  3.             try
  4.             {
  5.                 byte[] buffer = new byte[60];
  6.                 bool extra = false;
  7.                 string text = System.Text.ASCIIEncoding.ASCII.GetString(obj.DHKeyBuffer.buffer, 0, obj.DHKeyBuffer.Length());
  8.                 if (!text.EndsWith(“TQClient”))
  9.                 {
  10.                     System.Buffer.BlockCopy(obj.EncryptedDHKeyBuffer.buffer, obj.EncryptedDHKeyBuffer.Length() 60, buffer, 0, 60);
  11.                     extra = true;
  12.                 }
  13.                 string key;
  14.                 if (stream.GetHandshakeReplyKey(out key))
  15.                 {
  16.                     obj.SetDHKey = true;
  17.                     obj.Game.DHKey.HandleResponse(key);
  18.                     var compute_key = obj.Game.DHKeyExchance.PostProcessDHKey(obj.Game.DHKey.ToBytes());
  19.                     obj.Game.Crypto.GenerateKey(compute_key);
  20.                     obj.Game.Crypto.Reset();
  21.                 }
  22.                 else
  23.                 {
  24.                     obj.Disconnect();
  25.                     return;
  26.                 }
  27.                 if (extra)
  28.                 {
  29.                     stream.Seek(0);
  30.                     obj.Game.Crypto.Decrypt(buffer, 0, stream.Memory, 0, 60);
  31.                     stream.Size = buffer.Length;
  32.                     stream.Seek(2);
  33.                     ushort PacketID = stream.ReadUInt16();
  34.                     Action<Client.GameClient, ServerSockets.Packet> hinvoker;
  35.                     if (Pool.MsgInvoker.TryGetInvoker(PacketID, out hinvoker))
  36.                     {
  37.                         hinvoker(obj.Game, stream);
  38.                     }
  39.                     else
  40.                     {
  41.                         obj.Disconnect();
  42.                         MyConsole.WriteLine(“[WARNING] DHKey not found | IP: “ + obj.RemoteIp, ConsoleColor.DarkYellow);
  43.                     }
  44.                 }
  45.             }
  46.             catch (Exception e) { MyConsole.WriteException(e); }
  47.         }
i forget to say if you didn’t changed the old id packet you need to change it first and here is the new id packe\\

Download Now

Click on the image below the arrows and it will download automatically

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

Back to top button
Close

Adblock Detected

Welcome, dear visitor, please kindly off the ad blocker add-on, so that you can browse and download what you want fully, and to continue supporting the site