private static void OutputInjectedThreadToConsole(InjectedThread injectedThread, bool verbose) { string format = "{0,-32} : {1}"; if (verbose) { OutputMessageToConsole(LogLevel.Success, $"Found injected thread"); injectedThread.OutputToConsole(); } else { OutputMessageToConsole(LogLevel.Success, "Found injected thread"); Console.WriteLine(format, "Process", injectedThread.ProcessName); Console.WriteLine(format, "Process ID", injectedThread.ProcessID); Console.WriteLine(format, "Thread ID", injectedThread.ThreadId); Console.WriteLine(); } }
private static void OutputInjectedThreadToConsole(InjectedThread injectedThread, bool verbose) { string format = "{0,-32} : {1}"; if (verbose) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine($"Found injected thread"); Console.ResetColor(); injectedThread.OutputToConsole(); } else { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine($"Found injected thread"); Console.ResetColor(); Console.WriteLine(format, "Process", injectedThread.ProcessName); Console.WriteLine(format, "Process ID", injectedThread.ProcessID); Console.WriteLine(format, "Thread ID", injectedThread.ThreadId); Console.WriteLine(); } }