Esempio n. 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;
        }
Esempio n. 2
0
 public List<OutputInterface> getResult()
 {
     var result = new List<OutputInterface>();
     var resultTable = new Table();
     resultTable.SetHeaders(new string[]{"Product name", "Key"});
     resultTable.AddRow(new string[] { this.GetOSFriendlyName(), this.GetWindowsProductKey()});
     result.Add(resultTable);
     return result;
 }
Esempio n. 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;
        }