Example #1
0
        public static SystemInfo Collect()
        {
            var osBuild = SystemInfoHelpers.GetOSBuildNumber();

            var cpuAddrWidth = SystemInfoHelpers.GetCPUArchitecutre();

            var procIntPtr = SystemInfoHelpers.GetProcessArchitecture();

            var winPath = SystemInfoHelpers.GetWinPath(cpuAddrWidth, procIntPtr);

            var cpuCount = SystemInfoHelpers.GetProcessorCoreCount();

            return(new SystemInfo(osBuild, cpuAddrWidth, procIntPtr, winPath, cpuCount));
        }
Example #2
0
        public static void Main(string[] args)
        {
            Info.PrintLogo();

            var sysInfo = SystemInfo.Collect();

            SystemInfoHelpers.PrintInfo(sysInfo);

            Console.WriteLine();

            // let the fun begin

            var vulnerabilities = new VulnerabilityCollection();

            // ntoskrnl.exe
            NtoskrnlExe.Check(vulnerabilities, sysInfo);

            // win32k.sys
            Win32kSys.Check(vulnerabilities, sysInfo);

            // winsrv.dll
            WinsrvDll.Check(vulnerabilities, sysInfo);

            // afd.sys
            AfdSys.Check(vulnerabilities, sysInfo);

            // schedsvc.dll
            SchedsvcDll.Check(vulnerabilities, sysInfo);

            // seclogon.dll
            SeclogonDll.Check(vulnerabilities, sysInfo);

            // mrxdav.sys
            MrxdavSys.Check(vulnerabilities, sysInfo);

            // rpcrt4.dll
            Rpcrt4Dll.Check(vulnerabilities, sysInfo);

            // atmfd.dll
            AtmfdDll.Check(vulnerabilities, sysInfo);

            // winload.exe
            WinloadExe.Check(vulnerabilities, sysInfo);

            // win32kfull.sys
            Win32kfullSys.Check(vulnerabilities, sysInfo);

            // gdi32.dll
            Gdi32Dll.Check(vulnerabilities, sysInfo);

            // gdiplus.dll
            GdiplusDll.Check(vulnerabilities, sysInfo);

            // gpprefcl.dll
            GpprefclDll.Check(vulnerabilities, sysInfo);

            // pcadm.dll
            PcadmDll.Check(vulnerabilities, sysInfo);

            // coremessaging.dll
            CoremessagingDll.Check(vulnerabilities, sysInfo);

            // and we're done... print results
            vulnerabilities.ShowResults();
        }