Esempio n. 1
0
        static void Main(string[] args)
        {
            DisplayUtil.PrintBanner();

            var parser = new Parser(with =>
            {
                with.CaseInsensitiveEnumValues = true;
                with.CaseSensitive             = false;
                with.HelpWriter = null;
            });

            parser.ParseArguments <Options>(args).WithParsed(o => { Options.Instance = o; }).WithNotParsed(error => { });
            parser.Dispose();

            var options = Options.Instance;

            if (options == null)
            {
                Options.GetHelp(); return;
            }

            Logging.LoadLoggingConfig(options.Debug);

            if (options.Username != null)
            {
                Impersonation.RunAs(options.Domain, options.Username, options.Password, () =>
                {
                    ChooseOption(options);
                });
            }
            else
            {
                ChooseOption(options);
            }


            DisplayUtil.Done();
        }
Esempio n. 2
0
 public void DisplayTitle(string Title)
 {
     DisplayUtil.Print(string.Format("\n[-] {0}:\n", Title), PrintColor.GREEN);
 }