ازاي تعمل باتش لأي سورس - ابداع كونكر - Conquer

ازاي تعمل باتش لأي سورس

اهلا ف احلي منتدي
———————————————————-
سورسات كتير بتنزل من غير باتش الحل هنا انشا الله مش هطول عليكو يلا نبدا
———————————————————-
خش في السورس علي

Network

اعمل كلاس اسمو

LoaderEncryption

و ارمي دا جوا

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 

namespace NightMare.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]; 

            } 
        } 
    } 
}

لو عندك بدل الي جوا بالي فوق
بعد كدا خش علي كلاس Authentication بدل الي جوا ب دا

//  Created by Mohamed Almasri  

using Mr_Co.Network.Cryptography; 
using NightMare.Network.Cryptography; 
using System; 
using System.IO; 
using System.Text; 

namespace Mr_Co.Network.AuthPackets 
{ 
    public unsafe 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("
//  Created by Mohamed Almasri  
using Mr_Co.Network.Cryptography; 
using NightMare.Network.Cryptography; 
using System; 
using System.IO; 
using System.Text; 
namespace Mr_Co.Network.AuthPackets 
{ 
public unsafe 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); 
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(); 
} 
} 
} 
} 
public byte[] ToArray() 
{ 
throw new NotImplementedException(); 
} 
public void Send(Client.GameClient client) 
{ 
throw new NotImplementedException(); 
} 
} 
}
", ""); BR.ReadBytes(36); var PasswordArray = BR.ReadBytes(32); LoaderEncryption.Decrypt(PasswordArray, 32); Password = Encoding.Default.GetString(PasswordArray); Password = Password.Replace("
//  Created by Mohamed Almasri  
using Mr_Co.Network.Cryptography; 
using NightMare.Network.Cryptography; 
using System; 
using System.IO; 
using System.Text; 
namespace Mr_Co.Network.AuthPackets 
{ 
public unsafe 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); 
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(); 
} 
} 
} 
} 
public byte[] ToArray() 
{ 
throw new NotImplementedException(); 
} 
public void Send(Client.GameClient client) 
{ 
throw new NotImplementedException(); 
} 
} 
}
", ""); BR.ReadBytes(32); Server = Encoding.Default.GetString(BR.ReadBytes(32)); Server = Server.Replace("
//  Created by Mohamed Almasri  
using Mr_Co.Network.Cryptography; 
using NightMare.Network.Cryptography; 
using System; 
using System.IO; 
using System.Text; 
namespace Mr_Co.Network.AuthPackets 
{ 
public unsafe 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); 
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(); 
} 
} 
} 
} 
public byte[] ToArray() 
{ 
throw new NotImplementedException(); 
} 
public void Send(Client.GameClient client) 
{ 
throw new NotImplementedException(); 
} 
} 
}
", ""); BR.Close(); MS.Close(); } } } } public byte[] ToArray() { throw new NotImplementedException(); } public void Send(Client.GameClient client) { throw new NotImplementedException(); } } }

اخر حاجا خش علي كلاس Constants
و انزل لحد الكود دا

GameCryptographyKey =

بدلو ب دا

GameCryptographyKey = "qL0UVCXB6BY9txb2"  

خد بالك من حاجا هتلاقي الكود الي هتبدلو زي كدا
GameCryptographyKey = “qL0UVCXB6BY9txb2”
ادامو حروف و ارقام امسح السطر كلو و بدلو ب الي فوق دا
ملحوظة كمان لو لقيت الكود الي هتبدلو ف الاخر حط في اخرو العلامة دي ;
لو لقيتو مش في الاخر في نص الكودات كدا حط دا ,
و شكرا طولت عليكو لو اي حد قابل مشكلة يقول في التعليقات

One thought on “ازاي تعمل باتش لأي سورس”

أضف تعليق

قوانين المدونة & عن تيم تهيس