// Token: 0x06000071 RID: 113 RVA: 0x0000BC5C File Offset: 0x0000BC5C
        public static void ScanAndKill()
        {
            bool flag = Vegie_s_Scanner.Scan(true) != 0;

            if (flag)
            {
                Environment.FailFast("MY C**k HURTS! - Vegie");
            }
        }
        // Token: 0x06000072 RID: 114 RVA: 0x0000BC84 File Offset: 0x0000BC84
        private static int Scan(bool KillProcess)
        {
            int  result = 0;
            bool flag   = Vegie_s_Scanner.BadProcessnameList.Count == 0 && Vegie_s_Scanner.BadWindowTextList.Count == 0;

            if (flag)
            {
                Vegie_s_Scanner.Init();
            }
            Process[] processes = Process.GetProcesses();
            foreach (Process process in processes)
            {
                bool flag2 = Vegie_s_Scanner.BadProcessnameList.Contains(process.ProcessName) || Vegie_s_Scanner.BadWindowTextList.Contains(process.MainWindowTitle);
                if (flag2)
                {
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.Write("BAD PROCESS FOUND: " + process.ProcessName);
                    result = 1;
                    if (KillProcess)
                    {
                        try
                        {
                            process.Kill();
                        }
                        catch (Win32Exception ex)
                        {
                            Console.ForegroundColor = ConsoleColor.Red;
                            Console.Write("Win32Exception: " + ex.Message);
                        }
                        catch (NotSupportedException ex2)
                        {
                            Console.ForegroundColor = ConsoleColor.Red;
                            Console.Write("NotSupportedException: " + ex2.Message);
                        }
                        catch (InvalidOperationException ex3)
                        {
                            Console.ForegroundColor = ConsoleColor.Red;
                            Console.Write("InvalidOperationException: " + ex3.Message);
                        }
                    }
                    break;
                }
            }
            return(result);
        }
Ejemplo n.º 3
0
        private static void Main()
        {
            bool flag = Process.GetProcessesByName("Kraken").Length != 0;

            if (flag)
            {
                foreach (Process process in Process.GetProcessesByName("Kraken"))
                {
                    process.Kill();
                }
                bool flag2 = !Environment.Is64BitOperatingSystem;
                if (flag2)
                {
                    MessageBox.Show("Warning, your system is running in a 32 bit platform. Kraken was designed to run on 64 bit platforms. If you experience problems, you may contact support but we do not guarantee a solution.", "Vegie is senpai :3");
                }
                Application.SetCompatibleTextRenderingDefault(false);
                bool flag3 = !Vegie_s_Dependency_Checker.IsInstalled(RedistributablePackageVersion.VC2015x86);
                if (flag3)
                {
                    bool flag4 = !Vegie_s_Dependency_Checker.IsInstalled(RedistributablePackageVersion.VC2017x86);
                    if (flag4)
                    {
                        bool flag5 = !Vegie_s_Dependency_Checker.IsInstalled(RedistributablePackageVersion.VC2015to2019x86);
                        if (flag5)
                        {
                            MessageBox.Show("Kraken is missing a dependency, Please install VCRedist X86 - 2015, 2017, or 2019", "Vegie's Dependency Checker");
                            Application.Exit();
                        }
                    }
                }
                bool flag6 = !File.Exists("discord-rpc-w32.dll");
                if (flag6)
                {
                    MessageBox.Show("Missing discord-rpc-w32.dll!", "Vegie Is Senpai :3");
                }
                else
                {
                    try
                    {
                        Vegie_s_Scanner.ScanAndKill();
                    }
                    catch
                    {
                        Console.WriteLine("Security!, Krakens's Scanner Failed!");
                        Vegie_s_Functions.KillProcess(AppDomain.CurrentDomain.FriendlyName.Replace(".exe", ""));
                    }
                    Vegie_s_RPC vegie_s_RPC = new Vegie_s_RPC();
                    vegie_s_RPC.Initialize("704520720218325106");
                    vegie_s_RPC.UpdatePresence("Running AntiTamper...", "Exploiting With Kraken");
                    Program.LoadConfig();
                    try
                    {
                        File.Delete("start.bat");
                    }
                    catch
                    {
                    }
                }
            }
            else
            {
                MessageBox.Show("Please start Kraken via Kraken Bootstrapper.", "Vegie is senpai :3");
            }
        }