Example #1
0
 // Token: 0x060000C6 RID: 198 RVA: 0x00008E3C File Offset: 0x00008E3C
 public static void AddENB(string File)
 {
     Globals.DLLFile item = default(Globals.DLLFile);
     item.Name = File.Split(new char[]
     {
         '|'
     })[0];
     item.Hash = File.Split(new char[]
     {
         '|'
     })[1];
     item.Size = Convert.ToInt64(File.Split(new char[]
     {
         '|'
     })[2]);
     Globals.Enbs.Add(item);
 }
Example #2
0
        // Token: 0x060000A1 RID: 161 RVA: 0x0000762C File Offset: 0x0000762C
        public int hilekontrol()
        {
            Functions.< > c__DisplayClass40_0 CS$ < > 8__locals1 = new Functions.< > c__DisplayClass40_0();
            CS$ < > 8__locals1.< > 4__this = this;
            string text = Registry.CurrentUser.OpenSubKey("SOFTWARE").OpenSubKey("SAMP").GetValue("gta_sa_exe").ToString();

            text = text.Replace("\\gta_sa.exe", "");
            if (!this.g_oyun.Equals(text))
            {
                Functions.GameClose();
                MessageBoxWrapper.Show("Oyun yolu açığı tespit edildiği için oyun ve client kapatılıyor!\n\nA: " + this.g_oyun + "\nB: " + text, "Rina Anti-Cheat");
            }
            Directory.GetDirectories(this.g_oyun);
            string[] files = Directory.GetFiles(this.g_oyun);
            this.cleoboyutu = 0L;
            this.toplamhile = 0;
            this.hileler    = "";
            string[] array;
            if (Directory.Exists(this.g_oyun + "\\cleo"))
            {
                Directory.GetDirectories(this.g_oyun + "\\cleo");
                array = Directory.GetFiles(this.g_oyun + "\\cleo");
                for (int i = 0; i < array.Length; i++)
                {
                    FileInfo fileInfo = new FileInfo(array[i]);
                    new Functions();
                    this.cleoboyutu += fileInfo.Length;
                    long   length = fileInfo.Length;
                    string name   = fileInfo.Name;
                    string text2  = Path.GetExtension(this.g_oyun + "\\cleo\\" + name);
                    text2 = text2.ToUpper(new CultureInfo("en-US", false));
                    if (!text2.Contains(".TXT") && !text2.Contains(".FXT") && !text2.Contains(".DLL") && !text2.Contains(".INI") && Common.CleoControl(name, length) == 1)
                    {
                        this.hileler = this.hileler + name + "\n";
                        this.toplamhile++;
                    }
                }
                if (this.toplamhile > 0)
                {
                    Functions.GameClose();
                    MessageBoxWrapper.Show("İzinsiz CLEO bulundu.\n\n" + this.hileler + "\nGTA-SA'nın kurulu olduğu klasör içerisinde bulunan CLEO dosyasından bu cleoları silerek sorunu çözebilirsiniz.", "Rina Anti-Cheat");
                    return(1);
                }
            }
            string[] array2 = new string[]
            {
                "ANTTWEAKBAR.DLL",
                "SQLITE3.DLL",
                "DSOUND.DLL",
                "SAMPFUNCS.ASI",
                "ZMENU_HUDCOLOR.INI",
                "MOONLOADER.ASI",
                "M0D_S0BEIT_SA.INI",
                "MOD_SA.INI",
                "SPEEDO.PNG",
                "NEEDLE.PNG",
                "S0BEIT_ATHLON.INI"
            };
            array = files;
            for (int i = 0; i < array.Length; i++)
            {
                FileInfo fileInfo2 = new FileInfo(array[i]);
                string   name2     = fileInfo2.Name;
                string   fullName  = fileInfo2.FullName;
                long     length2   = fileInfo2.Length;
                if (!(name2 == "Thumbs.db") && !(name2 == "cleo.log"))
                {
                    if (name2.Contains(".asi"))
                    {
                        long length3 = new FileInfo(this.g_oyun + "\\" + name2).Length;
                        if (!Common.IsAcceptedAsi(Common.GetHash(this.g_oyun + "\\" + name2), length3))
                        {
                            this.hileler = this.hileler + name2 + "\n";
                            this.toplamhile++;
                        }
                    }
                    if (name2.ToUpper(new CultureInfo("en-US", false)) == "D3D9.DLL")
                    {
                        int  num     = 0;
                        long length4 = new FileInfo(this.g_oyun + "\\" + name2).Length;
                        using (List <Globals.DLLFile> .Enumerator enumerator = Globals.Enbs.GetEnumerator())
                        {
                            while (enumerator.MoveNext())
                            {
                                Globals.DLLFile dllfile = enumerator.Current;
                                if (length4 == dllfile.Size && Common.GetHash(this.g_oyun + "\\" + name2) == dllfile.Hash)
                                {
                                    num = 1;
                                    break;
                                }
                            }
                            goto IL_441;
                        }
                        goto IL_3E1;
IL_441:
                        if (num == 0)
                        {
                            Functions.GameClose();
                            MessageBoxWrapper.Show("İzinsiz D3D9.dll bulundu.\n\nGTA-SA'nın kurulu olduğu klasör içerisinde bulunan D3D9.dll dosyasını silerek sorunu çözebilirsiniz.", "Rina Anti-Cheat");
                            return(1);
                        }
                    }
IL_3E1:
                    for (int j = 0; j < array2.Length; j++)
                    {
                        if (name2.ToUpper(new CultureInfo("en-US", false)) == array2[j])
                        {
                            this.hileler = this.hileler + name2 + "\n";
                            this.toplamhile++;
                        }
                    }
                }
            }
            if (Directory.Exists(this.g_oyun + "\\mod_sa"))
            {
                this.hileler += "mod_sa\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\moonloader"))
            {
                this.hileler += "moonloader\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\EliteModSa"))
            {
                this.hileler += "EliteModSa\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\Sobreit 0.3DL"))
            {
                this.hileler += "Sobreit 0.3DL\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\OverLight Custom"))
            {
                this.hileler += "OverLight Custom\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\OverLight"))
            {
                this.hileler += "OverLight\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\Sobreit"))
            {
                this.hileler += "Sobreit\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\Menyoo"))
            {
                this.hileler += "Menyoo\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\OverLight_Mod"))
            {
                this.hileler += "OverLight_Mod\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\glance_mod"))
            {
                this.hileler += "glance_mod\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\RedEclipseMod"))
            {
                this.hileler += "RedEclipseMod\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\StealingData"))
            {
                this.hileler += "StealingData\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\BlueEclipseMod"))
            {
                this.hileler += "BlueEclipseMod\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\CustomSAA2"))
            {
                this.hileler += "CustomSAA2\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\LiquidMod"))
            {
                this.hileler += "LiquidMod\n";
                this.toplamhile++;
            }
            if (Directory.Exists(this.g_oyun + "\\H3X"))
            {
                this.hileler += "H3X\n";
                this.toplamhile++;
            }
            CS$ < > 8__locals1.extensions = new string[]
            {
                "cs",
                "CS",
                "CT",
                "cleo",
                "CLEO",
                "ct",
                "scm",
                "SCM",
                "cm",
                "CM",
                "COL",
                "col"
            };
            if (Directory.Exists(this.g_oyun + "\\modloader"))
            {
                Functions.< > c__DisplayClass40_1 CS$ < > 8__locals2 = new Functions.< > c__DisplayClass40_1();
                CS$ < > 8__locals2.CS$ < > 8__locals1 = CS$ < > 8__locals1;
                (from f in Directory.GetFiles(this.g_oyun + "\\modloader", "*.*")
                 where CS$ < > 8__locals2.CS$ < > 8__locals1.extensions.Contains(f.Split(new char[]
                {
                    '.'
                }).Last <string>().ToLower())
                 select f).ToArray <string>();
                this.izinsizmod = 0;
                CS$ < > 8__locals2.CS$ < > 8__locals1.method_0(this.g_oyun + "\\modloader", 0);
                for (int k = 0; k < 1; k++)
                {
                    string[] directories = Directory.GetDirectories(this.g_oyun + "\\modloader");
                    for (int l = 0; l < directories.Length; l++)
                    {
                        CS$ < > 8__locals2.CS$ < > 8__locals1.method_0(directories[l], 1);
                    }
                    if (this.izinsizmod != 0)
                    {
                        Functions.GameClose();
                        MessageBoxWrapper.Show("Modloader içine CLEO ve COL dosyaları koyamazsınız! (Tespit edilen: " + this.izinsizmod + " adet CLEO / COL)", "Rina Anti-Cheat");
                        return(1);
                    }
                }
                int    num2 = 0;
                string str  = "";
                CS$ < > 8__locals2.extensions2 = new string[]
                {
                    "ASI",
                    "asi"
                };
                (from f in Directory.GetFiles(this.g_oyun + "\\modloader", "*.*")
                 where CS$ < > 8__locals2.extensions2.Contains(f.Split(new char[]
                {
                    '.'
                }).Last <string>().ToLower())
                 select f).ToArray <string>();
                this.izinsizmod = 0;
                CS$ < > 8__locals2.method_0(this.g_oyun + "\\modloader", 0);
                for (int m = 0; m < 1; m++)
                {
                    string[] directories2 = Directory.GetDirectories(this.g_oyun + "\\modloader");
                    for (int n = 0; n < directories2.Length; n++)
                    {
                        CS$ < > 8__locals2.method_0(directories2[n], 1);
                    }
                    if (num2 != 0)
                    {
                        Functions.GameClose();
                        MessageBoxWrapper.Show("İzinsiz ASI bulundu.\n\n" + str + "\nGTA-SA'nın kurulu olduğu klasör içerisinde bulunan MODLOADER dosyasından bu asileri silerek sorunu çözebilirsiniz.", "Rina Anti-Cheat");
                        Application.Exit();
                        return(1);
                    }
                }
            }
            if (Directory.Exists(this.g_oyun + "\\scripts"))
            {
                Functions.< > c__DisplayClass40_2 CS$ < > 8__locals3 = new Functions.< > c__DisplayClass40_2();
                CS$ < > 8__locals3.scriptsasi  = 0;
                CS$ < > 8__locals3.extensions3 = new string[]
                {
                    "ASI",
                    "asi"
                };
                (from f in Directory.GetFiles(this.g_oyun + "\\scripts", "*.*")
                 where CS$ < > 8__locals3.extensions3.Contains(f.Split(new char[]
                {
                    '.'
                }).Last <string>().ToLower())
                 select f).ToArray <string>();
                this.izinsizmod = 0;
                CS$ < > 8__locals3.method_0(this.g_oyun + "\\scripts", 0);
                for (int num3 = 0; num3 < 1; num3++)
                {
                    string[] directories3 = Directory.GetDirectories(this.g_oyun + "\\scripts");
                    for (int num4 = 0; num4 < directories3.Length; num4++)
                    {
                        CS$ < > 8__locals3.method_0(directories3[num4], 1);
                    }
                    if (CS$ < > 8__locals3.scriptsasi != 0)
                    {
                        Functions.GameClose();
                        MessageBoxWrapper.Show("SCRIPTS klasörü içerisine ASI koyamazsınız! (Tespit edilen: " + CS$ < > 8__locals3.scriptsasi + " adet ASI)", "Rina Anti-Cheat");
                        return(1);
                    }
                }
            }
            if (Directory.Exists(this.g_oyun + "\\modloader"))
            {
                Functions.< > c__DisplayClass40_3 CS$ < > 8__locals4 = new Functions.< > c__DisplayClass40_3();
                CS$ < > 8__locals4.extensions4 = new string[]
                {
                    "DLL",
                    "dll"
                };
                CS$ < > 8__locals4.yasakli_bulundu = 0;
                (from f in Directory.GetFiles(this.g_oyun + "\\modloader", "*.*")
                 where CS$ < > 8__locals4.extensions4.Contains(f.Split(new char[]
                {
                    '.'
                }).Last <string>().ToLower())
                 select f).ToArray <string>();
                CS$ < > 8__locals4.method_0(this.g_oyun + "\\modloader", 0);
                for (int num5 = 0; num5 < 1; num5++)
                {
                    string[] directories4 = Directory.GetDirectories(this.g_oyun + "\\modloader");
                    for (int num6 = 0; num6 < directories4.Length; num6++)
                    {
                        CS$ < > 8__locals4.method_0(directories4[num6], 1);
                    }
                    if (CS$ < > 8__locals4.yasakli_bulundu != 0)
                    {
                        Functions.GameClose();
                        MessageBoxWrapper.Show("MODLOADER klasörü içerisine yasaklı DLL (D3D9 / D3D2) koyamazsınız! (Tespit edilen: " + CS$ < > 8__locals4.yasakli_bulundu + " adet yasaklı DLL)", "Rina Anti-Cheat");
                        return(1);
                    }
                }
            }
            if (this.toplamhile > 0)
            {
                Functions.GameClose();
                MessageBoxWrapper.Show(string.Concat(new object[]
                {
                    "Hile bulundu!\n\n",
                    this.hileler,
                    "\nToplam hile: ",
                    this.toplamhile
                }), "Rina Anti-Cheat");
            }
            return(this.toplamhile);
        }