Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class WindowsDetection
- {
- [DllImport("user32.dll", SetLastError = true)]
- public static extern int FindWindow(string lpClassName, string lpWindowName);
- static string[] prog = { "Olly", "Dbg", "hack", "h4ck", "hax", "Hack", "HACK", "H4CK", "massive", "MASSIVE", "lawnmower", "LAWNMOWER", "god", "GOD", "G0D", "g0d", "God", "Ghost", "ghost", "gh0st", "speed", "Speed", "Sp33d", "sp33d", "dll", "DLL", "OneWhoSign", "OWS", "ThevingSix", "thevingsix", "t6", "theving6", "AnĂ´nimo", "anĂ´nimo", "Wizkid", "WizKid", "wizkid", "WIZKID", "Evilness", "evilness", "bytes4bread", "thesupermax", "bypass", "Bypass", "BYPASS", "Cipher", "Sulfin", "sulfin", "SULFIN", "Thanu21", "lone222", "WaffleByte", "hmhax", "Xeffar", "Mafiacoders", "mafiacoders", "Injec", "injec", "Hook", "hook", "Pserv", "pserv" };
- //WindowsName Protect
- public static readonly bool WNP
- {
- get
- {
- foreach (string x in prog)
- {
- Thread.Sleep(300);
- int hwnd = FindWindow(null, x);
- if (hwnd >= 1) { return true; }
- }
- return false;
- }
- }
- //Secondary WindowsName Protect
- public static readonly bool SWNP
- {
- get
- {
- Process[] ProcList = Process.GetProcesses();
- foreach (Process xProcess in ProcList)
- {
- foreach (string x in prog)
- {
- Thread.Sleep(300);
- if (xProcess.ProcessName.Contains(x)) { return true; }
- }
- }
- return false;
- }
- }
- //MainTitleName Protect
- public static readonly bool MTNP
- {
- get
- {
- Process[] ProcList = Process.GetProcesses();
- foreach (Process xProcess in ProcList)
- {
- foreach (string x in prog)
- {
- Thread.Sleep(300);
- if (xProcess.MainWindowTitle.Contains(x)) { return true; }
- }
- }
- return false;
- }
- }
- }
- ===================================================================================
- while (true)
- {
- Thread.Sleep(1000);
- if (WindowsDetection.WNP == true || WindowsDetection.SWNP == true || WindowsDetection.MTNP == true)
- {
- foreach(Process yProcess in Process.GetProcesses()){
- if(yProcess.MainWindowTitle == "The duel"){yProcess.Close();
- Process.GetCurrentProcess().Close();}}
- }
- }
- ===================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement