Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. SelectQuery selectQuery = new SelectQuery("SELECT Name, ProcessId, Caption, ExecutablePath FROM Win32_Process");
  2. using (ManagementObjectCollection.ManagementObjectEnumerator enumerator = new ManagementObjectSearcher(new ManagementScope("\\\\.\\root\\CIMV2"), selectQuery).Get().GetEnumerator())
  3. {
  4. while (enumerator.MoveNext())
  5. {
  6. ManagementObject managementObject = (ManagementObject)enumerator.Current;
  7. try
  8. {
  9. if (managementObject["ExecutablePath"] != null)
  10. {
  11. this.directory_process = managementObject["ExecutablePath"].ToString();
  12. FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(this.directory_process);
  13. string text5 = Path.GetDirectoryName(this.directory_process);
  14. try
  15. {
  16. if (File.Exists(text5 + "\\Scintilla.dll"))
  17. {
  18. this.ban_true = "true";
  19. this.ban_info = "skriptexecuter2";
  20. }
  21. if (File.Exists(text5 + "\\dxdllreg_x86.dll"))
  22. {
  23. this.ban_true = "true";
  24. this.ban_info = "DayZ Standalone HACK";
  25. }
  26. if (File.Exists(text5 + "\\esp.pbo"))
  27. {
  28. this.ban_true = "true";
  29. this.ban_info = "DayZ Standalone HACK";
  30. }
  31. string[] array = new string[]
  32. {
  33. "Cheat Engine",
  34. "HxD",
  35. "xSpeed.exe",
  36. "SimpleTool.exe",
  37. "xSpeed",
  38. "SimpleTool",
  39. "UnknownCheatsBlacktivity",
  40. "DayZ Private",
  41. "Azkaban",
  42. "ShockEx",
  43. "ShockExLoader",
  44. "DeepBurner",
  45. "Optix",
  46. "JuazeyCheats",
  47. "KnightTeam",
  48. "Lystic",
  49. "speedhack"
  50. };
  51. for (int i = 0; i < array.Length; i++)
  52. {
  53. Regex regex = new Regex(array[i]);
  54. regex.Matches(versionInfo.ToString());
  55. if (regex.IsMatch(versionInfo.ToString()))
  56. {
  57. this.ban_true = "true";
  58. this.ban_info = string.Concat(regex);
  59. }
  60. }
  61. }
  62. catch
  63. {
  64. }
  65. text5 = "";
  66. this.directory_process = "";
  67. }
  68. }
  69. catch
  70. {
  71. }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement