MitM Attack Fails on Home Wireless Router

I am currently trying to perform a MitM attack on my home wireless network to get a better understanding on how this attack works. I can successfully perform this attack on a NAT network on some virtual machines but it will not work on my home wireless network with an external WiFi adapter. More specifically, the target devices are not able to load webpages even while still connected to the WiFi. However, I can still view the packets sent from the device to the gateway.

I have used Bettercap, Ettercap and arpspoof to try and accomplish this and it all fails with the same result. I’m positive that the target IP and the gateway is specified for each tool and I made sure that I enabled portforwarding with echo 1 > /proc/sys/net/ipv4/ip_forward.

My only logical conclusion is that it is somehow not successfully redirecting the packets from the target machine to the gateway and vice versa.

Is anyone able to suggest any fixes? Are some routers able to prevent MitM attacks? Any insight would be greatly appreciated.

(I am using an Alfa AC1200 wireless adapter and running Kali on a VM. I also have a Bell HomeHub 3000 which is from what I believe exclusive to Canada and manufactured by Sagecom.)

Alfa wireless card monitor mode problem [closed]

enter image description hereI have a wireless card (Alfa AWUS036H) that I use for pen-testing on my test network. Due to my recent interest in network hacking, I picked up this card and put it into monitor mode. While it scanned networks fine and picked up strong signals from neighboring networks, if I disconnected it or restarted my computer the next day, it would not discover any networks using the command airodump-ng wlan0mon wlan0mon being the interface of the card.

To get the card to work again, I would have to restart the virtual box, unplug the device or even restart my computer multiple times to get it to work. I don’t know if it is a software problem or a hardware issue. If this was a real-world situation this would in no way be practical.

I run kali-linux 2019.1 on virtual-box 5.2. My computer runs on Windows 10.

Your help would be appreciated.

Wireless Woes: iwlwifi-8265 – Ubuntu 18.04 (and Mint Tara)

I am trying to set up two machines, both have identical hardware that should be supported by the newer Linux kernels. The wireless card inside is a GIGABYTE “GC-WB867D-I” Wifi+Bluetooth. Out of the box the Bluetooth works, however the Wifi does not.


The kerenel version via: uname -r

5.0.0-31-generic

The firmware version via: modinfo iwlwifi | grep 8265

firmware: iwlwifi-8265-36.ucode

The firmware file code via: lsmod | grep iwlwifi

iwlwifi 315392 1 iwlmvm

The Network controller via: sudo lspci | grep Network

41:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)


The more verbose Network controller via ID: sudo lspci -vnd 8086:24fd

41:00.0 0280: 8086:24fd (rev 78) Subsystem: 8086:1010 Flags: bus master, fast devsel, latency 0, IRQ 139 Memory at fa400000 (64-bit, non-prefetchable) [size=8K] Capabilities: [c8] Power Management version 3 Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [40] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number 48-89-e7-ff-ff-4b-c6-c0 Capabilities: [14c] Latency Tolerance Reporting Capabilities: [154] L1 PM Substates Kernel driver in use: iwlwifi Kernel modules: iwlwifi, wl

And finally the most verbose via the debug script: wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && chmod +x wireless-info && ./wireless-info

Text file excerpt:

########## wireless info START ##########  Report from: 14 Oct 2019 20:53 PDT -0700  Booted last: 14 Oct 2019 00:00 PDT -0700  Script from: 22 Oct 2018 03:34 UTC +0000  ##### release ###########################  Distributor ID: Ubuntu Description:    Ubuntu 18.04.3 LTS Release:    18.04 Codename:   bionic  ##### kernel ############################  Linux 5.0.0-31-generic #33~18.04.1-Ubuntu SMP Tue Oct 1 10:20:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux  Parameters: ro, quiet, splash  ##### desktop ###########################  Ubuntu  ##### lspci #############################  04:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)     Subsystem: Gigabyte Technology Co., Ltd I211 Gigabit Network Connection [1458:e000]     Kernel driver in use: igb  41:00.0 Network controller [0280]: Intel Corporation Wireless 8265 / 8275 [8086:24fd] (rev 78)     Subsystem: Intel Corporation Dual Band Wireless-AC 8265 [8086:1010]     Kernel driver in use: iwlwifi  ##### lsusb #############################  Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 003: ID 05b8:3279 Agiler, Inc.  Bus 005 Device 002: ID 046d:c069 Logitech, Inc. M-U0007 [Corded Mouse M500] Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 2357:0108   Bus 001 Device 003: ID 8087:0a2b Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  ##### PCMCIA card info ##################  ##### rfkill ############################  0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 3: phy3: Wireless LAN     Soft blocked: no     Hard blocked: no  ##### secure boot #######################  SecureBoot disabled Platform is in Setup Mode  ##### lsmod #############################  wl                   6447104  0 iwlmvm                389120  0 rtl8xxxu              126976  0 mac80211              819200  2 iwlmvm,rtl8xxxu iwlwifi               315392  1 iwlmvm wmi_bmof               16384  0 mxm_wmi                16384  1 nouveau cfg80211              679936  4 wl,iwlmvm,iwlwifi,mac80211 wmi                    28672  3 wmi_bmof,mxm_wmi,nouveau  ##### interfaces ########################  [/etc/network/interfaces] auto lo iface lo inet loopback  etc.... etc....  ##### NetworkManager.state ##############  [main] NetworkingEnabled=true WirelessEnabled=true WWANEnabled=true  ##### NetworkManager config #############  [[/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf]] [connection] wifi.powersave = 3  [[/etc/NetworkManager/NetworkManager.conf]] [main] plugins=ifupdown,keyfile [ifupdown] managed=false [device] wifi.scan-rand-mac-address=no  [[/usr/lib/NetworkManager/conf.d/10-dns-resolved.conf]] [main] dns=systemd-resolved  [[/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf]] [keyfile] unmanaged-devices=*,except:type:wifi,except:type:wwan  [[/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf]] [connectivity] uri=http://connectivity-check.ubuntu.com/  [[/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf]] [device-mac-addr-change-wifi] match-device=driver:rtl8723bs,driver:rtl8189es,driver:r8188eu,driver:8188eu,driver:eagle_sdio,driver:wl wifi.scan-rand-mac-address=no wifi.cloned-mac-address=preserve ethernet.cloned-mac-address=preserve  ##### NetworkManager profiles ###########   ##### Netplan config ####################  [/etc/netplan/01-network-manager-all.yaml] network:   version: 2   renderer: NetworkManager   etc.... etc....   ##### module parameters #################  [iwlmvm] init_dbg: N power_scheme: 2 tfd_q_hang_detect: Y  grep: /sys/module/rtl8xxxu/parameters/debug: Permission denied grep: /sys/module/rtl8xxxu/parameters/dma_agg_pages: Permission denied grep: /sys/module/rtl8xxxu/parameters/dma_aggregation: Permission denied grep: /sys/module/rtl8xxxu/parameters/dma_agg_timeout: Permission denied grep: /sys/module/rtl8xxxu/parameters/ht40_2g: Permission denied [rtl8xxxu]  [mac80211] beacon_loss_count: 7 ieee80211_default_rc_algo: minstrel_ht max_nullfunc_tries: 2 max_probe_tries: 5 minstrel_vht_only: Y probe_wait_ms: 500  [iwlwifi] 11n_disable: 0 amsdu_size: 0 antenna_coupling: 0 bt_coex_active: Y d0i3_disable: Y d0i3_timeout: 1000 disable_11ac: N disable_11ax: N enable_ini: N fw_monitor: N fw_restart: Y lar_disable: N led_mode: 0 nvm_file: (null) power_level: 0 power_save: N remove_when_gone: N swcrypto: 0 uapsd_disable: 3  [cfg80211] bss_entries_limit: 1000 cfg80211_disable_40mhz_24ghz: N ieee80211_regdom: 00 

What I have tried…


Replace the iwlwifi-8265-22.ucode file in /lib/firmware/ folder with the drivers from Intel. The folder contains, iwlwifi-8265 (-21), (-22), (-27), (-31), (-34), (-36) for newer kerenls I’d assume.


Changed the power settings via gedit, wifi.powersave = 3 (3) -> (2) -> (1) in file/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf


Updated, upgraded, updated kernels etc… I am usually okay at troubleshooting linux issues, however this one has me stumped. I noticed the firmware version points to iwlwifi-8265-36.ucode, while the Intel driver points to iwlwifi-8265-22.ucode. Is this the issue?


I have lost a day to this problem, and normally I can solve these issues somewhat quickly. With any luck I can solve the issue within the next day, else I will buy two new PCI cards :<. Any help is greatly appreciated, thanks!

Ubuntu 18.04 not working with Panda Wireless PAU09 on USB 3.0

Recently received a Panda Wireless PAU09. It works fine on any of the computer’s USB 2.0 ports, but not USB 3.0 ports. USB 3.0 ports are functional, as they can connect to other USB devices.

lsusb shows the device in the list:

Bus 008 Device 000: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter

However, lshw -C network shows only the ethernet interface.

The device works fine on a USB 3.0 port on Windows 10.

Wireless not shown – Lenovo V145, Ubuntu 16.04

I received a Lenovo V145 with only FreeDos on it and installed Ubuntu 16.04 on it (Format everything). For some reason I cannot connect to a Wireless network

lspci | grep Network 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE     802.11ac PCIe Wireless Network Adapter 

checking if blocked

lspci -knn | grep Net -A3; rfkill list 02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]     Subsystem: Lenovo Device [17aa:c024] 0: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: no 1: ideapad_bluetooth: Bluetooth     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 

I think it is there but I am not able to see it (in the menubar). Same with the Bluetooth, even after I turn it on manually using the system settings icon.

Is there a hidden option that gives me the option to connect to Wireless?

Wireless not working on Ubuntu with Linux 5.00-31 generic

I have Ubuntu 18.04.3 LTS On the last update, the wifi stopped working. It tells that is not connected to any network, and it doesn’t show any network at all on “Select Networks”

Still, if I reboot ubuntu and select a different version, Ubuntu, with Linux 5.00-29-generic, I have internet and it’s connecting to wifi automatically, as normal.

On the 31 generic version, if I type iwconfig I get:

enp2s0    no wireless extensions.  wlp1s0    IEEE 802.11  ESSID:off/any             Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm              Retry short limit:7   RTS thr=2347 B   Fragment thr:off           Power Management:on  lo        no wireless extensions. 

I get a normal response to wlp1s0 on the 5.00-29 version.

wlp1s0    IEEE 802.11  ESSID:"Name_of_the_network"             Mode:Managed  Frequency:2.462 GHz  Access Point: 90:some:numbers:and:letters             Bit Rate=72.2 Mb/s   Tx-Power=20 dBm              Retry short limit:7   RTS thr=2347 B   Fragment thr:off           Power Management:on           Link Quality=68/70  Signal level=-42 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:0  Invalid misc:56   Missed beacon:0  

And this is the info about my network adaptor

  *-network                         description: Wireless interface        product: RTL8723BE PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:01:00.0        logical name: wlp1s0        version: 00        serial: e8:2a:44:d4:e0:2f        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=rtl8723be driverversion=5.0.0-29-generic firmware=N/A ip=192.168.0.220 latency=0 link=yes multicast=yes wireless=IEEE 802.11        resources: irq:40 ioport:e000(size=256) memory:fe900000-fe903fff   *-network        description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        logical name: enp2s0        version: 10        serial: ac:e2:d3:55:ab:59        size: 10Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=half firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:33 ioport:d000(size=256) memory:fe804000-fe804fff memory:fe800000-fe803fff 

For the moment I’m only using the option to boot Ubuntu into the previous version, but I’d like to know if I can fix that so I can boot Ubuntu normally.

Thank you

Ubuntu 18.04.3 LTS Update breaks Wireless Adapter : Qualcomm Atheros QCA9377

I have run into a problem. I recently updated my Ubuntu partition (dual-boot with Win10) to 18.04.3 LTS on my Dell Inspiron 17 3000 laptop. Upon restart, the OS no longer recognizes my wireless adapter. Running lspci | grep -i "Wireless\|WiFi" produces: 02:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31) Running dmesg | grep -i firmware produces:

[     0.135169] Spectre V2 : Enabling Restricted Speculation for firmware calls [     0.208518] ACPI : [Firmware Bug]: BIOS _OSI(Linux) query ignored ... (psmouse and dmc normal messages, irrelevant to problem) [     17.269597] ath10k_pci 0000:02:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-top crc32 42e41877 

Running rfkill list all produces:

0: hci0: Bluetooth         Soft blocked: no         Hard blocked: no 

Running uname -a produces: Linux user-ubuntu 5.0.0-31-generic #33~18.04.1-Ubuntu SMP Tue Oct 1 10:20:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux If there is any more information you need, please tell me; I am still a n00b. (I was actually using this partition to teach me Ubuntu) Thank you!