Example #1
0
        void SetAnalysisUiResults(ScanTraceBehaviourAnalysisResultsUiInformation UiResults)
        {
            if (this.PayloadEffectTabs.InvokeRequired)
            {
                SetAnalysisUiResults_d CALL_d = new SetAnalysisUiResults_d(SetAnalysisUiResults);
                this.PayloadEffectTabs.Invoke(CALL_d, new object[] { UiResults });
            }
            else
            {
                StringBuilder SB = new StringBuilder(@"{\rtf1{\colortbl ;\red0\green77\blue187;\red247\green150\blue70;\red255\green0\blue0;\red0\green200\blue50;\red255\green255\blue255;}");
                SB.Append(Tools.RtfSafe(UiResults.SummaryText));

                this.SummaryRTB.Rtf = SB.ToString();

                if (UiResults.CodeGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["CodeTab"].Text = "  Code Variation  ";
                    foreach (object[] Row in UiResults.CodeGridRows)
                    {
                        this.CodeGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["CodeTab"].Text = "  -  ";
                }
                if (UiResults.TimeGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["TimeTab"].Text = "  Time Variation  ";
                    foreach (object[] Row in UiResults.TimeGridRows)
                    {
                        this.RoundtripGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["TimeTab"].Text = "  -  ";
                }
                if (UiResults.KeywordGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["KeywordsTab"].Text = "  Keywords Inserted  ";
                    foreach (object[] Row in UiResults.KeywordGridRows)
                    {
                        this.KeywordsGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["KeywordsTab"].Text = "  -  ";
                }
                if (UiResults.BodyGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["BodyTab"].Text = "  Body Variation  ";
                    foreach (object[] Row in UiResults.BodyGridRows)
                    {
                        this.BodyGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["BodyTab"].Text = "  -  ";
                }
                if (UiResults.SetCookieGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["SetCookieTab"].Text = "  Set-Cookie Variations  ";
                    foreach (object[] Row in UiResults.SetCookieGridRows)
                    {
                        this.SetCookieGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["SetCookieTab"].Text = "  -  ";
                }
                if (UiResults.HeadersGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["HeadersTab"].Text = "  Headers Variation  ";
                    foreach (object[] Row in UiResults.HeadersGridRows)
                    {
                        this.HeadersGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["HeadersTab"].Text = "  -  ";
                }
                this.AnalysisProgressBar.Visible = false;
                this.PayloadEffectTabs.Visible = true;
            }
        }
Example #2
0
        void SetAnalysisUiResults(ScanTraceBehaviourAnalysisResultsUiInformation UiResults)
        {
            if (this.PayloadEffectTabs.InvokeRequired)
            {
                SetAnalysisUiResults_d CALL_d = new SetAnalysisUiResults_d(SetAnalysisUiResults);
                this.PayloadEffectTabs.Invoke(CALL_d, new object[] { UiResults });
            }
            else
            {
                StringBuilder SB = new StringBuilder(@"{\rtf1{\colortbl ;\red0\green77\blue187;\red247\green150\blue70;\red255\green0\blue0;\red0\green200\blue50;\red255\green255\blue255;}");
                SB.Append(Tools.RtfSafe(UiResults.SummaryText));

                this.SummaryRTB.Rtf = SB.ToString();

                if (UiResults.CodeGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["CodeTab"].Text = "  Code Variation  ";
                    foreach (object[] Row in UiResults.CodeGridRows)
                    {
                        this.CodeGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["CodeTab"].Text = "  -  ";
                }
                if (UiResults.TimeGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["TimeTab"].Text = "  Time Variation  ";
                    foreach (object[] Row in UiResults.TimeGridRows)
                    {
                        this.RoundtripGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["TimeTab"].Text = "  -  ";
                }
                if (UiResults.KeywordGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["KeywordsTab"].Text = "  Keywords Inserted  ";
                    foreach (object[] Row in UiResults.KeywordGridRows)
                    {
                        this.KeywordsGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["KeywordsTab"].Text = "  -  ";
                }
                if (UiResults.BodyGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["BodyTab"].Text = "  Body Variation  ";
                    foreach (object[] Row in UiResults.BodyGridRows)
                    {
                        this.BodyGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["BodyTab"].Text = "  -  ";
                }
                if (UiResults.SetCookieGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["SetCookieTab"].Text = "  Set-Cookie Variations  ";
                    foreach (object[] Row in UiResults.SetCookieGridRows)
                    {
                        this.SetCookieGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["SetCookieTab"].Text = "  -  ";
                }
                if (UiResults.HeadersGridRows.Count > 0)
                {
                    this.PayloadEffectTabs.TabPages["HeadersTab"].Text = "  Headers Variation  ";
                    foreach (object[] Row in UiResults.HeadersGridRows)
                    {
                        this.HeadersGrid.Rows.Add(Row);
                    }
                }
                else
                {
                    this.PayloadEffectTabs.TabPages["HeadersTab"].Text = "  -  ";
                }
                this.AnalysisProgressBar.Visible = false;
                this.PayloadEffectTabs.Visible   = true;
            }
        }