예제 #1
0
파일: MainForm.cs 프로젝트: devunt/PassiveX
        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);
            });
        }