Exemple #1
0
        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();
            }
        }
Exemple #2
0
        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();
            }
        }