public static void GetBatmanBanner(ICommandLayer command) { command.WriteLine(" |\\_|\\ "); command.WriteLine(" | a_a\\ "); command.WriteLine(" | | \"] "); command.WriteLine(" ____| '-\\___ "); command.WriteLine(" /.----.___.-'\\ "); command.WriteLine(" // _ \\ "); command.WriteLine(" // .-. (~v~) /| "); command.WriteLine(" |'| /\\: .-- / \\ "); command.WriteLine(" // |-/ \\_/____/\\/~| "); command.WriteLine("|/ \\ | []_|_|_] \\ | "); command.WriteLine("| \\ | \\ |___ _\\ ]_} "); command.WriteLine("| | '-' / '.' | "); command.WriteLine("| | / /|: | "); command.WriteLine("| | | / |: /\\ "); command.WriteLine("| | / / | / \\ "); command.WriteLine("| | | / / | \\ "); command.WriteLine("\\ | |/\\/ |/|/\\ \\ "); command.WriteLine(" \\|\\ |\\| | | / /\\/\\__\\"); command.WriteLine(" \\ \\| | / | |__ "); command.WriteLine(" / | |____) "); command.WriteLine(" |_/ "); command.WriteLine(" "); command.WriteLine(" I YOUR SUPERHERO "); }
/// <summary> /// Constructor /// </summary> public CommandListener(ICommandLayer command) { CommandMenu cmd = new CommandMenu(command, this, OnPrompt); _IO = command; cmd.Add(new string[] { "banner" }, cmdBanner, Lang.Get("Man_Banner")); cmd.Add(new string[] { "version" }, cmdVersion, Lang.Get("Man_Version")); cmd.Add(new string[] { "clear", "cls" }, cmdClear, Lang.Get("Man_Clear")); cmd.Add(new string[] { "cd", "cd..", "cd\\", "cd/", "back" }, cmdCD, Lang.Get("Man_Cd")); // Modules command cmd.Add(new string[] { "use" }, cmdUse, Lang.Get("Man_Use")); cmd.Add(new string[] { "show" }, cmdShow, Lang.Get("Man_Show")); cmd.Add(new string[] { "set" }, cmdSet, Lang.Get("Man_Set")); cmd.Add(new string[] { "gset" }, cmdSetG, Lang.Get("Man_Set_Global")); cmd.Add(new string[] { "check" }, cmdCheck, Lang.Get("Man_Check")); cmd.Add(new string[] { "exploit", "run" }, cmdRun, Lang.Get("Man_Run")); cmd.Add(new string[] { "reload" }, cmdReload, Lang.Get("Man_Reload")); cmd.Add(new string[] { "resource" }, cmdResource, Lang.Get("Man_Resource")); cmd.Add(new string[] { "kill" }, cmdKill, Lang.Get("Man_Kill")); cmd.Add(new string[] { "jobs" }, cmdJobs, Lang.Get("Man_Jobs")); cmd.Add(new string[] { "load" }, cmdLoad, Lang.Get("Man_Load")); cmd.Add(new string[] { "rerun", "rexploit" }, cmdReRun, Lang.Get("Man_ReRun")); cmd.Add(new string[] { "rcheck" }, cmdRCheck, Lang.Get("Man_RCheck")); cmd.Add(new string[] { "info" }, cmdInfo, Lang.Get("Man_Info")); cmd.Add(new string[] { "search" }, cmdSearch, Lang.Get("Man_Search")); cmd.Add(new string[] { "ifcheckrun" }, cmdIfCheckRun, Lang.Get("Man_IfCheckRun")); _Command = cmd; }
/// <summary> /// Create a new CMenu. /// <para> /// The menu will initially contain the following commands: /// <list type="bullet"> /// <item>help</item> /// <item>quit</item> /// </list> /// </para> /// </summary> public CommandMenu(ICommandLayer io, IAutoCompleteSource autoCompleteSource, PromptDelegate prompt, string[] selector = null) : base(selector) { _IO = io; _AutoCompleteSource = autoCompleteSource; if (selector == null) { Add(new CommandMenuQuit(this)); Add(new CommandMenuHelp(this)); } PromptCharacter = "> "; Prompt = prompt == null ? OnPrompt : prompt; }
/// <summary> /// Get a Random banner /// </summary> /// <param name="command">Command</param> public static void GetRandomBanner(ICommandLayer command) { Random r = new Random(); switch (r.Next(7)) { case 0: GetStarWarsBanner(command); break; case 1: GetWolfBanner(command); break; case 2: GetSimple1Banner(command); break; case 3: GetBatmanBanner(command); break; case 4: GetDarthVader(command); break; case 5: GetVespino(command); break; default: GetNyanCatBanner(command); break; } }
public static void GetStarWarsBanner(ICommandLayer command) { command.SetForeColor(ConsoleColor.DarkGray); command.WriteLine(@" /~\ "); command.WriteLine(@" |oo ) “I’ve got a very bad "); command.WriteLine(@" _\=/_ feeling about this.” "); command.WriteLine(@" ___ / _ \ "); command.WriteLine(@" / ()\ //|/.\|\\ "); command.WriteLine(@" _|_____|_ || \_/ || "); command.WriteLine(@" | | === | | || |\ /| || "); command.WriteLine(@" |_| O |_| # \_ _/ # "); command.WriteLine(@" || O || | | | "); command.WriteLine(@" ||__*__|| | | | "); command.WriteLine(@" |~ \___/ ~| []|[] "); command.WriteLine(@" /=\ /=\ /=\ | | | "); command.WriteLine(@" ________________[_]_[_]_[_]________/_]_[_\_________________________ "); }
public static void GetDarthVader(ICommandLayer command) { command.WriteLine(" _.-'~~~~~~`-._ "); command.WriteLine(" / || \\ "); command.WriteLine(" / || \\ \"LUCK, IM YOUR FATHER\""); command.WriteLine(" | || | "); command.WriteLine(" | _______||_______ | "); command.WriteLine(" |/ ----- \\/ ----- \\| "); command.WriteLine(" / ( ) ( ) \\ "); command.WriteLine(" / \\ ----- () ----- / \\ "); command.WriteLine(" / \\ /||\\ / \\ "); command.WriteLine(" / \\ /||||\\ / \\ "); command.WriteLine(" / \\ /||||||\\ / \\ "); command.WriteLine("/_ \\o========o/ _\\ "); command.WriteLine(" `--...__|`-._ _.-'|__...--' "); command.WriteLine(" | `' | "); }
public static void GetVespino(ICommandLayer command) { command.WriteLine(" _ "); command.WriteLine(" ,-~ | "); command.WriteLine(" ________________ o==]___| "); command.WriteLine(" | | \\ \\ BE QUICKLY"); command.WriteLine(" |________________| /\\ \\ "); command.WriteLine(" __ / _,-----._ ) | \\ \\. "); command.WriteLine("|_||/_-~ `. /() | /|]_|_____ "); command.WriteLine(" |// \\ | \\/ /_-~ ~-_ "); command.WriteLine(" //________________|| / //___________\\ "); command.WriteLine(" //__|______________| \\____________/ //___/-\\ \\~-_ "); command.WriteLine("((_________________/_-o___________/_//___/ /\\,\\ \\ "); command.WriteLine(" |__/( ((====)o===--~~ ( ( (o/) ) "); command.WriteLine(" \\ ``==' / \\ `--' / "); command.WriteLine(" `-.__,-' `-.__,-' "); }
public void OutputColored(ICommandLayer io) { string separator = Separator; foreach (CommandTableRow row in this) { foreach (CommandTableCol col in row) { io.SetForeColor(col.ForeColor); if (col.Index != 0) { io.Write(separator); } io.Write(col.GetFormatedValue()); } io.WriteLine(""); } }
/// <summary> /// Prepare the current module /// </summary> internal void Prepare(ICommandLayer io) { SetIO(io); if (Target == null) { Target[] t = Targets; if (t != null && t.Length > 0) Target = t[0]; } if (Payload == null) { Payload[] payloads = PayloadCollection.Current.GetPayloadAvailables(PayloadRequirements); if (payloads != null && payloads.Length == 1) { //Payload = payloads[0]; SetProperty("Payload", payloads[0]); //Payload.SetIO(io); } } }
void OnPrompt(ICommandLayer sender) { sender.SetForeColor(ConsoleColor.Green); if (_Current != null) { sender.SetForeColor(ConsoleColor.DarkGreen); sender.Write(Lang.Get(_Current.ModuleType.ToString()) + "("); sender.SetForeColor(ConsoleColor.Green); sender.Write(_Current.Name); sender.SetForeColor(ConsoleColor.DarkGreen); sender.Write(")"); sender.SetForeColor(ConsoleColor.Green); sender.Write("> "); } else { sender.Write("> "); } sender.SetForeColor(ConsoleColor.White); }
/// <summary> /// Prepare the current module /// </summary> internal void Prepare(ICommandLayer io) { SetIO(io); if (Target == null) { Target[] t = Targets; if (t != null && t.Length > 0) { Target = t[0]; } } if (Payload == null) { Payload[] payloads = PayloadCollection.Current.GetPayloadAvailables(PayloadRequirements); if (payloads != null && payloads.Length == 1) { //Payload = payloads[0]; SetProperty("Payload", payloads[0]); //Payload.SetIO(io); } } }
public static void GetWolfBanner(ICommandLayer command) { command.SetForeColor(ConsoleColor.DarkGray); command.WriteLine(" ########################################################################## "); command.WriteLine(" #[ ]######################## "); command.WriteLine(" #[ --- Welcome to XPloit --- ]############ /\" ####### "); command.WriteLine(" #[ ]######## _-`\"\"\"', ##### "); command.WriteLine(" #[ " + DateTime.Now.ToString("yyyy-mm-dd hh:mm:ss") + " ]##### _-\" ) #### "); command.WriteLine(" #[ ]### _-\" | #### "); command.WriteLine(" ################################################## _-\" ; ##### "); command.WriteLine(" ######################################## __---___-\" | ###### "); command.WriteLine(" ##################################### _\" ,, ; `,, ## "); command.WriteLine(" ################################### _-\" ;'' | ,' ; ## "); command.WriteLine(" ################################# _\" ' `\"' ; ## "); command.WriteLine(" ########################## __---; ,' #### "); command.WriteLine(" ####################### __\"\" ___ ,' ###### "); command.WriteLine(" ################### _-\"\" -\"\" _ ,' ######## "); command.WriteLine(" ################## `-_ _ ; ########## "); command.WriteLine(" #################### \"\"----\"\"\" ; ; ########### "); command.WriteLine(" ###################### / ; ; ############ "); command.WriteLine(" #################### / ; ; ############# "); command.WriteLine(" ################## / ` ; ############## "); command.WriteLine(" ################ / ; ############### "); }
internal void SetIO(ICommandLayer io) { _IO = io; }
public static void GetNyanCatBanner(ICommandLayer command) { //1 command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 80)); command.WriteLine(StringHelper.Replicate(" ", 80)); command.WriteLine(StringHelper.Replicate(" ", 80)); //2 command.SetBackgroundColor(ConsoleColor.Red); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 16)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 30)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 24)); //3 command.SetBackgroundColor(ConsoleColor.Red); command.Write(StringHelper.Replicate(" ", 24)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 30)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 22)); //4 command.SetBackgroundColor(ConsoleColor.DarkYellow); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.Red); command.Write(StringHelper.Replicate(" ", 12)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 22)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 20)); //5 command.SetBackgroundColor(ConsoleColor.DarkYellow); command.Write(StringHelper.Replicate(" ", 22)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.DarkMagenta); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 14)); //6 command.SetBackgroundColor(ConsoleColor.DarkYellow); command.Write(StringHelper.Replicate(" ", 22)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.DarkMagenta); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkMagenta); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 12)); //7 command.SetBackgroundColor(ConsoleColor.Yellow); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.DarkYellow); command.Write(StringHelper.Replicate(" ", 12)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 16)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 12)); //8 command.SetBackgroundColor(ConsoleColor.Yellow); command.Write(StringHelper.Replicate(" ", 14)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Yellow); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.DarkMagenta); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 8)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 8)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 12)); //9 command.SetBackgroundColor(ConsoleColor.Yellow); command.Write(StringHelper.Replicate(" ", 12)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Yellow); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 16)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 22)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 12)); //10 command.SetBackgroundColor(ConsoleColor.Green); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.Yellow); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 8)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 14)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 26)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 10)); //11 command.SetBackgroundColor(ConsoleColor.Green); command.Write(StringHelper.Replicate(" ", 14)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 8)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 12)); command.SetBackgroundColor(ConsoleColor.DarkMagenta); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 8)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 10)); //12 command.SetBackgroundColor(ConsoleColor.Green); command.Write(StringHelper.Replicate(" ", 14)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkMagenta); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.Black); //13 command.SetBackgroundColor(ConsoleColor.Cyan); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.Green); command.Write(StringHelper.Replicate(" ", 8)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 14)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 16)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.Black); //14 command.SetBackgroundColor(ConsoleColor.Cyan); command.Write(StringHelper.Replicate(" ", 22)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.DarkMagenta); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 12)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 12)); command.SetBackgroundColor(ConsoleColor.Black); //15 command.SetBackgroundColor(ConsoleColor.DarkCyan); command.Write(StringHelper.Replicate(" ", 10)); command.SetBackgroundColor(ConsoleColor.Cyan); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Cyan); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Magenta); command.Write(StringHelper.Replicate(" ", 14)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 18)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 14)); command.SetBackgroundColor(ConsoleColor.Black); //16 command.SetBackgroundColor(ConsoleColor.DarkCyan); command.Write(StringHelper.Replicate(" ", 16)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 20)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 18)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 16)); command.SetBackgroundColor(ConsoleColor.Black); //17 command.SetBackgroundColor(ConsoleColor.DarkCyan); command.Write(StringHelper.Replicate(" ", 16)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 32)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 20)); //18 //command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 8)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 12)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.DarkGray); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 20)); //19 //command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 16)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 8)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 12)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 4)); command.SetBackgroundColor(ConsoleColor.Black); command.Write(StringHelper.Replicate(" ", 6)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 20)); //20 //command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 16)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 62)); //20 //command.SetBackgroundColor(ConsoleColor.DarkBlue); command.Write(StringHelper.Replicate(" ", 12)); command.SetBackgroundColor(ConsoleColor.White); command.Write(StringHelper.Replicate(" ", 2)); command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 66)); //21 //command.SetBackgroundColor(ConsoleColor.DarkBlue); command.WriteLine(StringHelper.Replicate(" ", 80)); command.SetBackgroundColor(ConsoleColor.Black); }
public static void GetSimple1Banner(ICommandLayer command) { command.WriteLine(" | | _ | | _ _ _ _ _ |_ _ \\/ _ | _ ° |_ "); command.WriteLine(" |/\\| (/_ | | (_ (_) | | | (/_ |_ (_) /\\ |_) | (_) | |_ "); }
void OnPrompt(ICommandLayer sender) { sender.SetForeColor(_PromptColor); sender.Write(PromptCharacter); sender.SetForeColor(_InputColor); }
void OnPrompt(ICommandLayer sender) { sender.SetForeColor(ConsoleColor.Green); if (_Current != null) { sender.SetForeColor(ConsoleColor.DarkGreen); sender.Write(Lang.Get(_Current.ModuleType.ToString()) + "("); sender.SetForeColor(ConsoleColor.Green); sender.Write(_Current.Name); sender.SetForeColor(ConsoleColor.DarkGreen); sender.Write(")"); sender.SetForeColor(ConsoleColor.Green); sender.Write("> "); } else sender.Write("> "); sender.SetForeColor(ConsoleColor.White); }