示例#1
0
        private void DGV_HttpFindings_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                int currentIndex = this.dgv_Findings.CurrentCell.RowIndex;

                this.Config.HostApplication.LogMessage($"{this.Config.PluginName}: currentIndex:{currentIndex}");

                var requestData = this.dgv_Findings.Rows[currentIndex].Cells["Data"].Value.ToString();
                requestData = Regex.Replace(requestData, @"\.\.", "\r\n");

                var requestForm = new ShowRequest(requestData, this.tb_HostRegex.Text, this.tb_PathRegex.Text, this.tb_DataRegex.Text);
                requestForm.ShowDialog();
            }
            catch (Exception ex)
            {
                this.Config.HostApplication.LogMessage($"{this.Config.PluginName}: {ex.Message}");
            }
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DGV_HttpRequests_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                var tmpHosts     = new BindingList <HttpRequests>();
                int currentIndex = this.dgv_HttpRequests.CurrentCell.RowIndex;

                this.pluginProperties.HostApplication.LogMessage($"{this.Config.PluginName}: currentIndex:{currentIndex}");
                string request = this.dgv_HttpRequests.Rows[currentIndex].Cells["Request"].Value.ToString();

                request = Regex.Replace(request, @"\.\.", "\r\n");
                var requestDetails = new ShowRequest(request);
                requestDetails.ShowDialog();
            }
            catch (Exception ex)
            {
                this.pluginProperties.HostApplication.LogMessage($"{this.Config.PluginName}: {ex.Message}");
            }
        }