Connecting a Wireless Adapter to a Kali Linux Virtual Machine
In “ Network hack, ” most people get confused when talking about Network adapters and Network cards .
Most don ’ thyroxine know what they are, why we need them, and how to select the best adapter since we have so many brands and models available in the market .
A radio adapter is a device that you connect to your calculator via the USB interface, and it allows you to connect to WiFi networks and convey with other devices on the network.
However, you might wonder : “ Why would I need a USB network adapter since my laptop already has an built-in arranger that enables me to connect to wireless networks ? ”
well, this is among the topics that we will discuss in this military post :
- Problems with Built-in Wireless Cards
- Best WiFi adapters for hacking
- How to connect a wireless adapter to Kali Linux Virtual machine
Problems With Built-in Wireless Cards
There are two chief problems with built-in WiFi adapters .
- They can’t be used in Virtual machines – Kali inside a VM does not see the built-in WiFi card of your laptop as a WiFi adapter but will see it as an ethernet adapter. Hence you can have full internet access, but you cannot do packet injection or place the WiFi card into monitor mode.
- Most built-in cards are not suitable for hacking – In wireless hacking, there are two main factors that we look out for in adapters. That is ‘packet infection’ and support for ‘monitor mode.’ Unfortunately, most of the built-in adapters support non of these two features.
Best WiFi Adapters for Hacking (With Monitor Mode)
Before diving into the different WiFi adapter brands and models, we first need to understand the Wireless Chipset portray in these adapters. Like the CPU we have in a calculator, this chipset is the “ Brains ” of the wireless arranger .
It is responsible for all the processing and calculation of data flowing through it. It besides determines the capability of the radio adapter. Whether it can support monitor mode, packet injection, and works with Kali Linux or not .
Some of the chipset supported by Kali Linux include :
- Realtek RTL8812AU
- Realtek 8187L
- Ralink RT5370N
- Ralink RT3572
- Ralink RT5572
- Ralink RT3070
- Ralink RT307
- Atheros AR9271
I understand all this information looks gibberish as of now ; however, you will appreciate it when we look at the different WiFi adapters available and the chipset they use .
You will notice that the ALFA Networks company highly dominates the Wireless arranger marketplace. Over the past couple of years, the company has risen to stand as the perfect supplier for effective and dependable WIFI adapters. other companies include TP-Link and Panda .
The table under shows a tilt of radio adapters supported by Kali Linux and the Chipset, Frequency, and Protocol they are using.
Important : When it comes to TP-LINK TL-WN722N, it ’ second important to know that you can besides get v2/v3 to work with a few workarounds, although it ’ south sometimes assumed that only v1 works.
A great and detail tutorial on this topic is this one from David Bombal – Kali Linux TP-Link TP-WN722N.
TL-WN722N is a adequate budget WiFi adapter for our purposes, but it ’ south sometimes unmanageable to find v1 in your contiguous sphere, so v2/v3 is decidedly a estimable option.
In some cases you won ’ thymine find the adapter ’ s translation in the merchandise description, so I think it ’ south decidedly good to know you can make it work no count which of those versions it is .
Connect a Wireless Adapter to Kali Linux Virtual Machine (VirtualBox)
To connect a radio receiver adapter to your Kali Linux virtual machine, when using VirtualBox, you can go in the Oracle VM VirtualBox menu > Devices > USB > [select_your_adapter] .
It may not list the name of the WiFi Adapter, but something related to the chipset, rather. hera, I ’ thousand using a TP-LINK TL-WN722N 2.4GHz v2/v3, and as you can see, it ’ second displaying Realtek 802.11n NC .
Automatically Connect the WiFi Adapter to a VirtualBox VM
You can besides mechanically connect a wireless adapter to your Kali Linux virtual machine, when running VirtualBox. This way, you don ’ t have to manually connect it every clock time
To do this follow the steps below :
- Shutdown the Kali virtual machine if it was already running
- Connect your Wireless USB adapter to your PC
- Right-click on your Kali Virtual machine and select the Settings option. A window will open displaying all the different configuration options.
- Click on the USB option and check the Enable USB controller check box.
We will need to add a USB filter on this window that will enable us to mount our wireless adapter to the Kali VirtualBox VM.
- Click on the USB icon that has a plus (+) sign and select your Wireless adapter.
Note: Be careful since the adapter may appear with the chipset na,e instead of the Brand name. For example, my adapter in this case is TP-LINK TL-WN722N 2.4GHz v1 but was listed under the chipset name Atheros AR9271.
If you are not sure of the adapter’s name, just remove it, and you will notice the name that will disappear from the VirtualBox USB list.
- Your wireless adapter will be listed under the “USB Device Filters” section.
- To finalize everything, right-click on your newly added USB filter and select the Edit Filters option.
A window will open listing all the details about your wireless adapter. Then, on the Remote option, click on the dropdown and select Yes.
- Click Ok to save your configurations.
Connect a Wireless Adapter to Kali Linux Virtual Machine (VMware Player)
To connect a wireless adapter to your Kali Linux virtual machine, when using VMware Player, you can go to the VMware Player menu > Player > Removable Devices > [your_adapter] > Connect (Disconnect from host) .
It may not list the name of the WiFi Adapter, but something related to the chipset, alternatively. here, I ’ thousand using a TP-LINK TL-WN722N 2.4GHz v2/v3, and as you can see, it ’ s displaying Realtek 802.11n NC .
You should then receive a message informing you that the device will be safely stopped and disconnected from the host machine, so it can then be connected to Kali Linux in the VMware player.
I ’ m not sure of an easy direction how you can mechanically connect a WiFi Adapter with VMware Player, as we did with VirtualBox. The solution in VMware cognition base seems to involve a bite of oeuvre hypertext transfer protocol : //kb.vmware.com/s/article/1648, and I haven ’ metric ton tried it myself. If anyone has an easier solution for this and would like to partake, then we ’ five hundred love to hear from you .
now you can boot your Kali VM and start practicing your wireless hacking skills. You can list all the radio networks around you and flush put your wag in monitor mode .
I believe up to this point, you have a function wireless arranger on your Kali Linux VirtualBox machine. Please remember when selecting an arranger for wireless hack to ensure the chipset used is among the chipsets listed above .