Exemplo n.º 1
0
 public ARPSpoofingService(IWifiDeviceService deviceService)
 {
     _deviceService    = deviceService;
     cancelTokenSource = new CancellationTokenSource();
     IsScanning        = false;
     IsPoisoning       = false;
     _ipMacPairs       = new Dictionary <string, string>();
 }
Exemplo n.º 2
0
 public ArpSpoof(IARPSpoofingService spoofingService, IWifiDeviceService deviceService)
 {
     InitializeComponent();
     _deviceService                  = deviceService;
     _spoofingService                = spoofingService;
     tbGetawayIp.Text                = _deviceService.DeviceWithDescription.GatewayIpString;
     _spoofingService.ScanTick      += _spoofingService_ScanTick;
     _spoofingService.NewIpMacFound += _spoofingService_NewIpMacFound;
 }
Exemplo n.º 3
0
        public MainWindow(
            IRegistryService registryService, IWifiDeviceService wifiDeviceService,
            ICapturePackets capturePackets, IArpSpoof arpSpoof)
        {
            InitializeComponent();
            _registryService   = registryService;
            _wifiDeviceService = wifiDeviceService;
            _wndArpSpoof       = arpSpoof;
            _wndCapturePackets = capturePackets;

            _wndArpSpoof.Closing       += wnd_Closing;
            _wndCapturePackets.Closing += wnd_Closing;

            tbDriver.Text         = _wifiDeviceService.DeviceWithDescription.DriverName;
            tbName.Text           = _wifiDeviceService.DeviceWithDescription.Name;
            tbIp.Text             = _wifiDeviceService.DeviceWithDescription.IpV4;
            tbGuid.Text           = _wifiDeviceService.DeviceWithDescription.Guid;
            tbMac.Text            = _wifiDeviceService.DeviceWithDescription.DeviceMacString;
            tbGateway.Text        = _wifiDeviceService.DeviceWithDescription.GatewayIpString;
            lblWinRouting.Content = _registryService.GetWinRoutingStatus();
        }
Exemplo n.º 4
0
 //private bool stopSignal;
 public CapturingService(IWifiDeviceService deviceService)
 {
     _deviceService = deviceService;
 }