Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. };
  2. foreach (Process process in Process.GetProcesses())
  3. {
  4. if (process != Process.GetCurrentProcess())
  5. {
  6. for (int j = 0; j < array.Length; j++)
  7. {
  8. if (process.ProcessName.ToLower().Contains(array[j]))
  9. {
  10. Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE Pizza Protection && ECHO " + array[j] + " Detected! && TIMEOUT 10\"")
  11. {
  12. CreateNoWindow = true,
  13. UseShellExecute = false
  14. });
  15. Directory.CreateDirectory("C:\\ProgramData\\Pizza");
  16. File.Create("C:\\ProgramData\\Pizza\\" + array[j]);
  17. process.Kill();
  18. Process.GetCurrentProcess().Kill();
  19. }
  20. if (process.MainWindowTitle.ToLower().Contains(array[j]))
  21. {
  22. Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE Pizza Protection && ECHO " + array[j] + " Detected! && TIMEOUT 10\"")
  23. {
  24. CreateNoWindow = true,
  25. UseShellExecute = false
  26. });
  27. process.Kill();
  28. Process.GetCurrentProcess().Kill();
  29. }
  30. if (process.ProcessName.Contains(array2[j]))
  31. {
  32. Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE Pizza Protection && ECHO " + array2[j] + " Detected! && TIMEOUT 10\"")
  33. {
  34. CreateNoWindow = true,
  35. UseShellExecute = false
  36. });
  37. Directory.CreateDirectory("C:\\ProgramData\\Pizza");
  38. File.Create("C:\\ProgramData\\Pizza\\" + array2[j]);
  39. process.Kill();
  40. Process.GetCurrentProcess().Kill();
  41. }
  42. if (process.MainWindowTitle.Contains(array2[j]))
  43. {
  44. Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE Pizza Protection && ECHO " + array2[j] + " Detected! && TIMEOUT 10\"")
  45. {
  46. CreateNoWindow = true,
  47. UseShellExecute = false
  48. });
  49. Directory.CreateDirectory("C:\\ProgramData\\Pizza");
  50. File.Create("C:\\ProgramData\\Pizza\\" + array2[j]);
  51. process.Kill();
  52. Process.GetCurrentProcess().Kill();
  53. }
  54. }
  55. }
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement