Exemplo n.º 1
0
 public static void GetBatmanBanner(CommandLayer 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("  IM YOUR SUPERHERO     ");
 }
Exemplo n.º 2
0
 public void Can_Construct_CommandLayer()
 {
     using (var ctx = new CommandLayer(this.Options, this.Principal))
     {
         Assert.IsTrue(ctx is object);
     }
 }
Exemplo n.º 3
0
        /// <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(CommandLayer 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;
        }
Exemplo n.º 4
0
        public async Task Can_CreateAndRetrieve_User(string username)
        {
            using (var ctx = new MarbleContext(this.Options))
                using (var cmd = new CommandLayer(ctx, this.Principal))
                    using (var query = new QueryLayer(ctx, this.Principal))
                    {
                        await cmd.CreateUser(username);

                        var user = await query.GetUserAsync(username);

                        Assert.IsTrue(user is object);
                        Assert.IsTrue(user.Username == username);
                        Assert.IsTrue(user.Principal == this.Principal);
                        Assert.IsTrue(user.MarbleAmount == 0m);
                    }
        }
Exemplo n.º 5
0
 public static void GetStarWarsBanner(CommandLayer 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(@"      ________________[_]_[_]_[_]________/_]_[_\_________________________ ");
 }
Exemplo n.º 6
0
 public static void GetDarthVader(CommandLayer command)
 {
     command.WriteLine("         _.-'~~~~~~`-._                               ");
     command.WriteLine("        /      ||      \\                             ");
     command.WriteLine("       /       ||       \\    \"LUKE, 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("          |    `'    |                                ");
 }
Exemplo n.º 7
0
 public static void GetVespino(CommandLayer 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("       `-.__,-'                           `-.__,-'       ");
 }
Exemplo n.º 8
0
        public void OutputColored(CommandLayer 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("");
            }
        }
Exemplo n.º 9
0
        /// <summary>
        /// Check Required Properties
        /// </summary>
        /// <param name="cmd">Command</param>
        /// <param name="error">Variable for capture the error fail</param>
        /// <returns>Return true if OK, false if not</returns>
        public bool CheckRequiredProperties(CommandLayer cmd, out string error)
        {
            error = null;

            if (!CheckRequiredProperties(this, cmd, out error))
            {
                return(false);
            }

            if (this is Module)
            {
                // Module especify
                Module m = (Module)this;

                if (m.Target == null)
                {
                    Target[] t = m.Targets;
                    if (t != null && t.Length > 0)
                    {
                        error = Lang.Get("Require_Set_Property", "Target");
                        return(false);
                    }
                }

                if (m.Payload == null)
                {
                    if (m.PayloadRequirements != null && m.PayloadRequirements.ItsRequired())
                    {
                        error = Lang.Get("Require_Set_Property", "Payload");
                        return(false);
                    }
                }
                else
                {
                    if (!CheckRequiredProperties(m.Payload, cmd, out error))
                    {
                        return(false);
                    }
                }
            }

            return(true);
        }
Exemplo n.º 10
0
        /// <summary>
        /// Prepare the current module
        /// </summary>
        internal void Prepare(CommandLayer io)
        {
            SetIO(io);

            if (Target == null)
            {
                Target[] t = Targets;
                if (t != null && t.Length > 0)
                {
                    Target = t[0];
                }
            }
            if (Payload == null)
            {
                ModuleHeader <Payload> p = PayloadCollection.Current.GetAvailables(PayloadRequirements).FirstOrDefault();
                if (p != null)
                {
                    SetProperty("Payload", p.Current);
                }
            }
        }
Exemplo n.º 11
0
        public async Task Can_CreateAndRetrieve_Group(string groupName)
        {
            using (var ctx = new MarbleContext(this.Options))
                using (var cmd = new CommandLayer(ctx, this.Principal))
                    using (var query = new QueryLayer(ctx, this.Principal))
                    {
                        var username = "******";
                        await cmd.CreateUser(username);

                        var user = await query.GetUserAsync(username);

                        await cmd.CreateGroup(groupName, user.Id);

                        var groupId = ctx.Groups.FirstOrDefault().Id;

                        var group = await query.GetGroupAsync(groupId);

                        Assert.IsTrue(group is object);
                        Assert.IsTrue(group.Name == groupName);
                    }
        }
Exemplo n.º 12
0
        void OnPrompt(CommandLayer 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);
        }
Exemplo n.º 13
0
        /// <summary>
        /// Constructor
        /// </summary>
        public CommandListener(CommandLayer 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[] { "echo" }, cmdEcho, Lang.Get("Man_Echo"));
            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[] { "play" }, cmdPlay, Lang.Get("Man_Play"));
            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[] { "ifcheck" }, cmdIfCheck, Lang.Get("Man_IfCheck"));
            cmd.Add(new string[] { "ifnocheck" }, cmdIfNoCheck, Lang.Get("Man_IfNoCheck"));
            cmd.Add(new string[] { "ifrun" }, cmdIfRun, Lang.Get("Man_IfRun"));
            cmd.Add(new string[] { "ifnorun" }, cmdIfNoRun, Lang.Get("Man_IfNoRun"));
            cmd.Add(new string[] { "record" }, cmdRecord, Lang.Get("Man_Record"));
            cmd.Add(new string[] { "beep" }, cmdBeep, Lang.Get("Man_Beep"));

            _Command = cmd;
        }
Exemplo n.º 14
0
        /// <summary>
        /// Get a Random banner
        /// </summary>
        /// <param name="command">Command</param>
        public static void GetRandomBanner(CommandLayer command)
        {
            Random r = new Random();

            switch (r.Next(8))
            {
            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;

            case 6: GetFwhibbit(command); break;

            default: GetNyanCatBanner(command); break;
            }
        }
Exemplo n.º 15
0
        /// <summary>
        /// Prepare the current module
        /// </summary>
        internal void Prepare(CommandLayer io)
        {
            SetIO(io);

            if (Target == null)
            {
                Target[] t = Targets;
                if (t != null && t.Length > 0)
                {
                    Target = t[0];
                }
            }
            if (Payload == null)
            {
                foreach (ModuleHeader <Payload> p in PayloadCollection.Current.GetAvailables(PayloadRequirements))
                {
                    //Payload = payloads[0];
                    SetProperty("Payload", p.Current);
                    //Payload.SetIO(io);
                    break;
                }
            }
        }
Exemplo n.º 16
0
 public static void GetWolfBanner(CommandLayer 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(" ################  /                                      ; ############### ");
 }
Exemplo n.º 17
0
        public async Task Can_CreateAndDelete_Group()
        {
            using (var ctx = new MarbleContext(this.Options))
                using (var cmd = new CommandLayer(ctx, this.Principal))
                    using (var query = new QueryLayer(ctx, this.Principal))
                    {
                        var username = "******";
                        await cmd.CreateUser(username);

                        var user = await query.GetUserAsync(username);

                        await cmd.CreateGroup("test", user.Id);

                        var groupId = ctx.Groups.FirstOrDefault().Id;

                        await cmd.RemoveGroup(groupId);

                        var actual = await query.GetGroupAsync(groupId);

                        Group expected = null;

                        Assert.AreEqual(actual, expected);
                    }
        }
Exemplo n.º 18
0
        public static void GetFwhibbit(CommandLayer command)
        {
            command.WriteLine("             .--``..---.           ");
            command.WriteLine("         .````--:ohdmNms/`         ");
            command.WriteLine("          -:/+++/-.:smNd+          ");
            command.WriteLine("       ```..--:ohmNNdhh.           ");
            command.WriteLine("     `-. `.``.-+sosshd.         :. ");
            command.WriteLine("   -os--/sosdmmNNMMNy         .+// ");
            command.WriteLine("  :h+.+hNNMMMNNNMMNm/      `/yNN.` ");
            command.WriteLine(" .do/oNNMMMMMmohs+:`    .+hNMMMM-` ");
            command.WriteLine(" `yohNhNNNMh-           dosNMMMmo- ");
            command.WriteLine("  -mN+hMMMy             .smNMNdd/+`");
            command.WriteLine("   yN.hMMh               +NMMNmhds:");
            command.WriteLine("   +N//m+                 .osshyho ");
            command.WriteLine("  ..smhh                           ");
            command.WriteLine("   ::oNmy-                         ");
            command.WriteLine("      .//yhs/:`                    ");
            command.WriteLine("          :ymNN/                   ");
            command.WriteLine("         .-+shdho.                 ");
            command.WriteLine("             `.--..`               ");

            command.WriteLine("");
            command.WriteLine("       Follow the white Rabbit ...");
        }
Exemplo n.º 19
0
 void OnPrompt(CommandLayer sender)
 {
     sender.SetForeColor(_PromptColor);
     sender.Write(PromptCharacter);
     sender.SetForeColor(_ClientColor);
 }
Exemplo n.º 20
0
        static int Main(string[] args)
        {
            // hacer load, reload, probar el global con payload, hacer el listen general con un handler, no cargar exploits sin el load

            // Linq to library assembly
            BuildLink.Dummy();

            // Configure
            //Console.InputEncoding = Encoding.UTF8;
            //Console.OutputEncoding = Encoding.UTF8;
            using (CommandLayer command = new CommandLayer(new ConsoleIO()))
            {
                command.SetBackgroundColor(ConsoleColor.White);
                command.SetBackgroundColor(ConsoleColor.Black);

                command.AddInput("banner");
#if DEBUG
                if (Debugger.IsAttached)
                {
                    command.AddInput("Play Debug.txt");
                }
#endif

                if (GeoLite2LocationProvider.Current == null)
                {
                    /// TODO: Config the default GeoIp
                    if (GeoLite2LocationProvider.LoadCurrent(
                            Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"GeoLite2", "GeoLite2-Blocks-IP.csv.gz"),
                            Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"GeoLite2", "GeoLite2-City-Locations-es.csv.gz")))
                    {
                        command.WriteInfo("Loaded GeoIp", GeoLite2LocationProvider.Current.Count.ToString(), ConsoleColor.Green);
                    }
                }

                // TODO: Fix \"CryptKey=#Crypt0 M3#\" -> broken line whith white space
                // \"CryptKey=#Crypt0M3#\"
                Config cfg = ArgumentHelper.Parse <Config>(args);// ("\"Replay=d:\\temp\\console.txt\" \"Listen={Port=23 CryptKey=#Test# IPFilter={OnlyAllowed=127.0.0.1,172.22.32.51}}\" \"User={UserName=root Password=toor}\"");

                // Run file
                if (!string.IsNullOrEmpty(cfg.Play))
                {
                    try
                    {
                        command.SetForeColor(ConsoleColor.Gray);
                        command.Write(Lang.Get("Reading_File", cfg.Play));

                        foreach (string line in File.ReadAllLines(cfg.Play, Encoding.UTF8))
                        {
                            string ap = line.Trim();
                            if (string.IsNullOrEmpty(ap) || ap.StartsWith("#") || ap.StartsWith("//"))
                            {
                                continue;
                            }
                            command.AddInput(ap);
                        }

                        command.SetForeColor(ConsoleColor.Green);
                        command.WriteLine(Lang.Get("Ok").ToUpperInvariant());
                    }
                    catch
                    {
                        command.SetForeColor(ConsoleColor.Red);
                        command.WriteLine(Lang.Get("Error").ToUpperInvariant());
                    }
                }

                if (cfg.Connect != null)
                {
                    // Connect to server
                    SocketListener client = new SocketListener(cfg.Connect);

                    command.SetForeColor(ConsoleColor.Gray);
                    command.Write(Lang.Get("Connecting_To", client.ToString()));
                    if (client.Start())
                    {
                        command.SetForeColor(ConsoleColor.Green);
                        command.WriteLine(Lang.Get("Ok").ToUpperInvariant());
                    }
                    else
                    {
                        command.SetForeColor(ConsoleColor.Red);
                        command.WriteLine(Lang.Get("Error").ToUpperInvariant());
                    }

                    command.SetForeColor(ConsoleColor.DarkGray);
                    command.WriteLine(Lang.Get("Press_Any_Key"));

                    Console.ReadKey();
                }
                else
                {
                    List <IListener> listeners = new List <IListener>();

                    // Launch socket listener
                    if (cfg.Listen != null)
                    {
                        listeners.Add(new SocketListener(cfg.Listen));
                    }

                    // Run listeners
                    foreach (IListener listener in listeners)
                    {
                        command.SetForeColor(ConsoleColor.Gray);
                        command.Write(Lang.Get("Starting_Listener", listener.ToString()));

                        if (listener.Start())
                        {
                            command.SetForeColor(ConsoleColor.Green);
                            command.WriteLine(Lang.Get("Ok").ToUpperInvariant());
                        }
                        else
                        {
                            command.SetForeColor(ConsoleColor.Red);
                            command.WriteLine(Lang.Get("Error").ToUpperInvariant());
                        }
                    }

                    // Console listener
                    CommandListener cmd = new CommandListener(command);
                    cmd.Start();
                }
            }

            // Wait exit signal
            JobCollection.Current.KillAll();
            return(0);
        }
Exemplo n.º 21
0
        /// <summary>
        /// Check Required Properties
        /// </summary>
        /// <param name="obj">Object to check</param>
        /// <param name="cmd">Command</param>
        /// <param name="error">Variable for capture the error fail</param>
        /// <returns>Return true if OK, false if not</returns>
        public static bool CheckRequiredProperties(object obj, CommandLayer cmd, out string error)
        {
            error = null;
            Type fileInfoType = typeof(FileInfo);
            Type dirInfoType  = typeof(DirectoryInfo);

            foreach (PropertyInfo pi in ReflectionHelper.GetProperties(obj, true, true, true))
            {
                ConfigurableProperty c = pi.GetCustomAttribute <ConfigurableProperty>();
                if (c == null)
                {
                    continue;
                }

                object val = pi.GetValue(obj, null);

                if (val == null)
                {
                    if (c.Optional)
                    {
                        continue;
                    }

                    error = Lang.Get("Require_Set_Property", pi.Name);
                    return(false);
                }
                else
                {
                    if (pi.PropertyType == fileInfoType)
                    {
                        RequireExistsAttribute c2 = pi.GetCustomAttribute <RequireExistsAttribute>();
                        if (c2 != null && !c2.IsValid(val))
                        {
                            error = Lang.Get("File_Defined_Not_Exists", pi.Name);
                            return(false);
                        }
                    }
                    else
                    {
                        if (pi.PropertyType == dirInfoType)
                        {
                            // Check directory
                            DirectoryInfo di = (DirectoryInfo)val;
                            di.Refresh();
                            if (!di.Exists)
                            {
                                if (cmd == null)
                                {
                                    // Por si acaso
                                    error = Lang.Get("Folder_Required", di.FullName);
                                    return(false);
                                }

                                cmd.WriteLine(Lang.Get("Folder_Required_Ask", di.FullName));
                                if (!(bool)ConvertHelper.ConvertTo(cmd.ReadLine(null, null), typeof(bool)))
                                {
                                    error = Lang.Get("Folder_Required", di.FullName);
                                    return(false);
                                }

                                try { di.Create(); }
                                catch (Exception e) { cmd.WriteError(e.ToString()); }
                            }
                        }
                    }
                }
            }

            return(error == null);
        }
Exemplo n.º 22
0
 internal void SetIO(CommandLayer io)
 {
     _IO = io;
 }
Exemplo n.º 23
0
 public ServiceCore(DbContextOptions <MarbleContext> options, string principal)
 {
     this.CommandService = new CommandLayer(options, principal);
     this.QueryService   = new QueryLayer(options, principal);
 }
Exemplo n.º 24
0
 public static void GetSimple1Banner(CommandLayer command)
 {
     command.WriteLine(" |  |   _   |  |   _   _    _ _    _     |_   _     \\/   _   |   _   °  |_ ");
     command.WriteLine(" |/\\|  (/_  |  |  (_  (_)  | | |  (/_    |_  (_)    /\\  |_)  |  (_)  |  |_ ");
     command.WriteLine("                                                        |");
 }
Exemplo n.º 25
0
        public static void GetNyanCatBanner(CommandLayer 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);
        }