Example #1
0
 void socketToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (EndPointDialog dialog = new EndPointDialog()
     {
         ShowRequestFile = true
     })
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             if (string.IsNullOrEmpty(dialog.RequestFile) || File.Exists(dialog.RequestFile))
             {
                 _Fuzzer.AddInput(new TcpQueryFuzzingInput(dialog.EndPoint, dialog.RequestFile));
             }
         }
     }
 }
Example #2
0
 void toolStripStatusLabel2_Click(object sender, EventArgs e)
 {
     using (EndPointDialog dialog = new EndPointDialog()
     {
         EndPoint = _Fuzzer == null ? null : _Fuzzer.Listen
     })
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             try { _Fuzzer.Listen = dialog.EndPoint; }
             catch
             {
                 toolStripStatusLabel2.ForeColor = Color.Red;
             }
         }
     }
 }