Exemple #1
0
 private void CheckInitArpPoison()
 {
     if (_arpPoisoner == null)
     {
         _arpPoisoner = new ArpPoisoner(getCurrentDevice(), (Target)lvwGatway.Items[0]);
         lvwDnsSpoofingList.ItemsSource = _arpPoisoner.DnsSpoofingList;
         _arpPoisoner.BgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(delegate
         {
             btnToggleArpPoisoning.IsEnabled = true;
             btnToggleArpPoisoning.Content = "Activate";
             gbxArpPoisoning.BorderBrush = _defaultBrush;
         });
     }
 }
Exemple #2
0
 private void cbxNetworkInterface_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     _currentDeviceIndex = cbxNetworkInterface.SelectedIndex;
     StartPacketCounting();
     _arpPoisoner = null;
 }