XConquer

Mego Loader 6711

Sep 9th, 2020
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.84 KB | None | 0 0
  1. 1.- Autentication.cs
  2.  
  3. using System;
  4. using ProjectName.Network.Cryptography;
  5. using System.Text;
  6.  
  7. namespace ProjectName.Network.AuthPackets
  8. {
  9.     public class Authentication
  10.     {
  11.         byte[] Buffer;
  12.         public string Username
  13.         {
  14.             get
  15.             {
  16.                 string x = Encoding.Default.GetString(Buffer, 8, 32);
  17.                 return x.Replace("\0", "");
  18.             }
  19.         }
  20.         public string Password
  21.         {
  22.             get
  23.             {
  24.                 byte[] PasswordArray = Encoding.Default.GetBytes(Encoding.Default.GetString(Buffer, 84, 32).Replace("\0", ""));
  25.                 string x = ProjectName.Network.Cryptography.PasswordDecryption.Decrypt(PasswordArray);
  26.                 return x.Replace("\0", "");
  27.             }
  28.         }
  29.         public string Server
  30.         {
  31.             get
  32.             {
  33.                 string x = Encoding.Default.GetString(Buffer, 136, 16);
  34.                 return x.Replace("\0", "").Replace("0", "");
  35.             }
  36.         }
  37.         public string MacAddress
  38.         {
  39.             get
  40.             {
  41.                 string x = Encoding.Default.GetString(Buffer, 152, 16);
  42.                 return x.Replace("\0", "");
  43.             }
  44.         }
  45.         public void Deserialize(byte[] buffer)
  46.         {
  47.             if (buffer.Length == 312)
  48.             {
  49.                 ushort length = BitConverter.ToUInt16(buffer, 0);
  50.                 if (length == 312)
  51.                 {
  52.                     ushort type = BitConverter.ToUInt16(buffer, 2);
  53.                     if (type == 1636)
  54.                     {
  55.                         Buffer = buffer;
  56.                     }
  57.                 }
  58.             }
  59.         }
  60.     }
  61. }
  62. =====================================================================================================
  63. 2- LoaderEncryption.cs
  64. using System;
  65. using System.Collections.Generic;
  66. using System.Linq;
  67. using System.Text;
  68. using System.Threading.Tasks;
  69.  
  70. namespace ProjectName.Network.Cryptography
  71. {
  72.     using System.Text;
  73.     public class PasswordDecryption
  74.     {
  75.  
  76.        static byte[] Key = new byte[32] { 90, 45, 12, 17, 35, 66, 44, 1, 02, 41, 59, 32, 36, 2, 234, 1, 10, 2, 79, 73, 202, 31, 99, 75, 7, 34, 16, 35, 101, 226, 99, 152 };
  77.         public static string Decrypt(byte[] data)
  78.         {
  79.             int length = Key.Length;
  80.             for (int x = 0; x < data.Length; x++)
  81.             {
  82.                 data[x] ^= Key[x % length];
  83.                 data[x] ^= Key[(x * 24 % 16) % length];
  84.                 data[x] ^= Key[(x * 48 % 32) % length];
  85.             }
  86.             return Encoding.Default.GetString(data);
  87.         }
  88.     }
  89. }
  90. ==============================================================================================================
  91. 3.- Constants GameCryptkey
  92. XCheatLoaderMeGo
  93. ==============================================================================================================
  94. 4.- Program/Server static void AuthServer_OnClientReceive(byte[] buffer, int length, ClientWrapper arg3)
  95. public static void AuthServer_OnClientReceive(byte[] buffer, int length, ClientWrapper arg3)
  96.         {
  97.             var player = arg3.Connector as Client.AuthClient;
  98.  
  99.             player.Cryptographer.Decrypt(buffer, length);
  100.             player.Queue.Enqueue(buffer, length);
  101.             while (player.Queue.CanDequeue())
  102.             {
  103.                 byte[] packet = player.Queue.Dequeue();
  104.  
  105.                 ushort len = BitConverter.ToUInt16(packet, 0);
  106.                 ushort id = BitConverter.ToUInt16(packet, 2);
  107.  
  108.                 if (len == 312)
  109.                 {
  110.                     player.Info = new ProjectName.Network.AuthPackets.Authentication();
  111.                     player.Info.Deserialize(packet);
  112.                     player.Account = new AccountTable(player.Info.Username);
  113.                  
  114.                     msvcrt.msvcrt.srand(player.PasswordSeed);
  115.  
  116.                     Forward Fw = new Forward();
  117.  
  118.                     if (player.Account.Password == player.Info.Password && player.Account.exists)
  119.                         Fw.Type = Forward.ForwardType.Ready;
  120.                     else
  121.                         Fw.Type = Forward.ForwardType.InvalidInfo;
  122.                     if (Fw.Type == Network.AuthPackets.Forward.ForwardType.Ready)
  123.                     {
  124.                         Fw.Identifier = player.Account.GenerateKey();
  125.                         Kernel.AwaitingPool[Fw.Identifier] = player.Account;
  126.                         Fw.IP = Program.GameIP;
  127.                         Fw.Port = Program.GamePort;
  128.                     }
  129.                     player.Send(Fw);
  130.                 }
  131.             }
  132.         }
  133. ======================================================================================================
  134. https://up.top4top.net/downloadf-1445u58xa1-rar.html
  135.  
  136.  
  137. https://mega.nz/#!TSZCHabb!IzkKam-xF...3F0KOexcYV85-k
  138.  
  139.  
Add Comment
Please, Sign In to add comment