In this video, I'm going to show you how to get wireless network adapters working within Kali Linux.
In this example, I'll show you how to get a wireless network adapter running within Kali within both
virtual box as well as a vmware workstation pro.
In this example, I'm using an Alpha Network adapter, but other network adapters are also supported.
Now, there's a reason why you don't want to use the wireless built-In network adapters in a lot of
laptops.
They don't support monitor mode.
They don't support injection.
Only certain wireless network adapter support the injection of packets onto wireless network, as well
as the monitoring of wireless networks.
So you have to use specific chipsets, in this example
we're going to be using a wireless RTL8812AU wireless chipset
this supports 802.11 AC. So much quicker wireless standard and it also supports injection
of packets onto the wireless network.
I've put a list below this video of wireless network adapters that you can purchase.
You could use wireless network adapters from Alpha or Panda or TPlink as an example.
They are, as always, advantages and disadvantages to some of these network adapters.
I found that this wireless network adapter from Alpha works well for my needs.
Now I'm going to be covering quite a lot of topics in this video, offensive security just released
at the time of this recording version, 2019.4 of Kali Linux.
So I want to show you how to get this version working, get it working within virtual box and get it
working with a wireless network adapter.
The same process for getting the wireless network adapter applies to VMware Workstation Pro.
So at the end of the video, I'll show you that I've got this working in both virtual box as well as
VMware Workstation Pro.
Now, without further ado, let me show you how to get wireless working within Kali Linux, running within
virtual box or VMware workstation on a Windows 10 laptop.
OK, so the first thing is we need to download the latest release of Kali Linux, so I'm going to go
to kali.org.
I'm going to go to downloads, download Kali Linux, I'm going to scroll down and in this example,
I'm going to be running Kelly as a virtual machine in a virtual box.
So I'm going to be using the 64 bit version of Kali.
You could use VMware if you prefer.
I've been able to get this working in both VMware Workstation Pro as well as virtual box.
So you could use either.
So again, the Kali Linux 64 bit virtual box OVA is available on the offensive security VM download
page.
So going to that page, I'm going to select a virtual box and download the 64 bit version.
The OVA is now downloading, the reason why I want to get the 64 bit
is my computer is running Windows 10 64, bit operating system, it's an Intel i7 processor with 8
gig of RAM, I've enabled nested virtualization in the bios of this computer
so I can use the 64 bit version of Kali.
If you don't have nested virtualization support on your laptop, you'll need to use the 32-bit version.
Use this link if you want to see how do you enable nested virtualization in the bias of your computer.
Now once you've downloaded the OVA, you can import it into the virtual box.
So in this example, we can see that Kali Linux 2019 got 4 virtual box AMD 64-bit OVA has been
downloaded.
So what I can do now is start a virtual box, so I'm going to click on Oracle VM virtual box.
Now, I've previously imported an older release of Kelly Linux, as well as a boon to wait zero four.
In this example, I'm going to go to file import appliance.
I'm going to choose a virtual appliance file to import.
I'm going to browse to my downloads directory, select the ova that I downloaded, click open and click
next.
A summary of the appliance settings is displayed, I'm going to leave most of the settings at default.
So in this example, I'm simply going to click import to import the appliance into virtual box.
So all we need to do now is wait for the appliance to import.
OK, so as we can see the appliances being imported.
Before you start up a virtual machine in virtual box, a verify the settings, so I'm going to click
on settings and notice we told that they are invalid settings detected.
We're told that USB 2.0 3.0 is currently enabled for this virtual machine.
However, this requires the Oracle virtual box extension pack to be installed.
Please install the extension pack from the virtual box download site or disable USB 2.0 3.0 before you
start the machine.
So if I go to USB I can either set the USB to version wanted 1.1 which means I don't need the
extension pack or I could use a USB 2.0, which is what the OVA has been configured to use, but that
requires the extension pack.
On the virtual box website, we're told that the virtual box extension pack personal use, and evaluation
license governs your access to and use of the virtual box extension pack.
It doesn't apply to the virtual box based package or its source code, which is licensed under the new
general public license.
A virtual box is open source software, but the virtual box extension pack isn't.
This is closed source software or proprietary software.
So basically you can use it for personal use or as evaluation software, but you can't use it permanently
for commercial use
but make sure that you read the license carefully
and if you want to use the software, go to virtualbox.org, click on downloads
and then download and install the extension, pack. So I'm gonna click on the all supported platforms
link.
We're told once again that this license is different to the open source license that applies to virtual
box.
OK, so my virtual box extension pack has downloaded. I'll double click on the file and then I'll
click install to install the extension pack within virtual box.
We asked to read the license once again, you need to accept that.
The extension pack is now being successfully installed, so now when I click on settings, notice we
no longer receive an error when using USB 2.0, I no longer have to use USB 1.1, I can use
2.0, which is better
and that's the setting that the OVA used.
So now I can click start to start up Kali Linux and as you can see, it's now booting up.
The interface looks very different to previous releases.
I'm going to log in as root and default password of t o o r so root spelt backwards, which is the default
for this virtual machine.
Again, very different interface to the previous release.
I'm going to click on terminal to open up a terminal.
So here's my terminal.
The font is very small.
I'm going to go to file preferences and what I'll do is change that font.
So I'll make it 18 so that it's easier to read.
Type of config notice we don't see anything but an Ethernet interface and a loop back currently on this
virtual machine.
So I now want to install adapters.
Now, if I plug in my wireless adapter, Windows has recognized it.
So if I go to control panel.
Network, and Internet, network and sharing center change adapter settings, I now have this external
network adapter, but it's being managed by Windows notice USB network interface card.
So what I'll do here is shut down Kali
and go to settings,
go to USB
and click plus, and what I want to do now is get a virtual box to control the external network adapter.
So it's now going to be used by the virtual machine rather than by windows.
And what I'll do now is start up a virtual box once again in Windows, we can see that the network adapter
is no longer used by windows.
It's now being used by the virtual machine.
So log in is root.
I'll open up a terminal, ifconfig notice we still only have an ethernet 0 adapter and a loopback
adapter.
Even though this virtual machine is controlling this wireless network adapter.
So what I'm going to do is essentially follow the instructions on the 2017.1 release and
use apt get update and apt install.
So I'll use apt update to update references
and then apt install, and once again, it's a realtek RTL adapter.
So realtek
and I'll type rt tab to auto complete and press enter.
Software is now being downloaded and installed.
Now, one thing I've noticed with this release running within virtual box is I get a lot of flicker
on the screen. Not sure if you can see that, but there's quite a bit of flicker when moving around
from one window to another.
But hopefully it's not affecting the video.
But you may encounter that when using this release within a virtual machine on Windows 10.
OK, the installation has completed, but notice I'm getting an error.
Failed to attach a USB device, realtek 802.11 and NIC to the virtual machine.
So what I'm gonna do is unplug the USP connection and what I'll do now is plug it back in again
I'm gonna type ifconfig, notice, I still don't have the wireless adapter showing within Kali.
it again, plug it back in.
So I'm having some errors at the moment, so what I'll do is shut down Kali and shut down virtual box
and then I'll start it up again
and then boot up Kali Linux again.
You may sometimes have these issues.
So I'm gonna log-in as root again.
Open up a terminal window type ifconfig, and as you can see, I still don't have my virtual card,
So unplug it and plug it back in, type ifconfig now.
So at the moment I'm having issues with USB version 2, even though I remove the USB and plug it in
virtual box is having an issue connecting that to the virtual machine.
So what I'm going to do is go back to USB version 1.1. So I'll shut down the virtual machine.
Go to settings.
So what I'm going to do is go back to USB 1.1 and click, okay, and then start up the virtual machine.
It's better to use USB 2.0, but I'm going to revert back to 1.1 in this example because I'm
having issues with Version 2.0.
I'm going to login with my username and password.
I'll remove the USB adapter, plug it back in.
Open up a terminal type ifconfig, no error at the moment, but I'm not seeing the network adapter.
So what I'm going to do now is revert back to a backup plan to get this working
and to do that, I'm going to download additional software from GitHub.
So I'm goin to open up a Web browser
and I'm going to browse to GitHub.com, go to a aircrack NG
and get the driver for this chipset. So I want to get this driver, RTL 8812 AU.
That's the driver that we downloaded originally using Kali but I'm having issues with that driver,
so I'm going to click on clone or Download and I'm going to download the zip file.
Some downloading different drivers from GitHub onto my virtual machine
and I'm going to save those drivers to the local computer.
The software is downloaded, I'm going to go to file manager.
Go to downloads, I'm going to right click on that zip file and I'm going to click extract here.
The file contents has now been extracted, so in my terminal window, I'm currently in my home directory,
LS shows me that I have a downloads directory, so I'll move to that.
So CD downloads, LS shows me the directory, so I'll move to that directory and I'm now going to
run the script to install the software.
So dot or period forward slash dkms install dot sh. You now simply need to wait for this new driver to
be installed.
It may take it a while to go and grab a coffee or something while you wait, but as you can see there
the build is completed
the driver has been installed.
If config shows me that I still don't have a wireless network adapter, but what I'm going to do here
is restart networking.
So restart networking, so system CTL will restart networking and I'm going to restart network manager
Ifconfig notice we still don't have that network adapter.
So what I'm going to do is plug it back in again.
Ifconfig,
Not working, I'll shut down Kali again and restart it,, wireless adapter is now associated with Windows
but what I'll do is restart the Kali Linux virtual machine.
I'll log in once again as root, open up a terminal, ifconfig, it's taking it a while now.
That's a good sign.
So hopefully it's picked up my wireless network adapter and there you go.
Notice W when 0 is available within Kali Linux running within a virtual box on my Windows 10 computer.
OK,So, again ifconfig, that's what we want to see, but now we want to try and do something
with this network adapter.
So I'm going to use airmon-ng check kill.
This process is now been killed.
and we're going to use IW config wlan0 mode monitor to set the mode to monitor. I'll bring the interface
up again.
So ifconfig wlan0 up, ifconfig shows me my wireless LAN interface once again and let's use
airodump-ng
wlan0 and notice, we can now see wireless networks, so as an example, ABC1 is my wireless
network.
Here's my Windows computer connected to that wireless network using it's built-in wireless network adapter.
The USB wireless network adapter is no longer connected to windows.
It's connected to my Linux virtual machine running within virtual box.
We can see as an example the BSS I.D.
We can see the cipher used.
We can see that the authentication is preset key and we can see the actual SSID name.
So I'll stop that.
Let's run airreplay-ng press
you dispell that correctly.
Notice, one of the options we have here is test injection so we can use minus nine if we prefer or
we can use test like this to test whether we can use wireless injection with that network card.
Notice injection is working
2 APs have been found.
I've now shown you that I can successfully use this external USB wireless network adapter within Kali
Linux running with in virtual box on a Windows 10 laptop.
Once again, ifconfig shows me that my wireless network adapter is available within Kali Linux.
Now, this is only the beginning.
I've shown you how to successfully connect an external wireless network adapter to Kali Linux running
within virtual box.
I had multiple issues getting it working and I've shown you some workarounds, including the fact that
in this example I had to revert back to using USB
1.1, you may have better luck using a USB 2.0.
So that being said, actually, let's shut down this virtual machine and let's change it to use USB
too, and see if that works better this time round now that I've installed drivers from GitHub.
Ok, virtual machine is booted up, I'll log in.
Open up a terminal,
ifconfig,
that looks a lot better.
Notice I've got wireless lan 0, so look at my history.
I could as an example
run command, 38 airodump
and notice, I'm able to discover wireless networks once again in this example
when using USB 2.0.
I'll cancel that and let's test whether injection works on this wireless network adapter.
Notice injection is working on this wireless network adapter, so try and use USB 2.0, if you have
issues, then revert back to USB 1.1.
Now I'll shut down this Kali Linux host.
I want to show you that you can do something very similar with Vmware Workstation pro. So I'll startup VMware
Workstation Pro.
Here's my 2019.4 Kali Linux host.
I'll power the host on so under VM removable devices.
This device has now been connected to this virtual machine, so it's no longer connected to virtual
box because that VM has been turned off.
So in my Vmware virtual machine, I'll log in, here's my terminal, ifconfig shows me that I have
that wireless network adapter available within VMware Workstation Pro.
So I can find out my networks
and as you can see there, I'm able to discover the same networks using VMware workstation pro that
I was able to discover using virtual box Vmware by default supports USB 2.
So the virtual machine is using USB 2 and VMware workstation pro supports that by default.
My personal preference is to use VMware workstation pro.
However, that's paid software, so you may prefer using virtual box which is free.
Now, while we here, let me show you one of the cool options available in this release of Kelly Linux,
which is under cover mode.
If you're used to previous releases of Kali, you'll notice the interface is very different
but I can, by simply selecting that option, make my computer look like a Windows 10 host.
So here's my real Windows 10 and here's my so-called Windows 10 running within a virtual machine
but it's actually Kali Linux.
So if I click on the Web browser, which looks like Internet Explorer, it's actually going to run Firefox.
This is not Internet Explorer.
It's the Firefox built into Kali.
So if I go to help as an example, you can see that this is Firefox.
All the tools are available here.
So we have, for instance, sniffing and spoofing Wireshark
and this looks very much like windows.
We have a window skin here, including file explorer.
So applications like Wireshark look like Wireshark on Windows and my file manager looks like Windows
are going to download.
It looks like Windows, but it's actually Linux.
If you want to disable that, open up a terminal, terminal still looks like Linux
and type Kali undercover
And what you'll notice is my menu has changed.
I'm back to a Kali Shell rather than a window shell, but I could simply type that command again
and what you'll notice is the start menu will change to a Windows start menu.
So there you go.
I've shown you a lot of options in this video.
I'm David Bombal, and I want to wish you all the very best.