Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Authentication
- ____________________
- 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 == 1542)
- {
- MemoryStream MS = new MemoryStream(buffer);
- BinaryReader BR = new BinaryReader(MS);
- BR.ReadUInt16();
- BR.ReadUInt16();
- Username = Encoding.Default.GetString(BR.ReadBytes(32));
- Username = Username.Replace("\0", "");
- BR.ReadBytes(36);
- var PasswordArray = BR.ReadBytes(32);
- // LoaderEncryption.Decrypt(PasswordArray, 32);
- Password = Encoding.Default.GetString(PasswordArray);
- Password = Password.Replace("\0", "");
- BR.ReadBytes(32);
- Server = Encoding.Default.GetString(BR.ReadBytes(32));
- Server = Server.Replace("\0", "");
- BR.Close();
- MS.Close();
- }
- }
- }
- }
- ____________________________________
- Constants
- _________
- GameCryptographyKey = "C238xs65pjy7HU9Q",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement