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