Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- };
- foreach (Process process in Process.GetProcesses())
- {
- if (process != Process.GetCurrentProcess())
- {
- for (int j = 0; j < array.Length; j++)
- {
- if (process.ProcessName.ToLower().Contains(array[j]))
- {
- Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE Pizza Protection && ECHO " + array[j] + " Detected! && TIMEOUT 10\"")
- {
- CreateNoWindow = true,
- UseShellExecute = false
- });
- Directory.CreateDirectory("C:\\ProgramData\\Pizza");
- File.Create("C:\\ProgramData\\Pizza\\" + array[j]);
- process.Kill();
- Process.GetCurrentProcess().Kill();
- }
- if (process.MainWindowTitle.ToLower().Contains(array[j]))
- {
- Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE Pizza Protection && ECHO " + array[j] + " Detected! && TIMEOUT 10\"")
- {
- CreateNoWindow = true,
- UseShellExecute = false
- });
- process.Kill();
- Process.GetCurrentProcess().Kill();
- }
- if (process.ProcessName.Contains(array2[j]))
- {
- Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE Pizza Protection && ECHO " + array2[j] + " Detected! && TIMEOUT 10\"")
- {
- CreateNoWindow = true,
- UseShellExecute = false
- });
- Directory.CreateDirectory("C:\\ProgramData\\Pizza");
- File.Create("C:\\ProgramData\\Pizza\\" + array2[j]);
- process.Kill();
- Process.GetCurrentProcess().Kill();
- }
- if (process.MainWindowTitle.Contains(array2[j]))
- {
- Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE Pizza Protection && ECHO " + array2[j] + " Detected! && TIMEOUT 10\"")
- {
- CreateNoWindow = true,
- UseShellExecute = false
- });
- Directory.CreateDirectory("C:\\ProgramData\\Pizza");
- File.Create("C:\\ProgramData\\Pizza\\" + array2[j]);
- process.Kill();
- Process.GetCurrentProcess().Kill();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement