WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.200 --> 00:00:10.900
In this video, we will take a look at setting up vulnerable

1
00:00:10.900 --> 00:00:13.800
 host machines with an allow environment.

2
00:00:13.800 --> 00:00:15.400
 So let's Dive In

3
00:00:16.100 --> 00:00:18.800
So I hope you excited and let's Dive In.

4
00:00:21.600 --> 00:00:24.700
Firstly let us download metasloitable 2 the cool

5
00:00:24.700 --> 00:00:27.200
 thing is the creators of my display tool 2, which is

6
00:00:27.200 --> 00:00:30.400
 a rapid 7 the app already created a virtual image

7
00:00:30.400 --> 00:00:33.500
 for us. So you can simply switch my display

8
00:00:33.500 --> 00:00:34.800
 table 2 like so

9
00:00:35.400 --> 00:00:38.400
and we can scroll down just a little bit and we

10
00:00:38.400 --> 00:00:41.300
 can use this Source Forge link simply click it.

11
00:00:43.300 --> 00:00:46.300
then click on download latest version like

12
00:00:46.300 --> 00:00:46.600
 so

13
00:00:47.700 --> 00:00:50.200
and download will begin within a

14
00:00:50.200 --> 00:00:50.600
 few seconds.

15
00:00:52.200 --> 00:00:55.000
The download will actually be is a folder.

16
00:00:56.400 --> 00:00:59.500
However, prior to this video I have downloaded

17
00:00:59.500 --> 00:01:02.600
 the virtual image already. So I already have

18
00:01:02.600 --> 00:01:05.700
 this full sieve on my desktop. Let's

19
00:01:05.700 --> 00:01:06.500
 take a look at it.

20
00:01:09.300 --> 00:01:12.600
So as you can see, I already have the metasploitable to

21
00:01:12.600 --> 00:01:16.600
 Lennox 2.0.0 folder

22
00:01:15.600 --> 00:01:18.900
 downloaded and this is actually downloaded from

23
00:01:18.900 --> 00:01:20.300
 sourceforge.

24
00:01:20.900 --> 00:01:23.800
The thing about it is that it simply

25
00:01:23.800 --> 00:01:26.500
 is a folder. So let's extract the contents.

26
00:01:26.500 --> 00:01:30.500
 You can right click and you can use the Ability on

27
00:01:29.500 --> 00:01:32.800
 zipping application within windows so

28
00:01:32.800 --> 00:01:35.600
 we can right click and select extract all

29
00:01:36.800 --> 00:01:39.100
simply uncheck this box that says

30
00:01:39.100 --> 00:01:42.300
 show extracted files when completed and I click

31
00:01:42.300 --> 00:01:45.400
 on a shock this through such should take a few seconds to

32
00:01:45.400 --> 00:01:45.600
 complete.

33
00:01:47.800 --> 00:01:50.700
Once it's completed, we now have the extracted

34
00:01:50.700 --> 00:01:54.200
 contents here. Let's take a look to see what files

35
00:01:53.200 --> 00:01:56.800
 exist inside this Fuller.

36
00:01:57.200 --> 00:01:59.900
So there's a number files exists. Let's go back.

37
00:02:01.900 --> 00:02:05.100
And I'm going to copy this folder.

38
00:02:06.100 --> 00:02:09.800
I'm going to head over to the directory. I have all my virtuals

39
00:02:09.800 --> 00:02:11.000
 machine stored.

40
00:02:11.500 --> 00:02:14.900
Which is in my D drive and inside

41
00:02:14.900 --> 00:02:16.400
 of virtualbox VM?

42
00:02:17.600 --> 00:02:20.200
And I'm going to piece it right inside here.

43
00:02:22.900 --> 00:02:23.300
like so

44
00:02:25.500 --> 00:02:28.300
Let's go inside this hole to see that

45
00:02:28.300 --> 00:02:31.300
 all the files are there. Yes. All is there.

46
00:02:32.300 --> 00:02:35.900
So now the files are presented here. Let's open virtualbox

47
00:02:35.900 --> 00:02:36.500
 once more.

48
00:02:37.100 --> 00:02:39.400
This time we'll have to create a virtualbox.

49
00:02:40.500 --> 00:02:43.100
Or cut this time. We'll have to

50
00:02:43.100 --> 00:02:46.700
 create a virtual machine and simply add

51
00:02:46.700 --> 00:02:49.000
 the virtual hard drive onto the machine.

52
00:02:49.800 --> 00:02:51.700
To do so. Let's click on new.

53
00:02:52.900 --> 00:02:55.700
And when you click on you your interface might

54
00:02:55.700 --> 00:02:58.800
 look like this I highly recommend to click on exploit mode

55
00:02:58.800 --> 00:03:01.000
 to Simply get the additional features.

56
00:03:02.200 --> 00:03:05.900
For this virtual machine, let's call it metasploitable.

57
00:03:07.300 --> 00:03:11.300
To like so VM and we

58
00:03:11.300 --> 00:03:13.300
 can change a type to Lennox.

59
00:03:14.300 --> 00:03:18.300
Change the version to other Linux 64-bit.

60
00:03:23.100 --> 00:03:26.400
Because this virtual machine does not require too much memory to run

61
00:03:26.400 --> 00:03:29.500
 we can scale down the memory to 512.

62
00:03:30.300 --> 00:03:33.500
So therefore we can conserve the amount of available Ram

63
00:03:33.500 --> 00:03:34.700
 with no who's computer.

64
00:03:35.400 --> 00:03:37.000
simply click on create

65
00:03:38.300 --> 00:03:41.200
once you click on create you now have the option

66
00:03:41.200 --> 00:03:43.800
 to choose cut.

67
00:03:50.100 --> 00:03:53.500
Next instead of we create a new virtual hard drive.

68
00:03:53.500 --> 00:03:57.700
 Let us use the option to actually add

69
00:03:56.700 --> 00:03:59.400
 an existing virtual machine.

70
00:04:00.500 --> 00:04:03.500
simply select it to adoption click on this

71
00:04:03.500 --> 00:04:05.500
 full icon like so

72
00:04:06.200 --> 00:04:07.200
click on ADD

73
00:04:08.100 --> 00:04:11.600
and now we can navigate to where we have stored

74
00:04:11.600 --> 00:04:12.700
 or virtual machine.

75
00:04:15.300 --> 00:04:18.500
Once we go within a folder, we'll see there's

76
00:04:18.500 --> 00:04:20.900
 one file simply click on open.

77
00:04:22.700 --> 00:04:26.000
Now it will be loaded within

78
00:04:25.500 --> 00:04:27.600
 this new window.

79
00:04:28.400 --> 00:04:30.500
Simply select the right file that we will choose.

80
00:04:35.200 --> 00:04:36.200
Then click on choose.

81
00:04:37.200 --> 00:04:38.000
And click on create.

82
00:04:40.200 --> 00:04:43.300
Next we'll need to actually make some minor adjustments

83
00:04:43.300 --> 00:04:46.500
 to the virtual machine environment before we pull it

84
00:04:46.500 --> 00:04:46.600
 on.

85
00:04:47.400 --> 00:04:49.400
simply click on General cut

86
00:04:51.400 --> 00:04:53.800
simply click on settings like so

87
00:04:55.200 --> 00:04:56.400
we can click on system.

88
00:04:57.700 --> 00:05:00.200
We can uncheck floppy. We can

89
00:05:00.200 --> 00:05:01.700
 also uncheck Optical.

90
00:05:02.800 --> 00:05:05.200
Let's click on CPU or processor.

91
00:05:05.700 --> 00:05:08.000
And show it is set one CPU.

92
00:05:08.800 --> 00:05:11.400
Simply click on storage and we'll

93
00:05:11.400 --> 00:05:14.200
 see the virtualbox image file or the

94
00:05:14.200 --> 00:05:17.300
 virtualbox virtual hard drive is actually selected here.

95
00:05:17.900 --> 00:05:20.200
Let's click on network. And we

96
00:05:20.200 --> 00:05:23.500
 want to ensure adapter one is enable while all

97
00:05:23.500 --> 00:05:25.600
 the other adapters is this evil?

98
00:05:26.500 --> 00:05:29.500
or an adapter one simply use a

99
00:05:29.500 --> 00:05:30.700
 drop-down click on

100
00:05:32.500 --> 00:05:33.500
internal Network

101
00:05:34.600 --> 00:05:35.700
Change its name.

102
00:05:36.300 --> 00:05:38.400
to pen test net like so

103
00:05:39.200 --> 00:05:42.200
you may use a drop-down, but if you don't see the name

104
00:05:42.200 --> 00:05:45.400
 of the network, simply delete the existing network name

105
00:05:45.400 --> 00:05:48.700
 and type it in manually next click

106
00:05:48.700 --> 00:05:49.600
 on advanced.

107
00:05:50.300 --> 00:05:53.300
simply change a promiscuous mode to allow all

108
00:05:53.300 --> 00:05:55.200
 and simply click on OK

109
00:05:56.200 --> 00:05:59.600
Now let's power on this spiritual machine to determine

110
00:05:59.600 --> 00:06:02.500
 what it is receiving an IP address with an

111
00:06:02.500 --> 00:06:05.400
 au pen test net Virtual Lab environment.

112
00:06:05.400 --> 00:06:07.200
 Let's click on start.

113
00:06:08.300 --> 00:06:11.400
And which are few seconds. This will machine will

114
00:06:11.400 --> 00:06:12.000
 be booted.

115
00:06:16.400 --> 00:06:19.700
So now the virtual machine is booted simply click inside

116
00:06:19.700 --> 00:06:22.800
 a window and we can log in using the

117
00:06:22.800 --> 00:06:25.100
 default credentials are shown on the screen,

118
00:06:25.100 --> 00:06:28.700
 which is msf. Admin as a

119
00:06:28.700 --> 00:06:31.900
 username and msf. Admin as

120
00:06:31.900 --> 00:06:32.500
 a password.

121
00:06:33.900 --> 00:06:36.500
to determine the IP address on a social machine we

122
00:06:36.500 --> 00:06:39.500
 can use the if command like so and it

123
00:06:39.500 --> 00:06:39.600
 enter

124
00:06:40.300 --> 00:06:43.800
I'm currently we can see this virtual machine is receiving an

125
00:06:43.800 --> 00:06:46.900
 IP address from a pentesonet virtual

126
00:06:46.900 --> 00:06:49.800
 Network in other words all virtual DHCP

127
00:06:49.800 --> 00:06:50.100
 server.

128
00:06:51.200 --> 00:06:51.800
So great.

129
00:06:52.700 --> 00:06:55.400
Everything seems to be connected and we

130
00:06:55.400 --> 00:06:58.600
 can find so far. Let us shot on this virtual machine we

131
00:06:58.600 --> 00:06:59.300
 can type sudo.

132
00:07:00.100 --> 00:07:01.600
shutdown and hit enter

133
00:07:02.400 --> 00:07:05.800
simply enter the password for the username,

134
00:07:05.800 --> 00:07:07.300
 which is msf. Admin.

135
00:07:08.200 --> 00:07:11.000
And this seems to not be working.

136
00:07:12.200 --> 00:07:14.200
Let's try this one more time sudo.

137
00:07:15.100 --> 00:07:15.900
Shut down.

138
00:07:16.900 --> 00:07:19.400
Okay, so this command is looking let's

139
00:07:19.400 --> 00:07:22.100
 try hold sudo halt.

140
00:07:23.100 --> 00:07:25.700
And there we go. The virtual machine is shutting down.

141
00:07:27.800 --> 00:07:30.400
Okay, great. So no matters floatable 2

142
00:07:30.400 --> 00:07:33.900
 is within all pen test net lab Network.

143
00:07:33.900 --> 00:07:37.300
 Now. We need to create metasploitable tree

144
00:07:37.300 --> 00:07:40.800
 and minnesotal tree actually has two versions the

145
00:07:40.800 --> 00:07:43.200
 windows version and the long solution.

146
00:07:43.200 --> 00:07:46.500
 We will place the windows Vision within the

147
00:07:46.500 --> 00:07:49.300
 penthouse net lab environment but to do so, we

148
00:07:49.300 --> 00:07:50.600
 actually need to install.

149
00:07:51.700 --> 00:07:54.700
A pre-requirement with no Windows operating

150
00:07:54.700 --> 00:07:57.600
 system and this pre-requirement. It is

151
00:07:57.600 --> 00:07:58.700
 called vagrant.

152
00:08:00.200 --> 00:08:03.200
To download the foreground application. Let's head over

153
00:08:03.200 --> 00:08:03.600
 back to Google.

154
00:08:04.600 --> 00:08:06.800
and search for vagrant

155
00:08:07.600 --> 00:08:09.000
up like so

156
00:08:10.200 --> 00:08:13.200
the first link is wagon by hashiko. Let's click

157
00:08:13.200 --> 00:08:13.700
 that link.

158
00:08:15.100 --> 00:08:18.400
Now on the right hand side, we can see that there's a

159
00:08:18.400 --> 00:08:20.400
 download button simply click on downloads.

160
00:08:21.300 --> 00:08:24.300
Next select your operating system. I'm using

161
00:08:24.300 --> 00:08:26.300
 Windows. So I'm selecting windows.

162
00:08:27.100 --> 00:08:28.900
And I will use the latest version.

163
00:08:30.400 --> 00:08:33.800
The version that I'm going to download, it's a AMD 64-bit

164
00:08:33.800 --> 00:08:36.400
 version. I'm going to click on download like so

165
00:08:37.200 --> 00:08:38.100
Save the file.

166
00:08:38.600 --> 00:08:41.700
And I'm going to place this file within my

167
00:08:41.700 --> 00:08:42.500
 downloads folder.

168
00:08:43.400 --> 00:08:46.300
And within my folder that

169
00:08:46.300 --> 00:08:48.000
 I'm using to create this course.

170
00:08:49.400 --> 00:08:53.000
The download should be completed within a few seconds depending on

171
00:08:52.100 --> 00:08:54.300
 your bonnet.

172
00:08:55.600 --> 00:08:59.600
Next I'm going to head over back to my downloads folder.

173
00:09:00.200 --> 00:09:03.100
And here I can see the latest version of vagrant is

174
00:09:03.100 --> 00:09:04.400
 available on my computer.

175
00:09:05.800 --> 00:09:08.300
To install this latest version simply double click

176
00:09:08.300 --> 00:09:11.400
 on it and let the wizard installation begin.

177
00:09:12.200 --> 00:09:13.400
simply click on next

178
00:09:14.200 --> 00:09:16.300
accept the license agreement like so

179
00:09:17.100 --> 00:09:20.300
click on next next one small uninstall

180
00:09:20.900 --> 00:09:23.400
the installation process should take a few seconds to

181
00:09:23.400 --> 00:09:23.700
 complete.

182
00:09:24.400 --> 00:09:27.900
Or perhaps a few minutes depending on the

183
00:09:27.900 --> 00:09:30.400
 amount of Hardware resources needed

184
00:09:30.400 --> 00:09:32.800
 to actually perform this installation.

185
00:09:35.700 --> 00:09:38.700
All right, great. So the installation is completed simply

186
00:09:38.700 --> 00:09:41.500
 click on finish and now you'll have to restart your

187
00:09:41.500 --> 00:09:41.800
 computer.

188
00:09:42.700 --> 00:09:46.000
So I'm going to stop the video here temporarily and

189
00:09:45.500 --> 00:09:48.500
 restart my computer to ensure all the changes

190
00:09:48.500 --> 00:09:52.000
 have taken place. So I'll check you guys back within

191
00:09:51.200 --> 00:09:52.400
 a few seconds.

192
00:09:54.100 --> 00:09:57.400
Sonorad vagrant is installed. Let's open our

193
00:09:57.400 --> 00:10:01.500
 Command Prompt simply click the windows icon search

194
00:10:00.500 --> 00:10:04.000
 CMD and select

195
00:10:03.200 --> 00:10:05.200
 the command prompt application.

196
00:10:05.900 --> 00:10:08.300
Once the command prompt is open we can

197
00:10:08.300 --> 00:10:11.800
 use this first command to Simply allow

198
00:10:11.800 --> 00:10:14.900
 us to install a vagrant reload plugin.

199
00:10:16.500 --> 00:10:19.600
Simply enter the command as it is wagon plugin

200
00:10:19.600 --> 00:10:22.800
 install fire and dash reload hit enter

201
00:10:22.800 --> 00:10:26.100
 and this should take a few seconds to

202
00:10:25.100 --> 00:10:28.800
 Pops a minute or two to actually download and install

203
00:10:28.800 --> 00:10:30.500
 the vagrant login onto your system.

204
00:10:32.400 --> 00:10:35.800
Now the plugin is installed. We need to install one additional plugin.

205
00:10:35.800 --> 00:10:38.400
 This one is a vagrant plugin

206
00:10:38.400 --> 00:10:41.400
 install foreign VB guest, press enter

207
00:10:41.400 --> 00:10:44.200
 an as always. It will take a few seconds to

208
00:10:44.200 --> 00:10:45.800
 perhaps a few minutes to complete.

209
00:10:46.900 --> 00:10:49.300
Great. So now board plugins are

210
00:10:49.300 --> 00:10:52.900
 downloaded are installed automatically on vagrant next

211
00:10:52.900 --> 00:10:55.800
 we'll need to add the metasploitable tree

212
00:10:55.800 --> 00:10:59.100
 Windows sewer 2008 version on

213
00:10:58.100 --> 00:11:01.900
 to our system using vagrant to

214
00:11:01.900 --> 00:11:04.700
 do this. We will use the command fogger unbox

215
00:11:04.700 --> 00:11:07.900
 odd rapid slash metasploitable

216
00:11:07.900 --> 00:11:10.700
 tree dash win two

217
00:11:10.700 --> 00:11:12.800
 key eat like so

218
00:11:13.400 --> 00:11:16.700
Once we do this, it will be added onto our

219
00:11:16.700 --> 00:11:19.300
 system and next we'll get a message

220
00:11:19.300 --> 00:11:22.400
 asking us. Hey, which platform Do

221
00:11:22.400 --> 00:11:26.100
 you want to build a spiritual machine for so since we're

222
00:11:25.100 --> 00:11:28.300
 using virtualbox, we can simply

223
00:11:28.300 --> 00:11:30.700
 select option one like so

224
00:11:31.500 --> 00:11:34.600
Now it is downloaded the image from the internet and this

225
00:11:34.600 --> 00:11:37.200
 should take a few minutes to complete. So I'm gonna

226
00:11:37.200 --> 00:11:40.400
 pause the video on once this is completed. We'll proceed photo.

227
00:11:41.700 --> 00:11:44.900
Okay, so after a few moments, which

228
00:11:44.900 --> 00:11:47.600
 is a lot of minutes it actually finish completed

229
00:11:47.600 --> 00:11:48.100
 downloading.

230
00:11:48.800 --> 00:11:51.400
So the next step is we need to go into

231
00:11:51.400 --> 00:11:53.500
 Windows Explorer like so

232
00:11:54.300 --> 00:11:57.200
let's head over to the C drive.

233
00:11:57.900 --> 00:12:01.200
Then we'll go into users select your

234
00:12:00.200 --> 00:12:03.500
 user folder and my situation.

235
00:12:03.500 --> 00:12:05.000
 It's actually my name.

236
00:12:05.900 --> 00:12:10.100
Here we'll go into the dot vagrant.d

237
00:12:08.100 --> 00:12:11.100
 file or the full

238
00:12:11.100 --> 00:12:11.600
 itself.

239
00:12:12.200 --> 00:12:16.000
Next we'll go into boxes and Witten

240
00:12:15.200 --> 00:12:18.400
 boxes. This is the folder with

241
00:12:18.400 --> 00:12:20.000
 a contents that we just downloaded.

242
00:12:21.300 --> 00:12:24.700
We will need to rename the solo. So simply rename

243
00:12:24.700 --> 00:12:27.500
 it through metasploitable tree -

244
00:12:27.500 --> 00:12:30.300
 win 2K8 like so

245
00:12:31.300 --> 00:12:34.400
Once we rename this folder, let's head over back

246
00:12:34.400 --> 00:12:36.200
 to our Command Prompt.

247
00:12:37.300 --> 00:12:40.200
So on our Command Prompt we can change our working

248
00:12:40.200 --> 00:12:43.600
 directory to dot vagrant like so

249
00:12:44.800 --> 00:12:48.800
and use a subdirectory of boxes.

250
00:12:50.200 --> 00:12:52.700
Next we can do vagrant.

251
00:12:56.600 --> 00:12:57.000
in it

252
00:12:58.200 --> 00:13:01.300
and metasploitable tree -

253
00:13:01.300 --> 00:13:03.700
 2 key it like so.

254
00:13:04.300 --> 00:13:07.300
Hit enter and this should take a few

255
00:13:07.300 --> 00:13:10.100
 minutes to actually build a virtual machine.

256
00:13:11.000 --> 00:13:11.500
actually

257
00:13:13.300 --> 00:13:16.800
It seemed to have created a vagrone file. So excellent to

258
00:13:16.800 --> 00:13:18.500
 to build a virtual machine.

259
00:13:19.500 --> 00:13:22.500
And place it in virtualbox. We need to use a vagrant

260
00:13:22.500 --> 00:13:23.700
 up command like so

261
00:13:24.100 --> 00:13:26.500
and this one will actually take a few minutes to complete.

262
00:13:33.100 --> 00:13:36.600
Okay, great. So now the build is complete and let's check our

263
00:13:36.600 --> 00:13:39.100
 virtualbox application. I can

264
00:13:39.100 --> 00:13:42.800
 see that there's a new virtual machine as automatically automatically created

265
00:13:42.800 --> 00:13:45.100
 and it's currently in a running state.

266
00:13:45.600 --> 00:13:48.700
Select double click on it to actually access the

267
00:13:48.700 --> 00:13:49.700
 user interface.

268
00:13:50.300 --> 00:13:53.000
And we need to do control all delete to do

269
00:13:53.200 --> 00:13:57.200
 this simply click on input keyboards keyboard

270
00:13:56.200 --> 00:14:00.100
 on then select insert control

271
00:13:59.100 --> 00:14:03.000
 all delete. We can log into either

272
00:14:02.400 --> 00:14:05.700
 the administrator account or the

273
00:14:05.700 --> 00:14:09.100
 vagrant account both the username. Actually

274
00:14:08.100 --> 00:14:11.600
 the passwords are the same for both

275
00:14:11.600 --> 00:14:14.100
 of these accounts. So whether you are logging in

276
00:14:14.100 --> 00:14:17.300
 into the administrator account or the wagon account,

277
00:14:17.300 --> 00:14:20.400
 the password is vagrant in lowercase.

278
00:14:24.600 --> 00:14:27.600
Once you are logged in simply click on the console

279
00:14:27.600 --> 00:14:30.200
 button to cancel the Windows activation.

280
00:14:31.900 --> 00:14:34.600
And now the desktop interface loots

281
00:14:34.600 --> 00:14:38.000
 let's shut down this operating system

282
00:14:37.600 --> 00:14:40.600
 because we need to make some minor adjustments

283
00:14:40.600 --> 00:14:43.700
 to ensure. This virtual machine is connected

284
00:14:43.700 --> 00:14:47.500
 to boot our pen testnet

285
00:14:47.500 --> 00:14:48.900
 on our head Network.

286
00:14:51.600 --> 00:14:54.200
Great. So this virtual machine is powered on.

287
00:14:55.400 --> 00:14:58.100
Let's select the virtual machine click on settings.

288
00:14:59.100 --> 00:15:02.600
And firstly let's ensure that we rename our

289
00:15:02.600 --> 00:15:03.200
 virtual machine.

290
00:15:03.900 --> 00:15:07.200
So I'm going to change the name from boxes default to

291
00:15:06.200 --> 00:15:08.800
 metasploitable.

292
00:15:10.500 --> 00:15:13.500
Three like so and I'm

293
00:15:13.500 --> 00:15:16.300
 gonna specify when VM so I will know this

294
00:15:16.300 --> 00:15:19.500
 is a Windows Virtual Machine version of the

295
00:15:19.500 --> 00:15:20.400
 metasploitable tree.

296
00:15:21.100 --> 00:15:24.200
Next on system you can increase or decrease the

297
00:15:24.200 --> 00:15:27.600
 memory that is all located to this visual machine, but we

298
00:15:27.600 --> 00:15:30.600
 can leave it as default on the CPU.

299
00:15:30.600 --> 00:15:32.600
 We can leave the CPUs default as well.

300
00:15:33.300 --> 00:15:36.600
Display memory you want to ensure the video memory

301
00:15:36.600 --> 00:15:38.200
 is within the green zone.

302
00:15:39.300 --> 00:15:42.700
next you want to ensure the graphics controller is used

303
00:15:42.700 --> 00:15:45.600
 in vbox svge like so

304
00:15:46.500 --> 00:15:49.600
next click on Netflix and change

305
00:15:49.600 --> 00:15:52.400
 adapter one to internal Network.

306
00:15:53.500 --> 00:15:56.600
if there's an internal Network configure the already simply delete

307
00:15:56.600 --> 00:15:59.600
 it and specify pen test net

308
00:15:59.600 --> 00:16:00.100
 like so

309
00:16:00.700 --> 00:16:03.500
Next expand advanced settings

310
00:16:03.500 --> 00:16:07.300
 and change a promo skill smooth to allow

311
00:16:06.300 --> 00:16:09.400
 all ensure. The key

312
00:16:09.400 --> 00:16:10.100
 will is connected.

313
00:16:10.800 --> 00:16:13.200
next click on adapter to

314
00:16:13.200 --> 00:16:15.200
 enable adapter to

315
00:16:16.300 --> 00:16:19.600
change our thoughts to to internal Network and

316
00:16:19.600 --> 00:16:23.600
 ensure it is set to hit net. Lastly click

317
00:16:22.600 --> 00:16:25.600
 on promiscuous mode and

318
00:16:25.600 --> 00:16:28.500
 set it to our lower wall. Once you're finished click on

319
00:16:28.500 --> 00:16:28.900
 OK

320
00:16:29.800 --> 00:16:32.400
Finally, let's power on our virtual

321
00:16:32.400 --> 00:16:36.100
 machine once more to ensure that metasploitable tree.

322
00:16:35.100 --> 00:16:38.400
 The windows vision is connected

323
00:16:38.400 --> 00:16:41.500
 to both or pen. Test Network on our

324
00:16:41.500 --> 00:16:42.100
 head Network.

325
00:16:46.100 --> 00:16:49.200
Great. So the virtual machine is powered on

326
00:16:49.200 --> 00:16:53.600
 let's click on input keyboard insert

327
00:16:52.600 --> 00:16:54.400
 control all delete.

328
00:16:55.700 --> 00:16:58.700
As I mentioned previously you can log into either accounts

329
00:16:58.700 --> 00:17:01.700
 because the password is the same which is vagrant and

330
00:17:01.700 --> 00:17:02.300
 lowercase.

331
00:17:06.500 --> 00:17:08.000
simply click on console

332
00:17:08.700 --> 00:17:11.500
and let us click on the command

333
00:17:11.500 --> 00:17:14.500
 prompt and let's verify that we have two network

334
00:17:14.500 --> 00:17:17.100
 adapters presented and ensuring that we

335
00:17:17.100 --> 00:17:20.400
 are getting IP addresses on the two different dates V servers.

336
00:17:20.400 --> 00:17:22.800
 So let's type ip config like so

337
00:17:23.800 --> 00:17:26.300
And here we can see network adapter one.

338
00:17:26.300 --> 00:17:29.600
 We are getting an IP address on the 172

339
00:17:29.600 --> 00:17:32.800
 tt1.092 and

340
00:17:32.800 --> 00:17:35.700
 for adapter 2 which is connected to the hidden network.

341
00:17:35.700 --> 00:17:38.200
 We are getting an IP address on the 10

342
00:17:38.200 --> 00:17:41.900
 11 12.0 Network. So excellent.

343
00:17:41.900 --> 00:17:44.800
 This virtual machine is configured correctly for

344
00:17:44.800 --> 00:17:47.300
 our lab environment. Let's shut down this

345
00:17:47.300 --> 00:17:50.300
 virtual machine gracefully. We can select any of these

346
00:17:50.300 --> 00:17:50.800
 options.

347
00:17:56.700 --> 00:17:57.400
and finally

348
00:17:58.500 --> 00:18:00.000
Let us create a snapshot.

349
00:18:01.200 --> 00:18:05.300
We can simply create a snapshot to ensure that everything

350
00:18:04.300 --> 00:18:07.900
 is we can find and if anything should

351
00:18:07.900 --> 00:18:11.300
 go wrong we can simply restore all

352
00:18:10.300 --> 00:18:13.200
 virtual machine to this point in time.

353
00:18:14.700 --> 00:18:18.100
Alright great. So now we have a snapshot created. However,

354
00:18:17.100 --> 00:18:20.700
 we need to do one additional

355
00:18:20.700 --> 00:18:21.000
 thing.

356
00:18:21.900 --> 00:18:25.100
Because all virtual machine is existed within

357
00:18:24.100 --> 00:18:27.400
 our vagran that the slash

358
00:18:27.400 --> 00:18:30.700
 boxes folder. Let's move this virtual

359
00:18:30.700 --> 00:18:33.700
 machine. So I'm going to cut this entire folder.

360
00:18:34.200 --> 00:18:37.500
That I'm going to head over to my D drive into my

361
00:18:37.500 --> 00:18:40.300
 virtualbox VM folder and place it

362
00:18:40.300 --> 00:18:42.400
 where all my virtual machines live.

363
00:18:45.500 --> 00:18:48.600
Because I'm moving this entire virtual machine files.

364
00:18:48.600 --> 00:18:52.100
 If I decide a power on this virtual

365
00:18:51.100 --> 00:18:54.500
 machine on virtualbox, it will not work

366
00:18:54.500 --> 00:18:57.400
 simply because of virtual hard drive is moved

367
00:18:57.400 --> 00:19:00.200
 to fix this problem. Let's click on settings.

368
00:19:01.600 --> 00:19:02.200
storage

369
00:19:03.200 --> 00:19:06.800
click on a virtual this file like so then

370
00:19:06.800 --> 00:19:10.100
 click on this hard drive

371
00:19:09.100 --> 00:19:10.600
 icon.

372
00:19:11.300 --> 00:19:11.700
choose

373
00:19:12.600 --> 00:19:13.900
choose a dis file.

374
00:19:15.100 --> 00:19:18.800
Next let us navigate to where we have stored all

375
00:19:18.800 --> 00:19:19.800
 virtual machine.

376
00:19:20.800 --> 00:19:23.200
So this PC d Drive?

377
00:19:24.300 --> 00:19:25.500
bushel box VM

378
00:19:26.400 --> 00:19:29.900
and here I can simply select metasploitable tree

379
00:19:29.900 --> 00:19:32.900
 win two key inside a

380
00:19:32.900 --> 00:19:35.300
 weekly fuller side of virtualbox and here

381
00:19:35.300 --> 00:19:38.200
 I have the virtual disk file

382
00:19:38.200 --> 00:19:40.900
 simply click on OK

383
00:19:41.600 --> 00:19:44.600
And as always for good practice, let's pour

384
00:19:44.600 --> 00:19:47.300
 on our virtual machine one last time to ensure it is

385
00:19:47.300 --> 00:19:48.200
 working perfectly.

386
00:19:53.900 --> 00:19:56.600
And so far all virtual machine is booting.

387
00:19:56.600 --> 00:19:57.400
 So great.

388
00:20:01.200 --> 00:20:05.100
So at this point we have metasploitable tree

389
00:20:04.100 --> 00:20:07.700
 Windows vision and metasploitable 2

390
00:20:07.700 --> 00:20:09.700
 located in all pen. Test Network.

391
00:20:13.100 --> 00:20:16.700
Next let us set up the metasploitable tree the

392
00:20:16.700 --> 00:20:19.000
 Lennox Vision, but the last version will be

393
00:20:19.500 --> 00:20:22.400
 pleased within the hit Network to do this. We can

394
00:20:22.400 --> 00:20:24.100
 head over back to our Command Prompt.

395
00:20:25.200 --> 00:20:26.400
like so

396
00:20:27.300 --> 00:20:31.200
and we can simply type CD

397
00:20:30.200 --> 00:20:32.700
 dot dot a few times.

398
00:20:33.600 --> 00:20:36.400
To go back to our main working directory like

399
00:20:36.400 --> 00:20:39.700
 so and this time since we already have

400
00:20:39.700 --> 00:20:43.600
 some of the commands that were already executed I

401
00:20:42.600 --> 00:20:45.600
 can simply use up button a

402
00:20:45.600 --> 00:20:48.600
 few times and just make a minor change this

403
00:20:48.600 --> 00:20:51.300
 time. We're going to add the metastasloidable tree.

404
00:20:53.400 --> 00:20:56.400
ubon 2 14 0 4

405
00:20:56.400 --> 00:20:58.000
 Fusion like so

406
00:21:01.800 --> 00:21:04.400
great. Now we will use option one

407
00:21:04.400 --> 00:21:07.100
 for virtualbox like so and this will take

408
00:21:07.100 --> 00:21:10.800
 a few minutes to download. So I'm gonna pause the video until this

409
00:21:10.800 --> 00:21:11.200
 is completed.

410
00:21:12.900 --> 00:21:15.700
So now the download is complete we can proceed filter.

411
00:21:15.700 --> 00:21:18.900
 Let's head over back to our File Explorer.

412
00:21:19.700 --> 00:21:22.500
And this time we're going to head back to our previous

413
00:21:22.500 --> 00:21:23.300
 directory.

414
00:21:24.200 --> 00:21:26.300
So we're gonna click on this PC.

415
00:21:27.100 --> 00:21:29.100
C drive users

416
00:21:30.100 --> 00:21:33.600
select your profile or your profile with the

417
00:21:33.600 --> 00:21:34.100
 folder?

418
00:21:34.700 --> 00:21:35.600
and select

419
00:21:36.400 --> 00:21:38.000
vagrant.d

420
00:21:38.900 --> 00:21:41.300
Then we're gonna select boxes and here

421
00:21:41.300 --> 00:21:44.300
 we can see the new file is downloaded within

422
00:21:44.300 --> 00:21:47.600
 this folder. Once again, we just have to rename the

423
00:21:47.600 --> 00:21:50.400
 solar to be metasploitable tree

424
00:21:50.100 --> 00:21:53.700
 - u b 1404 great.

425
00:21:54.500 --> 00:21:57.800
Once we do this, we then need to delete this

426
00:21:57.800 --> 00:22:00.700
 file inside here, which is the vagrant file.

427
00:22:01.300 --> 00:22:04.600
Simply because the configurations on this background file is

428
00:22:04.600 --> 00:22:07.500
 applicable to the previous version of metasploy that

429
00:22:07.500 --> 00:22:10.400
 we set up which is the windows version. So simply click on delete

430
00:22:10.400 --> 00:22:12.500
 and there you go. It's deleted.

431
00:22:13.400 --> 00:22:16.500
Next unlike the process that

432
00:22:16.500 --> 00:22:19.900
 we use previously to build a Windows version of metasoice

433
00:22:19.900 --> 00:22:22.400
 all tree with the loud

434
00:22:22.400 --> 00:22:25.200
 solution. It is a little bit complicated and sometimes things

435
00:22:25.200 --> 00:22:28.000
 don't work as expected. However, what we can

436
00:22:28.200 --> 00:22:30.100
 do this time is we can simply copy.

437
00:22:31.600 --> 00:22:32.300
this entire folder

438
00:22:32.800 --> 00:22:35.500
and place it in the directory where all

439
00:22:35.500 --> 00:22:37.200
 of our virtual machines actually live.

440
00:22:38.100 --> 00:22:42.300
So I can go into my D drive virtualbox VMS.

441
00:22:43.200 --> 00:22:45.300
And simply piece it in this directory.

442
00:22:45.900 --> 00:22:48.800
The reason being is if I go into metasploitable

443
00:22:48.800 --> 00:22:52.100
 tree ub1404 folder into

444
00:22:51.100 --> 00:22:52.900
 the weekly build.

445
00:22:53.800 --> 00:22:57.200
There's already a virtual hard disk and this

446
00:22:56.200 --> 00:23:00.400
 which will hard disk could be open with virtualbox. So

447
00:22:59.400 --> 00:23:02.700
 as a simple shortcut we can

448
00:23:02.700 --> 00:23:06.400
 right click on the box file simply

449
00:23:05.400 --> 00:23:08.700
 select open with and select

450
00:23:08.700 --> 00:23:11.400
 the option for virtualbox manager like

451
00:23:11.400 --> 00:23:11.800
 so

452
00:23:12.600 --> 00:23:15.700
now will be able to actually import this

453
00:23:15.700 --> 00:23:18.700
 virtual machine into our computer. Well

454
00:23:18.700 --> 00:23:20.400
 individual box particularly.

455
00:23:21.600 --> 00:23:24.600
So therefore we can simply click on import like so

456
00:23:25.700 --> 00:23:28.300
alright great. So the import process is completed.

457
00:23:28.300 --> 00:23:31.200
 Let's do a couple of things. Let's click on settings.

458
00:23:32.900 --> 00:23:35.300
Let's change the name of this virtual machine

459
00:23:35.300 --> 00:23:35.500
 to

460
00:23:37.100 --> 00:23:38.100
my display table

461
00:23:41.300 --> 00:23:44.400
and let's type locks. So we'll know that this

462
00:23:44.400 --> 00:23:46.700
 is a Linux vision of metasputabletree.

463
00:23:49.300 --> 00:23:52.300
Next let's click on system and we can reduce

464
00:23:52.300 --> 00:23:55.300
 some motor system memory that is a lucky to switch

465
00:23:55.300 --> 00:23:59.300
 on machine. Let's use 2048 which

466
00:23:59.300 --> 00:24:01.300
 will be equivalent to two gigs of RAM.

467
00:24:01.800 --> 00:24:04.400
The CPU we can leave a CPUs default

468
00:24:04.400 --> 00:24:07.800
 display. We want to ensure that display

469
00:24:07.800 --> 00:24:09.300
 memory is within the green zone.

470
00:24:09.900 --> 00:24:13.200
next let us change to vbox

471
00:24:12.200 --> 00:24:15.100
 SVG like so

472
00:24:16.300 --> 00:24:19.700
and we are still getting one problem. Okay. So this

473
00:24:19.700 --> 00:24:22.200
 time we actually have to check the error message. You see what

474
00:24:22.200 --> 00:24:25.300
 is the recommended Graphics controller to use which is

475
00:24:25.300 --> 00:24:26.800
 VM SVG.

476
00:24:30.100 --> 00:24:34.000
All right, great. So now the error has disappeared. Lastly. Let's

477
00:24:33.200 --> 00:24:36.500
 click on network and change the

478
00:24:36.500 --> 00:24:39.100
 adapter to internal host.

479
00:24:39.800 --> 00:24:42.300
and change the name to hidden network

480
00:24:42.300 --> 00:24:46.100
 or hidden that as soon on the screen and lastly set

481
00:24:45.100 --> 00:24:47.400
 promiscuous move to allow all

482
00:24:48.400 --> 00:24:51.400
and show all the other network adapters adopted to three and

483
00:24:51.400 --> 00:24:53.900
 four are all the siebel and click on OK.

484
00:24:54.500 --> 00:24:57.400
Now we are getting an error here. It says feel to

485
00:24:57.400 --> 00:25:01.500
 save the settings. Okay, let's click on Okie and

486
00:25:00.500 --> 00:25:03.200
 this I'm let us pull on

487
00:25:03.200 --> 00:25:05.400
 the virtual machine to see if it's working properly.

488
00:25:06.600 --> 00:25:09.300
What is powered on we can then save it and then

489
00:25:09.300 --> 00:25:12.300
 three attempt to actually change the network configurations?

490
00:25:13.300 --> 00:25:16.400
So currently it's booting excellent

491
00:25:17.200 --> 00:25:20.600
We'll wait for the boot and then we will reattempt cut.

492
00:25:21.300 --> 00:25:24.400
Once it's booted we will reattempt to actually change

493
00:25:24.400 --> 00:25:25.600
 the network configurations.

494
00:25:26.900 --> 00:25:30.700
So the username is administrator and

495
00:25:30.700 --> 00:25:33.500
 the password is far Grant like so

496
00:25:36.300 --> 00:25:39.200
Okay, so let's try vagrant instead as a username.

497
00:25:39.800 --> 00:25:42.400
And try vagrant as the

498
00:25:42.400 --> 00:25:42.700
 password.

499
00:25:44.900 --> 00:25:47.500
Alright, so now that we are logged in into the virtual machine.

500
00:25:48.200 --> 00:25:51.900
Let's shot machine. Let's use sudo and let's

501
00:25:51.900 --> 00:25:52.800
 type shutdown.

502
00:25:54.100 --> 00:25:57.700
And this one's not working. So let's do sudo on

503
00:25:57.700 --> 00:25:59.000
 hold instead.

504
00:25:59.700 --> 00:26:02.100
So great. The virtual machine is going to be powered on.

505
00:26:11.700 --> 00:26:14.600
Alright, so one more time let us attempt to

506
00:26:14.600 --> 00:26:16.300
 change the network adapter settings.

507
00:26:23.700 --> 00:26:26.400
Right. So the network adapted settings has changed.

508
00:26:26.400 --> 00:26:29.300
 Let's click on settings one more time and let's fix

509
00:26:29.300 --> 00:26:30.200
 the video memory.

510
00:26:30.900 --> 00:26:33.600
So the video memory is showing that it is less than 9

511
00:26:33.600 --> 00:26:37.900
 Megs and we should use the vmsvge.

512
00:26:38.600 --> 00:26:39.400
graphics driver

513
00:26:40.600 --> 00:26:44.300
So let's increase this to let's say 10 that

514
00:26:43.300 --> 00:26:47.000
 changes the VM SVG and

515
00:26:46.100 --> 00:26:49.300
 click on OK. Let's pull on the virtual machine

516
00:26:49.300 --> 00:26:51.600
 one more time to ensure things we can perfectly

517
00:27:02.400 --> 00:27:04.300
Now, let's login user invagrant.

518
00:27:05.300 --> 00:27:06.900
And vagrant one more time.

519
00:27:08.100 --> 00:27:11.800
Let's type ipaddr to verify that

520
00:27:11.800 --> 00:27:14.900
 our ethernet 0 interface is receiving

521
00:27:14.900 --> 00:27:17.100
 an IP address within our hidden network

522
00:27:17.100 --> 00:27:21.100
 as you can see it is 10 11 12 to

523
00:27:20.100 --> 00:27:22.900
 20. So this is we can perfectly

524
00:27:23.900 --> 00:27:25.000
let's type shutdown.

525
00:27:26.200 --> 00:27:30.400
And shotong is not working. So let's do sudo. Let's

526
00:27:29.400 --> 00:27:31.900
 type hold.

527
00:27:41.900 --> 00:27:44.200
If the virtual machine is taking too long to

528
00:27:44.200 --> 00:27:47.300
 shut down simply click the close icon and select the option

529
00:27:47.300 --> 00:27:49.000
 to actually power off the virtual machine.

530
00:27:49.800 --> 00:27:52.600
Last but not least. Let's create a snapshot click on

531
00:27:52.600 --> 00:27:53.100
 Snapshot.

532
00:27:54.400 --> 00:27:56.200
Take snapshot and let's call this.

533
00:27:57.600 --> 00:27:59.700
fresh installation like so

534
00:28:00.700 --> 00:28:01.600
I'll click on OK.

535
00:28:04.700 --> 00:28:08.000
So great. Now we have our penetration

536
00:28:07.600 --> 00:28:10.100
 Testing Lab setup. The last thing we

537
00:28:10.100 --> 00:28:13.800
 need to do is actually set up our vulnerable web

538
00:28:13.800 --> 00:28:16.000
 application which will be covered in the next

539
00:28:16.100 --> 00:28:18.600
 video on setup a wireless network.

540
00:28:21.100 --> 00:28:24.200
During the course of this video. We took a look at setting up a

541
00:28:24.200 --> 00:28:27.300
 couple of virtual machines within all patient Testing Lab environment

542
00:28:27.300 --> 00:28:30.700
 while this video may be seem to be quite long. However,

543
00:28:30.700 --> 00:28:33.600
 the process is quite likely but I highly recommend

544
00:28:33.600 --> 00:28:36.200
 that you take the time to carefully set of these virtual

545
00:28:36.200 --> 00:28:40.000
 machines simply because these virtual machines will contain a

546
00:28:39.200 --> 00:28:43.100
 list of security flows that is commonly exploitable

547
00:28:42.100 --> 00:28:44.100
 within the industry.

548
00:28:46.100 --> 00:28:49.700
In the next video, we'll take a look at setting up vulnerable web

549
00:28:49.700 --> 00:28:52.300
 applications for web application security

550
00:28:52.300 --> 00:28:55.100
 penetration testing. I will see you in the next

551
00:28:55.100 --> 00:28:55.400
 video.
