-: In this lecture I'm gonna show you 2 2
how to connect a USB device to a virtual machine. 3 3
As an example, I'm gonna be connecting 4 4
a wireless adapter to my Kali machine. 5 5
But the same method can be used to connect any USB device. 6 6
Now as mentioned in the course requirements 7 7
you need a wireless adapter 8 8
for the cracking section of this course. 9 9
So these are the lectures where we're gonna show 10 10
you how to crack the passwords for Wi-Fi networks. 11 11
Other than that you can do everything else 12 12
in the course without a wireless adapter. 13 13
What I mean by a wireless adapter is a USB device 14 14
that connects through your USB to your computer. 15 15
And allows you to communicate with wireless networks. 16 16
Now most computers and laptops come 17 17
with a built-in wireless card. 18 18
The only problem is first of all 19 19
you can't access built-in wireless cards 20 20
from a virtual machine. 21 21
Also even if you can, so even if you installed Kali 22 22
as a main machine, the built-in wireless cards 23 23
are not good for hacking. 24 24
Because we need a powerful adapter that supports 25 25
monitor mode and packet injection. 26 26
And we're gonna go into what each of these mean. 27 27
But basically the built-in wireless adapter 28 28
does not support these modes and can't be used for hacking. 29 29
That's why I recommend powerful wireless adapters. 30 30
They're listed in the course requirements 31 31
and I'm gonna list them in the resources of this lecture. 32 32
And you can connect them to Kali 33 33
like I'm gonna show you right now. 34 34
So I already have VirtualBox open 35 35
and you just want to click the machine 36 36
that you want to connect the adapter too. 37 37
We're gonna go to it's settings, 38 38
we're gonna go to ports, 39 39
we're gonna go to USB and make sure that USB is enabled. 40 40
And you want to pick the USB option 41 41
that is used by your adapter. 42 42
So it's either USB one, two or three. 43 43
And for the adapter that I have it uses USB two. 44 44
Then you want to come here to the plus sign and click on it. 45 45
Now you'll see that I have a number of devices 46 46
that I can attach to the Kali machine. 47 47
Now I still haven't connected the adapter. 48 48
So first of all I'm just gonna 49 49
have a look on the available devices. 50 50
Then I'm gonna connect the adapter 51 51
and I'm gonna list the devices again. 52 52
I did that because we're assuming that I don't know 53 53
the name of my adapter because the name 54 54
that you'll see here is the name of the chipset 55 55
that's used inside the adapter. 56 56
So it's not the brand name 57 57
that you see on the adapter itself. 58 58
So when I click on it now you'll see 59 59
that I have a new entry called Atheros. 60 60
And this is actually my wireless adapter. 61 61
It's a Alpha A-W-S zero three six N-H-A. 62 62
So I'm gonna click on it that's it added here. 63 63
I'm gonna click on okay 64 64
and that's the adapter added to Kali. 65 65
Now before starting my virtual machine 66 66
I'm gonna physically disconnect my wireless adapter 67 67
and then I'm gonna connect 68 68
the adapter once Kali fully loads. 69 69
Now I'm gonna start it. 70 70
So I'm gonna put my username which is root 71 71
and my password which is T-O-O-R. 72 72
Okay now Kali is fully loaded, I'm gonna go 73 73
and physically connect my wireless adapter. 74 74
Like I said I usually do this just to avoid any conflicts. 75 75
Now once the adapter is connected you wanna make sure 76 76
that it's attached to Kali 77 77
and to do that we're gonna go to the devices menu. 78 78
So we're gonna go all the way to the top. 79 79
We're gonna go to devices, we're gonna go on USB 80 80
and we're gonna make sure 81 81
that this adapter right here is checked. 82 82
Now sometimes it might not be checked for you, 83 83
so click on it to check it, for me it's already checked, 84 84
so I'm not gonna click it. 85 85
And to confirm that the adapter is connected 86 86
we can just go on terminal right here and type ifconfig. 87 87
This command lists all the interfaces 88 88
that's connected to the machine. 89 89
And as you can see now its showing 90 90
an adapter called LAN zero, which is the wireless adapter. 91 91
So if you have this in here 92 92
that means your adapter is connected. 93 93
If you don't then ask in the discussions 94 94
and I'll help you through this. 95 95
Some adapters are not compatible with Kali 96 96
so that could be the issue, 97 97
or the issue could be something else. 98 98
Also now if we go here on the top right 99 99
you'll see that I have a Wi-Fi option 100 100
which I can use to connect to Wi-Fi networks. 101 101
Now we don't need to do this because I showed you 102 102
how to setup a NAT network and Kali already 103 103
has internet access through this NAT network. 104 104
So we only need the wireless adapter to hack 105 105
into other networks to crack their passwords.