Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SelectQuery selectQuery = new SelectQuery("SELECT Name, ProcessId, Caption, ExecutablePath FROM Win32_Process");
- using (ManagementObjectCollection.ManagementObjectEnumerator enumerator = new ManagementObjectSearcher(new ManagementScope("\\\\.\\root\\CIMV2"), selectQuery).Get().GetEnumerator())
- {
- while (enumerator.MoveNext())
- {
- ManagementObject managementObject = (ManagementObject)enumerator.Current;
- try
- {
- if (managementObject["ExecutablePath"] != null)
- {
- this.directory_process = managementObject["ExecutablePath"].ToString();
- FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(this.directory_process);
- string text5 = Path.GetDirectoryName(this.directory_process);
- try
- {
- if (File.Exists(text5 + "\\Scintilla.dll"))
- {
- this.ban_true = "true";
- this.ban_info = "skriptexecuter2";
- }
- if (File.Exists(text5 + "\\dxdllreg_x86.dll"))
- {
- this.ban_true = "true";
- this.ban_info = "DayZ Standalone HACK";
- }
- if (File.Exists(text5 + "\\esp.pbo"))
- {
- this.ban_true = "true";
- this.ban_info = "DayZ Standalone HACK";
- }
- string[] array = new string[]
- {
- "Cheat Engine",
- "HxD",
- "xSpeed.exe",
- "SimpleTool.exe",
- "xSpeed",
- "SimpleTool",
- "UnknownCheatsBlacktivity",
- "DayZ Private",
- "Azkaban",
- "ShockEx",
- "ShockExLoader",
- "DeepBurner",
- "Optix",
- "JuazeyCheats",
- "KnightTeam",
- "Lystic",
- "speedhack"
- };
- for (int i = 0; i < array.Length; i++)
- {
- Regex regex = new Regex(array[i]);
- regex.Matches(versionInfo.ToString());
- if (regex.IsMatch(versionInfo.ToString()))
- {
- this.ban_true = "true";
- this.ban_info = string.Concat(regex);
- }
- }
- }
- catch
- {
- }
- text5 = "";
- this.directory_process = "";
- }
- }
- catch
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement