Beispiel #1
0
 /// <summary>
 /// Populate the LAN clients
 /// </summary>
 public void RefreshClients()
 {
     if (_view.ToolStripComboBoxDeviceList.Text != "")                      //if a network interface has been selected
     {
         if (_view.ToolStripStatusScan.Text.IndexOf("Escaneando...") == -1) //if a scan isn't active already
         {
             DisconnectReconnect.Reconnect();                               //first disengage spoofing threads
             _view.ToolStripStatus.Text = "Listo";
             GetClientList.GetAllClients(_view, _view.ToolStripComboBoxDeviceList.Text);
         }
     }
     else
     {
         MessageBox.Show("Por favor, seleccione una interfaz.\nPuede hacerlo en EDITAR -> Seleccionar interfaz", "Interfaz", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Populate the LAN clients
 /// </summary>
 public void RefreshClients()
 {
     if (_view.ToolStripComboBoxDeviceList.Text != "")                 //if a network interface has been selected
     {
         if (_view.ToolStripStatusScan.Text.IndexOf("Scanning") == -1) //if a scan isn't active already
         {
             DisconnectReconnect.Reconnect();                          //first disengage spoofing threads
             _view.ToolStripStatus.Text = "Ready";
             GetClientList.GetAllClients(_view, _view.ToolStripComboBoxDeviceList.Text);
         }
     }
     else
     {
         MessageBox.Show("Please select a network interface!", "Interface", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Populate the LAN clients
 /// </summary>
 public void RefreshClients()
 {
     if (!string.IsNullOrWhiteSpace(NetStalker.Properties.Settings.Default.friendlyname)) //if a network interface has been selected
     {
         if (_view.StatusLabel.Text.IndexOf("Scanning") == -1)                            //if a scan isn't active already
         {
             try
             {
                 //DisconnectReconnect.Reconnect(); //first disengage spoofing threads
                 //_view.StatusLabel.BeginInvoke(new Action(() => { _view.StatusLabel.Text = "Ready"; }));
                 GetClientList.GetAllClients(_view, NetStalker.Properties.Settings.Default.friendlyname);
             }
             catch (Exception)
             {
             }
         }
     }
 }
Beispiel #4
0
        public void AttachOnExitEventHandler()
        {
            Application.ApplicationExit += (object sender, EventArgs e) =>
            {
                try
                {
                    var devices = _view.ListView1.Objects.Cast <Device>().ToList();

                    foreach (var device in devices)
                    {
                        device.Redirected     = false;
                        device.Blocked        = false;
                        device.LimiterStarted = false;
                    }

                    GetClientList.CloseAllCaptures(_view);
                    NotificationAPI.ClearNotifications();
                }
                catch (Exception)
                {
                }
            };
        }
Beispiel #5
0
 public void AttachOnExitEventHandler()
 {
     Application.ApplicationExit += (object sender, EventArgs e) => GetClientList.CloseAllCaptures();
 }