Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("[[디지털 서명 검사 테스트]]");
            var verifier = new AuthenticodeVerifier.AuthenticodeVerifier();

            //verifier.LoadTarget(@"C:\temp\dbk32.sys");
            //Console.WriteLine(verifier.Verify());
            //verifier.CertificateInfo.PrintInfo();
            //verifier.CounterCertificateInfo.PrintInfo();

            verifier.LoadTarget(@"C:\temp\msvcr110.dll");
            Console.WriteLine(verifier.Verify());
            Console.WriteLine(verifier.GetResult());
            verifier.CertificateInfo.PrintInfo();
            verifier.CounterCertificateInfo.PrintInfo();

            //verifier.LoadTarget(@"C:\temp\siegfried.exe");
            //Console.WriteLine(verifier.Verify());
            //verifier.CertificateInfo.PrintInfo();
            //verifier.CounterCertificateInfo.PrintInfo();

            //verifier.LoadTarget(@"C:\temp\COMDLG32.OCX");
            //Console.WriteLine(verifier.Verify());
            //verifier.CertificateInfo.PrintInfo();
            //verifier.CounterCertificateInfo.PrintInfo();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("[[디지털 서명 검사 테스트]]");
            var verifier = new AuthenticodeVerifier.AuthenticodeVerifier();

            //verifier.LoadTarget(@"C:\temp\dbk32.sys");
            //Console.WriteLine(verifier.Verify());
            //verifier.CertificateInfo.PrintInfo();
            //verifier.CounterCertificateInfo.PrintInfo();

            verifier.LoadTarget(@"C:\temp\msvcr110.dll");
            Console.WriteLine(verifier.Verify());
            Console.WriteLine(verifier.GetResult());
            verifier.CertificateInfo.PrintInfo();
            verifier.CounterCertificateInfo.PrintInfo();

            //verifier.LoadTarget(@"C:\temp\siegfried.exe");
            //Console.WriteLine(verifier.Verify());
            //verifier.CertificateInfo.PrintInfo();
            //verifier.CounterCertificateInfo.PrintInfo();

            //verifier.LoadTarget(@"C:\temp\COMDLG32.OCX");
            //Console.WriteLine(verifier.Verify());
            //verifier.CertificateInfo.PrintInfo();
            //verifier.CounterCertificateInfo.PrintInfo();
        }