Exemplo n.º 1
0
 void Reboot(string address, string password)
 {
     lock(ConnectionLocker)
     {
         try
         {
             var exploit=new WebExploiter(address, password, Logger);
             exploit.EnableBackdoorIfNeeded();
             var fixer=new ProblemFixer(address, 28, password, Logger);
             fixer.Reboot();
             Logger.Log("Rebooted");
         }
         catch (SocketException e)
         {
             Logger.Log("Error: " + e.Message);
             Logger.Log("It appears that the port 28 backdoor is not installed or not working properly!");
         }
         catch(Exception ex)
         {
             Logger.Log("Error: "+ex.Message);
         }
         Logger.Log("Done!");
     }
 }
Exemplo n.º 2
0
        void DumpInfo(string address, string password)
        {
            string output = "";
            lock(ConnectionLocker)
            {
                try
                {
                    var exploit=new WebExploiter(address, password, Logger);
                    exploit.EnableBackdoorIfNeeded();
                    var fixer=new ProblemFixer(address, 28, password, Logger);
                    output=fixer.DumpInfo();

                }
                catch (SocketException e)
                {
                    Logger.Log("Error: " + e.Message);
                    Logger.Log("It appears that the port 28 backdoor is not installed or not working properly!");
                }
                catch(Exception ex)
                {
                    Logger.Log("Error: "+ex.Message);
                }
                Logger.Log("Done!");
                    RunOnUiThread(() =>
                {
                    ConfigText.Text=output;
                });;
            }
        }