Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. public static class WindowsDetection
  2. {
  3. [DllImport("user32.dll", SetLastError = true)]
  4. public static extern int FindWindow(string lpClassName, string lpWindowName);
  5. 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" };
  6.  
  7. //WindowsName Protect
  8. public static readonly bool WNP
  9. {
  10. get
  11. {
  12. foreach (string x in prog)
  13. {
  14. Thread.Sleep(300);
  15. int hwnd = FindWindow(null, x);
  16. if (hwnd >= 1) { return true; }
  17. }
  18. return false;
  19. }
  20. }
  21.  
  22. //Secondary WindowsName Protect
  23. public static readonly bool SWNP
  24. {
  25. get
  26. {
  27. Process[] ProcList = Process.GetProcesses();
  28. foreach (Process xProcess in ProcList)
  29. {
  30. foreach (string x in prog)
  31. {
  32. Thread.Sleep(300);
  33. if (xProcess.ProcessName.Contains(x)) { return true; }
  34. }
  35. }
  36. return false;
  37. }
  38. }
  39.  
  40. //MainTitleName Protect
  41. public static readonly bool MTNP
  42. {
  43. get
  44. {
  45. Process[] ProcList = Process.GetProcesses();
  46. foreach (Process xProcess in ProcList)
  47. {
  48. foreach (string x in prog)
  49. {
  50. Thread.Sleep(300);
  51. if (xProcess.MainWindowTitle.Contains(x)) { return true; }
  52. }
  53. }
  54. return false;
  55. }
  56. }
  57. }
  58. ===================================================================================
  59. while (true)
  60. {
  61. Thread.Sleep(1000);
  62. if (WindowsDetection.WNP == true || WindowsDetection.SWNP == true || WindowsDetection.MTNP == true)
  63. {
  64. foreach(Process yProcess in Process.GetProcesses()){
  65. if(yProcess.MainWindowTitle == "The duel"){yProcess.Close();
  66. Process.GetCurrentProcess().Close();}}
  67. }
  68. }
  69. ===================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement