コード例 #1
0
ファイル: Controller.cs プロジェクト: Tupiet/ByeWifi
 /// <summary>
 /// Reconnects clients by stopping fake ARP requests
 /// </summary>
 public void ReconnectClients() //selective reconnection not availabe at this time and frankly, not that useful
 {
     DisconnectReconnect.Reconnect();
     foreach (ListViewItem entry in _view.ListView1.Items)
     {
         entry.SubItems[3].Text = "Activado";
     }
     _view.ToolStripStatus.Text = "Has devuelto la conexión";
 }
コード例 #2
0
ファイル: Controller.cs プロジェクト: Tupiet/ByeWifi
 /// <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);
     }
 }
コード例 #3
0
ファイル: Controller.cs プロジェクト: Formator/CSArp-Netcut
 /// <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);
     }
 }
コード例 #4
0
        /// <summary>
        /// Reconnects clients by stopping fake ARP requests
        /// </summary>
        public void ReconnectClients()//Not used
        {
            DisconnectReconnect.Reconnect();
            IEnumerable <Device> list = _view.ListView1.Objects.Cast <Device>().ToList();

            foreach (Device entry in list)
            {
                entry.DeviceStatus = "Online";
                _view.ListView1.UpdateObject(entry);
            }
            _view.StatusLabel.Text = "Stopped";

            _view.PictureBox.BeginInvoke(new Action(() =>
            {
                _view.PictureBox.Image = NetStalker.Properties.Resources.icons8_ok_96px;
            }));
        }