示例#1
0
文件: Main.cs 项目: herotheo/IronWASP
 //private void ASRequestScanURLGrid_CellClick(object sender, DataGridViewCellEventArgs e)
 //{
 //    if (ASRequestScanURLGrid.SelectedCells.Count < 1 || ASRequestScanURLGrid.SelectedCells[0].Value == null)
 //    {
 //        return;
 //    }
 //    if ((bool)this.ASRequestScanURLGrid.SelectedCells[0].Value)
 //    {
 //        this.ASRequestScanURLGrid.SelectedCells[0].Value = false;
 //        this.ASRequestScanAllCB.Checked = false;
 //        this.ASRequestScanURLCB.Checked = false;
 //    }
 //    else
 //    {
 //        this.ASRequestScanURLGrid.SelectedCells[0].Value = true;
 //    }
 //}
 //private void ASRequestScanQueryGrid_CellClick(object sender, DataGridViewCellEventArgs e)
 //{
 //    if (ASRequestScanQueryGrid.SelectedCells.Count < 1 || ASRequestScanQueryGrid.SelectedCells[0].Value == null)
 //    {
 //        return;
 //    }
 //    if ((bool)this.ASRequestScanQueryGrid.SelectedCells[0].Value)
 //    {
 //        this.ASRequestScanQueryGrid.SelectedCells[0].Value = false;
 //        this.ASRequestScanAllCB.Checked = false;
 //        this.ASRequestScanQueryCB.Checked = false;
 //    }
 //    else
 //    {
 //        this.ASRequestScanQueryGrid.SelectedCells[0].Value = true;
 //    }
 //}
 //private void ASRequestScanBodyGrid_CellClick(object sender, DataGridViewCellEventArgs e)
 //{
 //    if (ConfigureScanRequestBodyTypeFormatPluginGrid.SelectedCells.Count < 1 || ConfigureScanRequestBodyTypeFormatPluginGrid.SelectedCells[0].Value == null)
 //    {
 //        return;
 //    }
 //    if ((bool)this.ConfigureScanRequestBodyTypeFormatPluginGrid.SelectedCells[0].Value)
 //    {
 //        this.ConfigureScanRequestBodyTypeFormatPluginGrid.SelectedCells[0].Value = false;
 //        this.ASRequestScanAllCB.Checked = false;
 //        this.ASRequestScanBodyCB.Checked = false;
 //    }
 //    else
 //    {
 //        this.ConfigureScanRequestBodyTypeFormatPluginGrid.SelectedCells[0].Value = true;
 //    }
 //}
 //private void ASRequestScanCookieGrid_CellClick(object sender, DataGridViewCellEventArgs e)
 //{
 //    if (ASRequestScanCookieGrid.SelectedCells.Count < 1 || ASRequestScanCookieGrid.SelectedCells[0].Value == null)
 //    {
 //        return;
 //    }
 //    if ((bool)this.ASRequestScanCookieGrid.SelectedCells[0].Value)
 //    {
 //        this.ASRequestScanCookieGrid.SelectedCells[0].Value = false;
 //        this.ASRequestScanAllCB.Checked = false;
 //        this.ASRequestScanCookieCB.Checked = false;
 //    }
 //    else
 //    {
 //        this.ASRequestScanCookieGrid.SelectedCells[0].Value = true;
 //    }
 //}
 //private void ASRequestScanHeadersGrid_CellClick(object sender, DataGridViewCellEventArgs e)
 //{
 //    if (ASRequestScanHeadersGrid.SelectedCells.Count < 1 || ASRequestScanHeadersGrid.SelectedCells[0].Value == null)
 //    {
 //        return;
 //    }
 //    if ((bool)this.ASRequestScanHeadersGrid.SelectedCells[0].Value)
 //    {
 //        this.ASRequestScanHeadersGrid.SelectedCells[0].Value = false;
 //        this.ASRequestScanAllCB.Checked = false;
 //        this.ASRequestScanHeadersCB.Checked = false;
 //    }
 //    else
 //    {
 //        this.ASRequestScanHeadersGrid.SelectedCells[0].Value = true;
 //    }
 //}
 //private void ASSessionPluginsCombo_SelectionChangeCommitted(object sender, EventArgs e)
 //{
 //    this.ASScanPluginsGrid.Focus();
 //}
 private void UpdateBodyGridForFormat(FormatPlugin Plugin, bool CheckStatus)
 {
     ConfigureScanRequestBodyTypeFormatPluginGrid.Rows.Clear();
     string XmlString = Plugin.ToXml(Scanner.CurrentScanner.OriginalRequest.BodyArray);
     ConfigureScanRequestFormatXMLTB.Text = XmlString;
     string[,] InjectionPoints = FormatPlugin.XmlToArray(XmlString);
     for (int i = 0; i < InjectionPoints.GetLength(0); i++)
     {
         ConfigureScanRequestBodyTypeFormatPluginGrid.Rows.Add(new object[] { CheckStatus, InjectionPoints[i, 0], InjectionPoints[i, 1] });
     }
 }