Пример #1
0
        public static void getTables(string url)
        {
            string[] Tables = getObjects(url, QueriesDB.TableStackedQuery, QueriesDB.Replacement);

            if (Tables != null)
            {
                dropTempTable(url, QueriesDB.DropTableStackedQuery, QueriesDB.Replacement);

                var Choice = -1;

                while (Choice != 0)
                {
                    Console.Clear();

                    Log.showObjects(Tables, "TABLE");

                    Choice = UserInteraction.showMenuForIntChoice("Press 0 to EXIT..\nPress Corresponding Key to dump TABLE ");

                    if (Choice > 0 && Choice <= Tables.Length)
                    {
                        var UserSelectedTable = Tables[Choice - 1];
                        getColumns(url, UserSelectedTable);
                    }
                }
            }
            Tables = null;
        }
Пример #2
0
        static void Main(string[] args)
        {
            QueriesDB.initialize();

            UserInteraction.showBanner();

            string basicURL = null;

            while (basicURL != "x")
            {
                basicURL = null;
                Log.logNotification("Press 'x' for exit..");

                UserInteraction.promptForUserInput("Enter url");
                basicURL = Console.ReadLine();

                Exploitation.initialize(basicURL);


                if (basicURL != "x" && !String.IsNullOrEmpty(basicURL))
                {
                    int Choice = -1;

                    while (Choice != 0)
                    {
                        Choice = UserInteraction.showMenuForIntChoice("Press '0' for Exit..\nPress '1' for directory navigation..\nPress '2' for dumping data.." +
                                                                      "\nPress '3' for files reading..\nPress '4' for shell uploading..");

                        if (Choice == 1)
                        {
                            DirListing.initialize(basicURL);
                        }
                        else if (Choice == 2)
                        {
                            DumpData.initialize(basicURL);
                        }
                        else if (Choice == 3)
                        {
                            ReadFile.Read(basicURL);
                        }
                        else if (Choice == 4)
                        {
                            ShellSpawning.Spawn(basicURL);
                        }
                    }
                }
            }

            Log.logOutput("Program is going to exit.. Press any key..");
            Console.ReadKey();
        }