Exemple #1
0
 // Token: 0x06000186 RID: 390 RVA: 0x0000BF0C File Offset: 0x0000A10C
 public static void ScanAndKill()
 {
     if (AntiDebug.Scan(true) != 0)
     {
         AntiDebug.badExit();
     }
 }
Exemple #2
0
        // Token: 0x06000189 RID: 393 RVA: 0x0000BF9C File Offset: 0x0000A19C
        private static int Scan(bool KillProcess)
        {
            int result = 0;

            if (AntiDebug.Process_Pidor_List.Count == 0 && AntiDebug.Window_Pidor_List.Count == 0)
            {
                AntiDebug.Init();
            }
            foreach (Process process in Process.GetProcesses())
            {
                if (AntiDebug.Process_Pidor_List.Contains(process.ProcessName) || AntiDebug.Window_Pidor_List.Contains(process.MainWindowTitle))
                {
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.WriteLine("Найден чмошник: " + process.ProcessName);
                    result = 1;
                    if (KillProcess)
                    {
                        try
                        {
                            process.Kill();
                        }
                        catch
                        {
                        }
                    }
                    if (Program.debugExit)
                    {
                        break;
                    }
                }
            }
            return(result);
        }
Exemple #3
0
 // Token: 0x06000185 RID: 389 RVA: 0x0000BED8 File Offset: 0x0000A0D8
 public static void StartAn()
 {
     for (;;)
     {
         AntiDebug.ScanAndKill();
         if (DebugProtect1.PerformChecks() == 1)
         {
             AntiDebug.badExit();
         }
         if (DebugProtect2.PerformChecks() == 1)
         {
             AntiDebug.badExit();
         }
         Thread.Sleep(1000);
     }
 }