public static string GetIsSiebelCorrelationEnabledInfo()
            {
                StringBuilder output = new StringBuilder();

                //TODO load correlations xml only once
                //use the VugenProtocols.CorrelationRulesEnabledInfo
                try
                {
                    if (ProductDetection.Vugen.IsInstalled)
                    {
                        var  rule       = CorrelationRules.GetRuleByName("AutoDetect_Siebel_Parse_Page", "Siebel");
                        bool ruleExists = (rule != null && rule.callbackName == "flCorrelationCallbackParseWebPage");

                        output.Append("Is 'Siebel' group of rules enabled? " + CorrelationRules.IsGroupEnabledText("Siebel") + Html.br);
                        output.Append(@"Is WebSiebel77Correlation.cor applied? " + Html.BoolToYesNo(ruleExists) + Html.br);
                        output.Append("Is WebSiebelSpanningRules.cor applied? " + CorrelationRules.IsGroupEnabledText("Siebel_Spanning") + Html.br);
                        return(output.ToString());
                    }
                    else
                    {
                        return("Vurtual user generator is not installed");
                    }
                }
                catch (Exception ex)
                {
                    Logger.Error(ex.ToString());
                    return(Html.ErrorMsg());
                }
            }
Beispiel #2
0
        protected override void Collect()
        {
            string title = "Correlation";

            AddDataPair(title, "Rules support", ProductDetection.Vugen.correlationRulesSupport);
            //check for ignored content only on versions > 11.50
            if (ProductDetection.Vugen.isNew)
            {
                AddDataPair(title, "Ignored content types", ProductDetection.Vugen.correlationIgnoredContent);
            }
            AddDataPair(title, "Rules", CorrelationRules.GetListOfRulesText());
            AddDataPair(title, CorrelationRules.settingsFileName + " content", Html.AddLinkToHiddenContent(CorrelationRules.GetRawContent()));


            //BBHOOK vesrion
            title = "Files";
            AddDataPair(title, "Bbhook version", ProductDetection.Vugen.bbhookVersion);
            //AddStringsToDictionary("Miscellaneous registry settings", "Registry keys", importantRegKeys.ToString());

            var iniContent = IniParser.ToHtml(Path.Combine(ProductDetection.Vugen.ConfigFolder, "vugen.ini"));

            AddDataPair(title, "vugen.ini content", Html.AddLinkToHiddenContent(iniContent));

            title = "Log Files";
            AddDataPair(title, "Registration failures", Html.AddLinkToHiddenContent(Helper.GetRegistraionFailuresContent()));

            if (ProductDetection.Vugen.isNew)
            {
                //TODO see how fast we parse 10MB log file
                int    lines           = 50;
                string vugenLogContent = Helper.GetLastLinesFromFile(2048 * 1024, System.IO.Path.GetTempPath() + "HP.LR.VuGen.log", lines);
                AddDataPair(title, "Last " + lines + " lines of HP.LR.VuGen.Log", Html.AddLinkToHiddenContent(vugenLogContent));
            }
        }
Beispiel #3
0
        protected override void Collect()
        {
            var ro = new DetectRecordingOptions();

            base.OnRaiseProgressUpdate();

            var title = "WEB (HTTP/HTML)";

            AddDataPair(title, "Last used recording options", "User " + Html.B(Environment.UserName) + "  " + Html.AddLinkToHiddenContent(ro.ToString(), true));

            if (ProductDetection.Vugen.isNew)
            {
                title = "TruClient IE";
                AddDataPair(title, "Is enabled?", VugenProtocolsCollectorHelper.TruClientIE.IsEnabled());
                AddDataPair(title, "RRE version", VugenProtocolsCollectorHelper.TruClientIE.GetTCIEVersion());
                AddDataPair(title, "General > Browser settings", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientIE.GetGeneralBrowserSettings()));
                AddDataPair(title, "General > Interactive options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientIE.GetInteractiveOptions()));
            }

            if (ProductDetection.Vugen.version > new Version("11.00"))
            {
                title = "TruClient Firefox";
                AddDataPair(title, "Firefox version", VugenProtocolsCollectorHelper.TruClientFF.GetFirefoxVersion());
                AddDataPair(title, "General > Browser settings", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientFF.GetBrowserSettings()));
                AddDataPair(title, "General > Interactive options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientFF.GetInteractiveOptions()));
                if (ProductDetection.Vugen.version >= new Version("11.50"))
                {
                    AddDataPair(title, "Lists DACLs", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientFF.GetUrlAclInfo()));
                }
            }

            //TODO test on 11
            title = "Java protocols";
            AddDataPair(title, "Classpath", VugenProtocolsCollectorHelper.Java.GetJavaIniOption("Java_Env_ClassPath"));
            AddDataPair(title, "VM Params", VugenProtocolsCollectorHelper.Java.GetJavaIniOption("Java_VM_Params"));
            AddDataPair(title, "Use VM params during replay?", VugenProtocolsCollectorHelper.Java.GetJavaIniBoolOption("Java_SaveParams"));
            AddDataPair(title, "Use classic Java", VugenProtocolsCollectorHelper.Java.GetJavaIniBoolOption("Java_Classic"));
            AddDataPair(title, "Prepend classpath to -Xbootclasspath", VugenProtocolsCollectorHelper.Java.GetJavaIniBoolOption("Java_Prepend_Classpath"));

            title = "Citrix";
            var ctrxClient = new CitrixHelper.Client();

            AddDataPair(title, "Is Citrix client installed?", ctrxClient.GetCitrixClientInfo());
            //if (citrixClient.isInstalled)
            //  AddDataPair(title, "Is client version supported?", citrixClient.GetClientVersionSupportedInfo());
            AddDataPair(title, "Is Citrix registry patch installed?", ctrxClient.GetCitrixRegistryPatchInfo());
            AddDataPair(title, "Recording options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.Citrix.GetCitrixRecOptions()));
            AddDataPair(title, "Citrix_XenApp correlation rules enabled?", CorrelationRules.IsGroupEnabledText("Citrix_XenApp"));

            title = "Dot Net";
            AddDataPair(title, "Recording options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.DotNet.GetDotNetRecOptions()));
            AddDataPair(title, "Filters", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.DotNet.GetDotNetFilters()));

            title = "RDP";
            AddDataPair(title, "RDP client version", DetectOtherSoftware.GetRDPClientVersion());
            AddDataPair(title, "RDP recording options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.Rdp.GetRdpRecOptions()));

            title = "FLEX, AMF";
            AddDataPair(title, "Recording options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.FlexAmf.GetFlexRoInfo()));
            AddDataPair(title, "Other settings", VugenProtocolsCollectorHelper.FlexAmf.GetFlexInfo());
            AddDataPair(title, "Flex correlation rules enabled?", CorrelationRules.IsGroupEnabledText("Flex"));

            title = "Siebel Web";
            AddDataPair(title, "Is Siebel correlation library used?", VugenProtocolsCollectorHelper.SiebelWeb.GetSiebelDllVersionInfo());
            AddDataPair(title, "Correlation rules", VugenProtocolsCollectorHelper.SiebelWeb.GetIsSiebelCorrelationEnabledInfo());
        }