عرض مشاركة واحدة
احصائياتى

الردود
6

المشاهدات
9113
 
Osama
( :: عضو متقدم :: )

Osama is on a distinguished road

    غير متواجد

المشاركات
94

+التقييم
0.02

تاريخ التسجيل
Mar 2013

الاقامة

نظام التشغيل

رقم العضوية
2549
08-26-2018, 07:03 PM
المشاركة 1 
#1  
Cool لودر لسورسات 3d وحل مشكله تسجيل الدخول
لودر لسورسات مشكله تسجيل الدخول do.php?imgf=15353136


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

نخش علي كلاس

كود:
Authentication.cs 


ونبدل الي فيه


كود:
using COServer.Network.Cryptographyusing Systemusing System.IOusing System.Text

namespace 
COServer.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(buffer0); 

                if (
length == 312
                { 

                    
ushort type BitConverter.ToUInt16(buffer2); 
                    
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(PasswordArray32); 
                        
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.GameState client
        { 
            throw new 
NotImplementedException(); 
        } 
    } 



ونعمل كلاس جديد بالاسم دة


كود:
LoaderEncryption.cs 


وارمي دول فية


كود:
using Systemusing System.Collections.Genericusing System.Linqusing System.Text

namespace 
COServer.Network.Cryptography 
    public class 
LoaderEncryption 
    

        private static 
byte[] Key = { 1801521871962312082041201771641847791251144991912012293912317115222188120109965206851029215143108231114 }; 
        public static 
void Encrypt(byte[] arr
        { 
            
int length Key.Length
            for (
int i 0arr.Lengthi++) 
            { 
                
arr[i] ^= Key[length]; 
                
arr[i] ^= Key[(1) % length]; 

            } 
        } 
        public static 
void Decrypt(byte[] arrint size
        { 
            
int length Key.Length
            for (
int i 0sizei++) 
            { 
                
arr[i] ^= Key[(1) % length]; 
                
arr[i] ^= Key[length]; 

            } 
        } 
    } 



وبعد كدة نخش كلاس


كود:
Constants.cs 

نبحث فية عن

كود:
GameCryptographyKey 

نبدلة ب دة


كود:
GameCryptographyKey "z1Sf34V7z6AV13uA"


كدا الاضافة خلصت تمام لودر لسورسات مشكله تسجيل الدخول wink.gif

تحميل الباتش


عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع



لودر لسورسات مشكله تسجيل الدخول do.php?imgf=15353138



g,]v gs,vshj 3d ,pg la;gi js[dg hg]o,g