public ARPSpoofingService(IWifiDeviceService deviceService) { _deviceService = deviceService; cancelTokenSource = new CancellationTokenSource(); IsScanning = false; IsPoisoning = false; _ipMacPairs = new Dictionary <string, string>(); }
public ArpSpoof(IARPSpoofingService spoofingService, IWifiDeviceService deviceService) { InitializeComponent(); _deviceService = deviceService; _spoofingService = spoofingService; tbGetawayIp.Text = _deviceService.DeviceWithDescription.GatewayIpString; _spoofingService.ScanTick += _spoofingService_ScanTick; _spoofingService.NewIpMacFound += _spoofingService_NewIpMacFound; }
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(); }
//private bool stopSignal; public CapturingService(IWifiDeviceService deviceService) { _deviceService = deviceService; }