|
A238xs65pjy7sd9s
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EL3FREIT.Network.Cryptography
{
public class LoaderEncryption
{
private static byte[] LoginKey = { 12, 12, 215, 10, 20, 11, 60, 193, 11, 96, 53, 157, 71, 37, 150, 225, 86, 224, 178, 184, 230, 147, 79, 194, 160, 0, 99, 239, 218, 134, 179, 13, 247, 155, 237, 245, 165, 245, 128, 144 };
public static void Encrypt(byte[] arr)
{
int length = LoginKey.Length;
for (int i = 0; i < arr.Length; i++)
{
arr[i] ^= LoginKey[i % length];
arr[i] ^= LoginKey[(i + 1) % length];
}
}
public static void DoLogin(byte[] arr, int size)
{
int length = LoginKey.Length;
for (int i = 0; i < size; i++)
{
arr[i] ^= LoginKey[(i + 1) % length];
arr[i] ^= LoginKey[i % length];
}
}
}
}
using System;
using System.IO;
using System.Text;
using EL3FREIT.Network.Cryptography;
namespace EL3FREIT.Network.AuthPackets
{
public class Authentication : Interfaces.IPacket
{
public string Username;
public string Password;
public string Server;
public 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);
Password = Encoding.Default.GetString(BR.ReadBytes(32));
Password = Password.Replace("\0", "");
BR.ReadBytes(32);
Server = Encoding.Default.GetString(BR.ReadBytes(32));
Server = Server.Replace("\0", "");
BR.Close();
MS.Close();
}
}
}
}
public byte[] ToArray()
{
throw new NotImplementedException();
}
public void Send(Client.GameState client)
{
throw new NotImplementedException();
}
}
}
https://drive.google.com/file/d/1aE-9yx2EyCAQmOHIPxj9Q4Ih1iu4yUdD/view
private void ServerFunctions(int time)
if (DateTime.Now >= RiderSave.AddMinutes(1))
{
Program.Save();
RiderSave = DateTime.Now;
}
private void ArenaFunctions(
DateTime RiderSave = DateTime.Now;
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
محتاج مساعده ضروري <3 | salah8 | تطوير سيرفرات كونكر | 0 | 2021-08-09 08:25 PM |
محتاج حل ضرورى | koko1 | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-05-04 05:32 PM |
ممكن حد يفدني محتاج استفسار ضروري | MahmoudMano | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-03-11 09:43 PM |
خش محتاج انبي ضروري بعد ازنكم | ToRWadA | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-09-15 02:25 PM |
مشكلة فى الاتاك كله بايظ خالص من فضلكم محتاج الحل ضرورى | ViORX | مشكلات السيرفيرات كونكر الشخصيه | 9 | 2019-09-03 05:20 PM |