Egy4U
اسم العضو كلمة المرور حفظ البيانات؟ إنشاء حساب








أخر مواضيع ايجى4يو

ايجى4يو || Egy4u > أقسام كونكر برفيت > تطوير سيرفرات كـــونـــكر تـــهيس
حماية ضد هكر البلص والدمج والسوكت واي اندهاش عايزو


المشاركات: 9 [+]
المخالفات: [+]
hamoda غير متواجد حالياً
hamoda
( ( عضو جديد ) )
حماية ضد هكر البلص والدمج والسوكت واي اندهاش عايزو
: 07-15-2017 فى تمام الساعة 03:32 AM| المشاركة رقم: 1| من قسم: تطوير سيرفرات كـــونـــكر تـــهيس

السلام عليكم وحمة الله وبركاته
بمناسبة افتتاح سيرفري الجديد
SlangMan-TQ
اولا دي حمايه كامله متكامله
دي احنا عملنا من سنتين ونص بالظبط
نخش في المفيد

World.cs

search

Html

private void CharactersCallback(GameClient clientint time

and add this code below

Html

  //حماية للسيرفر


            #region Gears Check By GoWaNo
            #region integer
            
ConquerItem r client.Equipment.TryGetItem(ConquerItem.RightWeaponAccessory);
            
ConquerItem l client.Equipment.TryGetItem(ConquerItem.LeftWeaponAccessory);
            
ConquerItem c client.Equipment.TryGetItem(ConquerItem.SteedCrop);
            
ConquerItem s client.Equipment.TryGetItem(ConquerItem.Steed);
            
ConquerItem g client.Equipment.TryGetItem(ConquerItem.Garment);
            
ConquerItem m client.Equipment.TryGetItem(ConquerItem.SteedArmor);
            
#endregion
            #region Time Check
            
if (DateTime.Now.Second == 00
             
||
               
DateTime.Now.Second == 02
             
||
               
DateTime.Now.Second == 04
             
||
               
DateTime.Now.Second == 08
             
||
               
DateTime.Now.Second == 12
             
||
               
DateTime.Now.Second == 14
             
||
               
DateTime.Now.Second == 16
             
||
               
DateTime.Now.Second == 18
             
||
               
DateTime.Now.Second == 20
             
||
               
DateTime.Now.Second == 22
             
||
               
DateTime.Now.Second == 24
             
||
               
DateTime.Now.Second == 26
             
||
               
DateTime.Now.Second == 28
             
||
               
DateTime.Now.Second == 30
             
||
               
DateTime.Now.Second == 32
             
||
               
DateTime.Now.Second == 34
             
||
               
DateTime.Now.Second == 36
             
||
               
DateTime.Now.Second == 38
             
||
               
DateTime.Now.Second == 40
             
||
               
DateTime.Now.Second == 42
             
||
               
DateTime.Now.Second == 44
             
||
               
DateTime.Now.Second == 46
             
||
               
DateTime.Now.Second == 48
             
||
               
DateTime.Now.Second == 50
             
||
               
DateTime.Now.Second == 52
             
||
               
DateTime.Now.Second == 54
             
||
               
DateTime.Now.Second == 56
             
||
               
DateTime.Now.Second == 58
             
||
               
DateTime.Now.Second == 58)
            
#endregion Time Check

            
{

                
//A_H_M_E_D
                //GoWaNo
                //Mido
                #region Crop
                /////////////"""Socket"""//////////////////////////////
                
if (!client.Equipment.Free(18) && BigBOsProjects.Network.PacketHandler.GoWaNoCrop(client.Equipment.TryGetItem(18).ID))
                {


                    if (
c.SocketOne != BigBOsProjects.Game.Enums.Gem.NoSocket)
                    {

                        
client.Equipment.Remove(18);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear

                        //   client.Disconnect();

                    
}
                }
                
/////////////"""bless--"""//////////////////////////////
                
if (!client.Equipment.Free(18) && BigBOsProjects.Network.PacketHandler.GoWaNoCrop(client.Equipment.TryGetItem(18).ID))
                {
                    if (
/*c.Bless == 3 || */c.Bless == || c.Bless == 7)
                    {
//Crop GoWaNo
                        
client.Equipment.Remove(18);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
/////////////"""Plus++"""//////////////////////////////
                
if (!client.Equipment.Free(18) && BigBOsProjects.Network.PacketHandler.GoWaNoCrop(client.Equipment.TryGetItem(18).ID))
                {
                    if (
client.Equipment.TryGetItem(18).Plus 15)
                    {
//crop
                        
client.Equipment.Remove(18);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
/////////////////////////////////////////////////////////

                #endregion Crop
                #region Right.Acess
                /////////////"""Socket"""//////////////////////////////
                
if (!client.Equipment.Free(15) && BigBOsProjects.Network.PacketHandler.GoWaNoAcess(client.Equipment.TryGetItem(15).ID))
                {
                    if (
r.SocketOne != BigBOsProjects.Game.Enums.Gem.NoSocket)
                    {
                        
client.Equipment.Remove(15);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
/////////////"""bless"""//////////////////////////////
                
if (!client.Equipment.Free(15) && BigBOsProjects.Network.PacketHandler.GoWaNoAcess(client.Equipment.TryGetItem(15).ID))
                {
                    if (
r.Bless == || r.Bless == || r.Bless == 7)
                    {
//R.Access GoWaNo
                        
client.Equipment.Remove(15);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
////////////////////////////////////////////////////////
                #endregion Right.Access
                #region Left.Acess
                /////////////"""Socket"""//////////////////////////////
                
if (!client.Equipment.Free(16) && BigBOsProjects.Network.PacketHandler.GoWaNoAcess(client.Equipment.TryGetItem(16).ID))
                {
                    if (
l.SocketOne != BigBOsProjects.Game.Enums.Gem.NoSocket)
                    {
                        
client.Equipment.Remove(16);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
/////////////"""bless"""//////////////////////////////
                
if (!client.Equipment.Free(16) && BigBOsProjects.Network.PacketHandler.GoWaNoAcess(client.Equipment.TryGetItem(16).ID))
                {
                    if (
l.Bless == || l.Bless == || l.Bless == 7)
                    {
//L.Access GoWaNo
                        
client.Equipment.Remove(16);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
////////////////////////////////////////////////////////
                #endregion Left.Acess
                #region Steed
                /////////////"""Socket"""//////////////////////////////
                
if (!client.Equipment.Free(12) && BigBOsProjects.Network.PacketHandler.GoWaNoSteed(client.Equipment.TryGetItem(12).ID))
                {
                    if (
s.SocketOne != BigBOsProjects.Game.Enums.Gem.NoSocket)
                    {
                        
client.Equipment.Remove(12);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
/////////////"""Plus++"""//////////////////////////////
                
if (!client.Equipment.Free(12) && BigBOsProjects.Network.PacketHandler.GoWaNoSteed(client.Equipment.TryGetItem(12).ID))
                {
                    if (
client.Equipment.TryGetItem(12).Plus >= 13)
                    {
//Steed GoWaNo
                        
client.Equipment.Remove(12);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
////////////////////////////////////////////////////////
                #endregion Steed
                #region garment
                /////////////"""Socket"""//////////////////////////////
                
if (!client.Equipment.Free(9) && BigBOsProjects.Network.PacketHandler.GoWaNoGarment(client.Equipment.TryGetItem(9).ID))
                {
                    if (
g.SocketOne != BigBOsProjects.Game.Enums.Gem.NoSocket)
                    {
                        
client.Equipment.Remove(9);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
/////////////"""bless"""//////////////////////////////
                
if (!client.Equipment.Free(9) && BigBOsProjects.Network.PacketHandler.GoWaNoGarment(client.Equipment.TryGetItem(9).ID))
                {
                    if (
g.Bless == || g.Bless == || g.Bless == 7)
                    {
//garment GoWaNo
                        
client.Equipment.Remove(9);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
////////////////////////////////////////////////////////

                #endregion Garment
                #region Mount
                /////////////"""Socket"""//////////////////////////////
                
if (!client.Equipment.Free(17) && BigBOsProjects.Network.PacketHandler.GoWaNoMount(client.Equipment.TryGetItem(17).ID))
                {
                    if (
m.SocketOne != BigBOsProjects.Game.Enums.Gem.NoSocket)
                    {
                        
client.Equipment.Remove(17);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
/////////////"""bless"""//////////////////////////////
                
if (!client.Equipment.Free(17) && BigBOsProjects.Network.PacketHandler.GoWaNoMount(client.Equipment.TryGetItem(17).ID))
                {
                    if (
m.Bless == || m.Bless == || m.Bless == 7)
                    {
//Mount GoWaNo
                        
client.Equipment.Remove(17);
                        
//clear
                        
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                        
client.Inventory.Objects.CopyTo(inventory0);

                        foreach (
ConquerItem item in inventory)
                        {
                            
client.Inventory.Remove(itemBigBOsProjects.Game.Enums.ItemUse.Remove);
                        }
                        
//clear
                    
}
                }
                
////////////////////////////////////////////////////////
                #endregion Mount

                #region Remove Phonix
                //Done
                
if (client.Spells.ContainsKey(5030))
                {
                    
client.RemoveSpell(new Spell(true) { ID 5030 });
                    
client.Disconnect();
                }
                
#endregion Phonix
                #region vitility
                //Done
                
if (client.Entity.Vitality 538)
                {
                    
client.Entity.Vitality 538;
                    
client.Disconnect();
                }
                
#endregion
                #region BP Check
                //Done
                
if (client.Entity.BattlePower 385)
                {
                    
client.Equipment.Remove(1);
                    
client.Equipment.Remove(2);
                    
client.Equipment.Remove(3);
                    
client.Equipment.Remove(4);
                    
client.Equipment.Remove(5);
                    
client.Equipment.Remove(6);
                    
client.Equipment.Remove(7);
                    
client.Equipment.Remove(8);
                    
client.Equipment.Remove(9);
                    
client.Equipment.Remove(10);
                    
client.Equipment.Remove(11);
                    
client.Equipment.Remove(12);
                    
client.Equipment.Remove(18);
                    
client.Disconnect();

                }
                
#endregion
                #region Second Gears Remove
                //Done
                
client.Equipment.Remove(21); //Alternate_Headgear
                
client.Equipment.Remove(22); //Alternate_Necklace
                
client.Equipment.Remove(23); //Alternate_Armor
                
client.Equipment.Remove(26); //Alternate_Ring
                
client.Equipment.Remove(27); //Alternate_Bottle
                
client.Equipment.Remove(28); //Alternate_Boots
                #endregion







                #region Codes
                //لو عايز الاميل يقفل
                // client.Disconnect();

                //لو عايز تبند الاكونت
                //  client.Account.State = BigBOsProjects.Database.AccountTable.AccountState.Banned;

                #endregion

            
}

            
#endregion 
PacketHandler.cs


search

Html

public static bool IsTwoHand(uint ID
and add this code below

Html

  // حماية للسيرفر
        
public static bool IsAccessory(uint ID)
        {
            return 
ID >= 350001 && ID <= 380015;
        }
        
#region item identity
        //Protect ur items #GoWaNo حماية 
        
public static bool GoWaNoCrop(uint ID)
        {
            return 
ID >= 203003 && ID <= 203009;
        }

        public static 
bool GoWaNoAcess(uint ID)
        {
            return 
ID >= 350001 && ID <= 380015;
        }

        public static 
bool GoWaNoSteed(uint ID)
        {
            return 
ID == 300000;
        }

        public static 
bool GoWaNoGarment(uint ID)
        {
            return 
ID >= 181305 && ID <= 194300;
        }

        public static 
bool GoWaNoMount(uint ID)
        {
            return 
ID >= 200000 && ID <= 200500;
        }
        
#endregion 

GameClient.cs


search for

Html

public Time32 LastPing Time32.Now
and add this code below

Html

public int PingCount 0
PacketHandler.cs

search for

Html

case ItemUsage.Ping

Change

Html

case ItemUsage.Ping
                                    { 
                                        if (
Time32.Now client.LastPing.AddSeconds(9)) 
                                        { 
                                            
client.PingCount++; 
                                            if (
client.PingCount >= 5
                                             
                                            { 
                                                 

                                                
client.Disconnect(); 
                                                return; 
                                            } 
                                        } 



                                        
client.LastPingT client.LastPing
                                        
client.LastPing Time32.Now

                                        if (
client.LastPing client.LastPingT.AddSeconds(100)) 
                                            
client.PingCount 100
                                        
usage.TimeStamp += 40
                                         



                                        
client.Send(usage); 
                                        break; 
                                    } 



المشاركات: 21 [+]
المخالفات: [+]
اشرف شيكا غير متواجد حالياً
اشرف شيكا
( ( عضو جديد ) )
رد: حماية ضد هكر البلص والدمج والسوكت واي اندهاش عايزو
موعد كتابة الموضوع: 07-19-2017 فى تمام الساعة 12:09 PM| رقم المشاركة: 2| من قسم: تطوير سيرفرات كـــونـــكر تـــهيس

طيب ولسورس المصري ؟؟

  إضافة رد

الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء : 0 , والزوار : 1 )
 
أدوات الموضوع
انواع عرض الموضوع