Beispiel #1
0
 private void OnScanStateChanged(object sender, ScanStateEventArgs e)
 {
     if (ScanStateChanged != null)
     {
         ScanStateChanged(sender, e);
     }
 }
Beispiel #2
0
 void target_ScanStateChanged(object sender, ScanStateEventArgs e)
 {
     if (e.Scanning)
     {
         if (button1.InvokeRequired)
         {
             button1.BeginInvoke(new Action(() =>
             {
                 button1.Text    = "Scanning...";
                 button1.Enabled = false;
             }));
         }
         else
         {
             button1.Text    = "Scanning...";
             button1.Enabled = false;
         }
     }
     else
     {
         if (button1.InvokeRequired)
         {
             button1.BeginInvoke(new Action(() =>
             {
                 button1.Text    = "Scan";
                 button1.Enabled = true;
             }));
         }
         else
         {
             button1.Text    = "Scan";
             button1.Enabled = true;
         }
     }
 }
Beispiel #3
0
        public void GetAll(object obj)
        {
            ScanStateEventArgs e = new ScanStateEventArgs();

            e.Scanning = true;

            OnScanStateChanged(null, e);

            Test();
            GetColumns();
            GetVulnerableColumns();
            GetDatabases();

            e.Scanning = false;
            OnScanStateChanged(null, e);
        }