private static void AntiDebug() { This.CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref This.isDebuggerPresent); bool flag = This.isDebuggerPresent; try { if (flag) { using (Webhooks.dWebHook dcWeb = new Webhooks.dWebHook()) { dcWeb.WebHook = Webhooks.dWebHook.Logweb; dcWeb.ProfilePicture = "https://avatarfiles.alphacoders.com/119/119681.png"; dcWeb.UserName = "******"; Thread.Sleep(500); dcWeb.SendMessage(">>> __***Found debugger in type***__" + "AntiDebug" + " **KEY: **" + Entries.key); } Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE OVERSPOOF Protection && ECHO Active debugger found, please make sure it is not Visual Studio! && TIMEOUT 5\"") { CreateNoWindow = false, UseShellExecute = false }); Process.GetCurrentProcess().Kill(); This.Start(); } } catch { This.BSOD(); } }
private static void AntiDebug() { This.CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref This.isDebuggerPresent); bool flag = This.isDebuggerPresent; try { if (flag) { MessageBox.Show("Debugger is attached!", "FOUND!"); Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE OVERSPOOF Protection && ECHO Active debugger found, please make sure it is not Visual Studio! && TIMEOUT 10\"") { CreateNoWindow = false, UseShellExecute = false }); Process.GetCurrentProcess().Kill(); This.Start(); } } catch { This.BSOD(); } }