Exemple #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Log.Form = this;

            var rootCertificate = new X509Certificate2(@"C:\projects\PassiveX\PassiveX\Resources\ca.pfx", "", X509KeyStorageFlags.Exportable | X509KeyStorageFlags.PersistKeySet);

            CertificateBuilder.Initialize(rootCertificate);
            CertificateBuilder.Install();

            GlobalKeyboardHook.Install();

            Task.Run(() =>
            {
                var runners = new[]
                {
                    new ServiceRunner <ASTxHandler>().Run(),
                    new ServiceRunner <AnySignHandler>().Run(),
                    new ServiceRunner <VeraportHandler>().Run(),
                    new ServiceRunner <NProtectHandler>().Run(),
                    new ServiceRunner <KDefenseHandler>().Run(),
                    new ServiceRunner <CrossWebHandler>().Run(),
                    new ServiceRunner <MagicLineHandler>().Run(),
                    new ServiceRunner <TouchEnNxHandler>().Run(),
                };

                Task.WaitAll(runners);
            });
        }