mirror of
https://github.com/rasta-mouse/ThreatCheck
synced 2026-06-08 17:01:57 +00:00
02752a5541
Uplift to C#12 and improve overall code quality
36 lines
894 B
C#
36 lines
894 B
C#
using System;
|
|
|
|
namespace ThreatCheck;
|
|
|
|
internal abstract class CustomConsole
|
|
{
|
|
public static void WriteOutput(string output)
|
|
{
|
|
Console.ForegroundColor = ConsoleColor.Green;
|
|
Console.Out.WriteLine($"[+] {output}");
|
|
Console.ResetColor();
|
|
}
|
|
|
|
public static void WriteError(string error)
|
|
{
|
|
Console.ForegroundColor = ConsoleColor.Red;
|
|
Console.Error.WriteLine($"[x] {error}");
|
|
Console.ResetColor();
|
|
}
|
|
|
|
public static void WriteDebug(string debug)
|
|
{
|
|
Console.ForegroundColor = ConsoleColor.Yellow;
|
|
Console.Out.WriteLine($"[*] {debug}");
|
|
Console.ResetColor();
|
|
}
|
|
|
|
public static void WriteThreat(string threat)
|
|
{
|
|
var msg = string.Format($"[!] {threat}");
|
|
|
|
Console.ForegroundColor = ConsoleColor.Red;
|
|
Console.Out.WriteLine(msg);
|
|
Console.ResetColor();
|
|
}
|
|
} |