

مرحباً أعضاء منتدى
منتدى فوكس تهيس

أنا كنت غايب عن المجال فترة كبيرة
بسبب ظروف شخصية لاداعى لزكرها
المهم حبيت أنزل اللودر دة عشان
أي سورس مش لا قى لية لودر
وتجربة ركب اللودر وهيشتغل معاك

شرح التركيب

هتفتح الاول
Auth.cs
وبدلة بدة
using System;
using System.IO;
using System.Text;
using Fighter.Network.Cryptography;
namespace Fighter.Network.AuthPackets
{
public class Authentication : Interfaces.IPacket
{
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);
if (type == 1542)
{
Buffer = buffer;
}
}
}
}
public string Username
{
get
{
return Encoding.Default.GetString(Buffer, 8, 32).Replace("\0", "");
}
}
public string Password
{
get
{
try
{
byte[] PasswordArray = Encoding.Default.GetBytes((string)(Encoding.Default.GetString(Buffer, 72, 32)));
if (PasswordArray.Length <= 0) return "";
LoaderEncryption.Decrypt(PasswordArray, 32);
string x = Encoding.Default.GetString(PasswordArray);
return x.Replace("\0", "");
}
catch
{
return "";
}
}
}
public string Server
{
get
{
return Encoding.Default.GetString(Buffer, 136, 16).Replace("\0", "").Replace("0", "");
}
}
public string MacAddress
{
get
{
return Encoding.Default.GetString(Buffer, 152, 16).Replace("\0", "");
}
}
byte[] Buffer;
public byte[] ToArray()
{
throw new NotImplementedException();
}
public void Send(Client.GameState client)
{
throw new NotImplementedException();
}
}
}

وأفتح
LoaderEncryption.cs
وبدلة بدة
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Fighter.Network.Cryptography
{
public class LoaderEncryption
{
private static byte[] Key = { 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 = 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];
}
}
}
}

وأفتح
Constants.cs
دور على
GameCryptographyKey
بدلة بدة
GameCryptographyKey = "qL0UVCXB6BY9txb2";

ماتنساش تغير أسم البروجيك
Fighter


لرؤية الروابط والمرفقات عليك الرد على الموضوع


