예제 #1
0
        public List <OutputInterface> getResult()
        {
            var result = new List <OutputInterface>();

            var installedSoftware = InstalledSoftwareHelper.GetInstalledSoftware();

            var table = new Table();

            table.SetHeaders(new string[] { "Name", "Version", "Install date" });

            var antivirusKeys = new string[] {
                "Microsoft Security Client",
                "AVG",
                "Malwarebytes Anti-Malware_is1",
                "Avast"
            };

            foreach (string antivirusKey in antivirusKeys)
            {
                if (installedSoftware.ContainsKey(antivirusKey))
                {
                    var key = installedSoftware[antivirusKey];
                    table.AddRow(new object[] { key.Name, key.Version, key.InstallDate });
                }
            }
            if (table.RowCount > 0)
            {
                result.Add(table);
            }
            else
            {
                result.Add(new Text("No installed virusscanners or malware protection found"));
            }
            return(result);
        }
예제 #2
0
 public static string TryFindTCC()
 {
     log.Info("Begin checking machine for installed TCC software");
     try
     {
         var software = InstalledSoftwareHelper.GetInstalledSoftware().ToList();
         return(DetermineInstalledTCCVersion(software));
     }
     catch (Exception e)
     {
         log.Error("Failed to scan for installed optional software." + e.Message);
         return(null);
     }
 }
예제 #3
0
        public List <OutputInterface> getResult()
        {
            var result = new List <OutputInterface>();

            var installedSoftware = InstalledSoftwareHelper.GetInstalledSoftware();

            var table = new Table();

            table.SetHeaders(new string[] { "Runtime", "Installed version" });

            var runtimes = new Dictionary <string, string>();

            runtimes.Add("Adobe AIR", "Adobe AIR");
            runtimes.Add("Adobe Shockwave", "Adobe Shockwave Player");
            runtimes.Add("Java 8", "{26A24AE4-039D-4CA4-87B4-2F83218060F0}");

            foreach (var runtime in runtimes)
            {
                if (installedSoftware.ContainsKey(runtime.Value))
                {
                    var key = installedSoftware[runtime.Value];
                    table.AddRow(new object[] { runtime.Key, key.Version });
                }
                else
                {
                    table.AddRow(new object[] { runtime.Key, "None" });
                }
            }

            foreach (var dotnetVersion in RuntimeReport.GetOldDotNetVersions())
            {
                table.AddRow(new object[] { ".NET Framework", dotnetVersion });
            }

            try
            {
                var version = Get45or451FromRegistry();
                table.AddRow(new object[] { ".NET Framework", version });
            }
            catch (Exception ex) { }

            result.Add(table);
            return(result);
        }