예제 #1
0
        protected override void Collect()
        {
            var dh = new DataHolder("Operating System");
              dh.dataPairs.Add("Machine name", System.Environment.MachineName);
              dh.dataPairs.Add("Full name", OSCollectorHelper.GetOSFullNameFormatted());
              dh.dataPairs.Add("Root directory", OSCollectorHelper.GetOSRootDir());
              // If VuGen is not installed product version will be 0.0
              //if (ProductDetection.Vugen.version >= new Version(11, 04) && ProductDetection.Vugen.version <= new Version(12, 01))
              //  dh.dataPairs.Add("Is OS supported?", OSCollectorHelper.IsOSSupportedInfo());
              dh.dataPairs.Add("Language", OSCollectorHelper.language);
              dh.dataPairs.Add("Locale", OSCollectorHelper.GetOSLocaleInfo());
              dh.dataPairs.Add("Is OS Virtualized?", OSCollectorHelper.IsOSVirtualizedInfo());
              dh.dataPairs.Add("Is 3GB switch enabled?", OSCollectorHelper.Is3GBSwitchEnabled());
              dh.dataPairs.Add("Data Execution Prevention", OSCollectorHelper.DepInfo());
              dh.dataPairs.Add("User Account Control", OSCollectorHelper.UACInfo());
              dh.dataPairs.Add("Is user Admin?", Html.BoolToYesNo(OSCollectorHelper.IsUserInAdminGroup()));
              dh.dataPairs.Add("Is user connected remotely?", Html.BoolToYesNo(SystemInformation.TerminalServerSession));
              dh.dataPairs.Add("Is Windows firewall enabled?", OSCollectorHelper.IsWindowsFirewallEnabled());
              dh.dataPairs.Add("Is secondary logon enabled?", OSCollectorHelper.IsSecondaryLogonEnabledInfo());

              dataHolders.Add(dh);

              dh = new DataHolder("Environment information");
              dh.dataPairs.Add("System environment variables", Html.AddLinkToHiddenContent(OSCollectorHelper.GetEnvVariables()));
              dh.dataPairs.Add("User environment variables", Html.AddLinkToHiddenContent(OSCollectorHelper.GetUsrEnvVariables()));
              dh.dataPairs.Add("Kerberos configuration", OSCollectorHelper.GetKerberosConfiguration());
              var lsp = Html.B(OSCollectorHelper.GetNumberOfInstalledLSPs() + " entries found ") + Html.AddLinkToHiddenContent(OSCollectorHelper.GetInstalledLSPs());
              dh.dataPairs.Add("Layered Service Providers", lsp);
              dh.dataPairs.Add("AppInit_DLLs registry value", OSCollectorHelper.GetAppInitDLLsInfo());

              //LoadAppInit_DLLs registry is only availbale in Windows 7 and later
              if (Environment.OSVersion.Version >=  new Version(6, 1))
            dh.dataPairs.Add("LoadAppInit_DLLs registry value", OSCollectorHelper.GetLoadAppInitDLLsInfo());
              dataHolders.Add(dh);
        }
예제 #2
0
        protected override void Collect()
        {
            var dh = new DataHolder("Hardware Information");
              dh.dataPairs.Add("CPU", OSCollectorHelper.GetProcessorNameString());
              dh.dataPairs.Add("Processor Count", Environment.ProcessorCount.ToString());
              dh.dataPairs.Add("Total Memory", OSCollectorHelper.GetMemoryInfo());
              dh.dataPairs.Add("Hard Drives", OSCollectorHelper.GetHardDrivesInformation());
              dh.dataPairs.Add("Monitor information", OSCollectorHelper.GetMonitorsInfo());
              //IPCONFIG /ALL
              if (FormArguments.network || FormArguments.details >= 3)
              {
            dh.dataPairs.Add("Network cards & IPs", OSCollectorHelper.GetNetworkCardsInfo());
            dh.dataPairs.Add("Output of 'ipconfig /all' command", Html.AddLinkToHiddenContent(Html.Pre(OSCollectorHelper.IpConfig())));
              }

              dataHolders.Add(dh);
        }
예제 #3
0
        protected override void Collect()
        {
            var dh = new DataHolder("Hardware Information");

            dh.dataPairs.Add("CPU", OSCollectorHelper.GetProcessorNameString());
            dh.dataPairs.Add("Processor Count", Environment.ProcessorCount.ToString());
            dh.dataPairs.Add("Total Memory", OSCollectorHelper.GetMemoryInfo());
            dh.dataPairs.Add("Hard Drives", OSCollectorHelper.GetHardDrivesInformation());
            dh.dataPairs.Add("Monitor information", OSCollectorHelper.GetMonitorsInfo());
            //IPCONFIG /ALL
            if (FormArguments.network || FormArguments.details >= 3)
            {
                dh.dataPairs.Add("Network cards & IPs", OSCollectorHelper.GetNetworkCardsInfo());
                dh.dataPairs.Add("Output of 'ipconfig /all' command", Html.AddLinkToHiddenContent(Html.Pre(OSCollectorHelper.IpConfig())));
            }

            dataHolders.Add(dh);
        }
예제 #4
0
        /// <summary>
        /// Add data pair to the data holder with this title.
        /// Create the data holder if there is it does not exists
        /// </summary>
        /// <param name="title">Title of the data holder boject</param>
        /// <param name="subject"></param>
        /// <param name="value"></param>
        protected void AddDataPair(string title, string subject, string value)
        {
            // Move the progress bar
            OnRaiseProgressUpdate();

            //Check if DataHolder with this title exists
            var dh = dataHolders.Find(d => d.title.ToLower().Equals(title.ToLower()));

            //If it does, then add subject, value to current data pairs
            if (dh != null)
            {
                dh.dataPairs.Add(subject, value);
            }
            else // if not, then create a new data holder object and add it to the data holders collection
            {
                dh = new DataHolder(title);
                dh.dataPairs.Add(subject, value);
                dataHolders.Add(dh);
            }
        }
예제 #5
0
        protected override void Collect()
        {
            var dh = new DataHolder("Operating System");

            dh.dataPairs.Add("Machine name", System.Environment.MachineName);
            dh.dataPairs.Add("Full name", OSCollectorHelper.GetOSFullNameFormatted());
            dh.dataPairs.Add("Root directory", OSCollectorHelper.GetOSRootDir());
            // If VuGen is not installed product version will be 0.0
            //if (ProductDetection.Vugen.version >= new Version(11, 04) && ProductDetection.Vugen.version <= new Version(12, 01))
            //  dh.dataPairs.Add("Is OS supported?", OSCollectorHelper.IsOSSupportedInfo());
            dh.dataPairs.Add("Language", OSCollectorHelper.language);
            dh.dataPairs.Add("Locale", OSCollectorHelper.GetOSLocaleInfo());
            dh.dataPairs.Add("Is OS Virtualized?", OSCollectorHelper.IsOSVirtualizedInfo());
            dh.dataPairs.Add("Is 3GB switch enabled?", OSCollectorHelper.Is3GBSwitchEnabled());
            dh.dataPairs.Add("Data Execution Prevention", OSCollectorHelper.DepInfo());
            dh.dataPairs.Add("User Account Control", OSCollectorHelper.UACInfo());
            dh.dataPairs.Add("Is user Admin?", Html.BoolToYesNo(OSCollectorHelper.IsUserInAdminGroup()));
            dh.dataPairs.Add("Is user connected remotely?", Html.BoolToYesNo(SystemInformation.TerminalServerSession));
            dh.dataPairs.Add("Is Windows firewall enabled?", OSCollectorHelper.IsWindowsFirewallEnabled());
            dh.dataPairs.Add("Is secondary logon enabled?", OSCollectorHelper.IsSecondaryLogonEnabledInfo());

            dataHolders.Add(dh);

            dh = new DataHolder("Environment information");
            dh.dataPairs.Add("System environment variables", Html.AddLinkToHiddenContent(OSCollectorHelper.GetEnvVariables()));
            dh.dataPairs.Add("User environment variables", Html.AddLinkToHiddenContent(OSCollectorHelper.GetUsrEnvVariables()));
            dh.dataPairs.Add("Kerberos configuration", OSCollectorHelper.GetKerberosConfiguration());
            var lsp = Html.B(OSCollectorHelper.GetNumberOfInstalledLSPs() + " entries found ") + Html.AddLinkToHiddenContent(OSCollectorHelper.GetInstalledLSPs());

            dh.dataPairs.Add("Layered Service Providers", lsp);
            dh.dataPairs.Add("AppInit_DLLs registry value", OSCollectorHelper.GetAppInitDLLsInfo());

            //LoadAppInit_DLLs registry is only availbale in Windows 7 and later
            if (Environment.OSVersion.Version >= new Version(6, 1))
            {
                dh.dataPairs.Add("LoadAppInit_DLLs registry value", OSCollectorHelper.GetLoadAppInitDLLsInfo());
            }
            dataHolders.Add(dh);
        }
예제 #6
0
        /// <summary>
        /// Add data pair to the data holder with this title.
        /// Create the data holder if there is it does not exists
        /// </summary>
        /// <param name="title">Title of the data holder boject</param>
        /// <param name="subject"></param>
        /// <param name="value"></param>
        protected void AddDataPair(string title, string subject, string value)
        {
            // Move the progress bar
              OnRaiseProgressUpdate();

              //Check if DataHolder with this title exists
              var dh = dataHolders.Find(d => d.title.ToLower().Equals(title.ToLower()));

              //If it does, then add subject, value to current data pairs
              if (dh != null)
            dh.dataPairs.Add(subject, value);
              else // if not, then create a new data holder object and add it to the data holders collection
              {
            dh = new DataHolder(title);
            dh.dataPairs.Add(subject, value);
            dataHolders.Add(dh);
              }
        }