WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.400 --> 00:00:10.800
In this video, you will learn about various spiking

1
00:00:10.800 --> 00:00:12.100
 and forcing techniques.

2
00:00:12.800 --> 00:00:15.400
I hope you excited. So let's dive on

3
00:00:15.400 --> 00:00:15.500
 in.

4
00:00:18.200 --> 00:00:21.800
To get started with spiking and Frozen. Let's ensure the

5
00:00:21.800 --> 00:00:24.500
 Windows Defender Firewall is this evil

6
00:00:24.500 --> 00:00:28.100
 and also the Windows Defender antivirus real

7
00:00:27.100 --> 00:00:28.500
 time protection?

8
00:00:30.100 --> 00:00:33.600
Simply click on the Windows icon like so click on

9
00:00:33.600 --> 00:00:34.100
 settings.

10
00:00:35.200 --> 00:00:38.600
Then select update and security.

11
00:00:40.100 --> 00:00:43.100
next simply click on Windows security

12
00:00:44.300 --> 00:00:47.800
and here you can see the virus and thread protection simply select

13
00:00:47.800 --> 00:00:48.100
 it.

14
00:00:49.200 --> 00:00:51.600
next select manage settings

15
00:00:53.100 --> 00:00:56.300
and ensure the real-time protection is off.

16
00:00:58.600 --> 00:01:01.400
Additionally, you can see the firewall on network protections also

17
00:01:01.400 --> 00:01:03.500
 disable from our previous video.

18
00:01:04.500 --> 00:01:05.000
Great.

19
00:01:07.100 --> 00:01:11.300
to get started simply open the valve

20
00:01:10.300 --> 00:01:12.700
 silver Master Fuller like so

21
00:01:14.300 --> 00:01:18.200
And let's execute the valve server using

22
00:01:17.200 --> 00:01:19.600
 administrative privileges.

23
00:01:20.300 --> 00:01:22.600
simply select right click

24
00:01:23.200 --> 00:01:26.000
and select the option to run as administrator.

25
00:01:26.700 --> 00:01:28.100
and simply select run

26
00:01:29.600 --> 00:01:30.400
and also see like yes.

27
00:01:31.400 --> 00:01:35.200
So currently the application is running with administrative

28
00:01:34.200 --> 00:01:37.100
 privileges excellent

29
00:01:38.600 --> 00:01:42.000
next let's run immunity debugger

30
00:01:41.500 --> 00:01:44.100
 with administrative privileges as well.

31
00:01:45.400 --> 00:01:45.700
simply select

32
00:01:47.200 --> 00:01:51.100
and choose option run as administrator.

33
00:01:52.500 --> 00:01:53.400
Click on yes.

34
00:01:56.200 --> 00:01:59.800
And here we go, we have immunity debugger running

35
00:01:59.800 --> 00:02:01.500
 with administrative privileges.

36
00:02:02.800 --> 00:02:04.800
Next we need to attach.

37
00:02:05.700 --> 00:02:09.600
the Vol server Services onto immunity

38
00:02:09.600 --> 00:02:10.000
 debugger

39
00:02:10.600 --> 00:02:13.100
to do this simply click on file

40
00:02:14.900 --> 00:02:16.100
select attach

41
00:02:16.800 --> 00:02:19.700
and now we can see a list

42
00:02:19.700 --> 00:02:22.600
 of applications that are running on our Windows operating

43
00:02:22.600 --> 00:02:22.900
 system.

44
00:02:24.400 --> 00:02:27.100
simply select Volvo like so

45
00:02:27.700 --> 00:02:29.000
and then click on a touch.

46
00:02:30.000 --> 00:02:30.400
Great.

47
00:02:32.300 --> 00:02:35.400
Once the application is attached. It will be pause

48
00:02:35.400 --> 00:02:37.800
 automatically with an immunity debugger.

49
00:02:38.500 --> 00:02:41.500
to run the application simply click the play

50
00:02:41.500 --> 00:02:43.700
 button like so

51
00:02:45.600 --> 00:02:47.600
another application is running in real time.

52
00:02:49.800 --> 00:02:52.300
Now let's head over to our Kali Lennox

53
00:02:52.300 --> 00:02:52.600
 machine.

54
00:03:00.500 --> 00:03:00.800
Great.

55
00:03:02.100 --> 00:03:04.300
simply open the terminal like so

56
00:03:09.500 --> 00:03:11.700
let's start a netcard connection.

57
00:03:12.700 --> 00:03:15.600
To our Target system targets is

58
00:03:15.600 --> 00:03:18.800
 some being a Windows 10 virtual

59
00:03:18.800 --> 00:03:19.000
 machine.

60
00:03:19.700 --> 00:03:22.300
Firstly let's grab the IP address of

61
00:03:22.300 --> 00:03:23.900
 our Windows 10 virtual machine.

62
00:03:24.900 --> 00:03:27.500
simply open the command prompt and type

63
00:03:27.500 --> 00:03:28.900
 ipconfig like so

64
00:03:30.400 --> 00:03:34.400
right now all virtual machine. It's 10:30

65
00:03:33.400 --> 00:03:36.500
 one 40.

66
00:03:42.400 --> 00:03:45.600
On our cardi long switching machine, let's type and see

67
00:03:45.600 --> 00:03:47.400
 - Envy.

68
00:03:48.200 --> 00:03:51.700
followed by the IP address of our Target

69
00:03:51.700 --> 00:03:52.000
 system

70
00:03:52.900 --> 00:03:54.400
a 999

71
00:03:55.400 --> 00:03:58.700
simply because wall server listens

72
00:03:58.700 --> 00:04:01.200
 automatically on Port 9999.

73
00:04:02.500 --> 00:04:03.100
Hit enter.

74
00:04:04.300 --> 00:04:05.000
And great.

75
00:04:05.800 --> 00:04:08.400
Currently we can see we have established a session

76
00:04:08.400 --> 00:04:11.300
 and we have received a welcome Banner that

77
00:04:11.300 --> 00:04:13.800
 says welcome to vulnerable civil.

78
00:04:14.400 --> 00:04:17.400
And to help for help, so let's do that.

79
00:04:22.200 --> 00:04:24.200
let's type help like so

80
00:04:24.800 --> 00:04:27.000
all Upper Keys and press enter.

81
00:04:28.600 --> 00:04:31.600
Right now it shows all the commands are accepted

82
00:04:31.600 --> 00:04:33.500
 within wall server.

83
00:04:34.300 --> 00:04:38.100
However, we're going to take a look at which of

84
00:04:37.100 --> 00:04:41.300
 these commands actually vulnerable so

85
00:04:40.300 --> 00:04:43.900
 we can check our time

86
00:04:43.900 --> 00:04:46.200
 and you can even check Tron.

87
00:04:47.300 --> 00:04:48.200
Let's type exit.

88
00:04:50.100 --> 00:04:52.900
Create firstly. Let's attempt.

89
00:04:53.500 --> 00:04:56.700
A technique called spiking with spiking it

90
00:04:56.700 --> 00:04:59.600
 simply allows us to determine if a

91
00:04:59.600 --> 00:05:02.500
 specific component or a command of

92
00:05:02.500 --> 00:05:06.000
 an application or a service is vulnerable

93
00:05:05.600 --> 00:05:08.600
 simply by sending malformed data

94
00:05:08.600 --> 00:05:10.300
 into that specific application.

95
00:05:11.500 --> 00:05:14.600
For instance. There's a lot of commands that are

96
00:05:14.600 --> 00:05:17.600
 supported on Fall server. For instance.

97
00:05:17.600 --> 00:05:20.800
 We have starts our time L time

98
00:05:20.800 --> 00:05:23.700
 ezron E1 Tyrone.

99
00:05:24.200 --> 00:05:27.900
So we will test a few of these on determine whether

100
00:05:27.900 --> 00:05:31.300
 we have any sort of security issues

101
00:05:30.300 --> 00:05:32.700
 with any of these commands.

102
00:05:34.300 --> 00:05:38.300
We can use a built-in tool called generic sand

103
00:05:37.300 --> 00:05:40.100
 TCP to do our spiking.

104
00:05:45.400 --> 00:05:48.600
simply by hitting enter on this command we can see the usage

105
00:05:48.600 --> 00:05:49.900
 which says

106
00:05:50.800 --> 00:05:53.000
generics and TCP. We need to

107
00:05:53.800 --> 00:05:56.200
 specify an IP address of our Target

108
00:05:56.200 --> 00:05:57.700
 the port number.

109
00:05:58.400 --> 00:06:00.300
And we need to create a spike script.

110
00:06:03.100 --> 00:06:06.400
we can skip variable of 0 and

111
00:06:07.200 --> 00:06:11.200
if we enter another zero, it will simply send malformed data

112
00:06:10.200 --> 00:06:14.200
 into the application and determine

113
00:06:13.200 --> 00:06:16.500
 whether any sort of breakage will actually

114
00:06:16.500 --> 00:06:17.000
 occur.

115
00:06:17.600 --> 00:06:20.500
To create our spikescript. Let's open

116
00:06:20.500 --> 00:06:22.100
 our text editor like so

117
00:06:24.700 --> 00:06:27.300
our next let's enter the following

118
00:06:27.300 --> 00:06:27.900
 commands.

119
00:06:30.100 --> 00:06:32.800
Line 1 will simply really line

120
00:06:33.500 --> 00:06:37.000
line 2 will simply send the r

121
00:06:36.200 --> 00:06:40.100
 time command into the valve server

122
00:06:39.100 --> 00:06:40.400
 application.

123
00:06:41.300 --> 00:06:45.400
Line 3 will simply send random malformed

124
00:06:44.400 --> 00:06:47.900
 data into the application to determine what

125
00:06:47.900 --> 00:06:49.100
 a breakage will occur.

126
00:06:49.700 --> 00:06:52.700
So this script will simply allow us to test each

127
00:06:52.700 --> 00:06:55.700
 command that is supported on the

128
00:06:55.700 --> 00:06:59.000
 wall server, but we are going to try the rtime

129
00:06:58.000 --> 00:06:59.500
 command.

130
00:07:00.100 --> 00:07:02.600
to save this simply click on file

131
00:07:04.100 --> 00:07:05.500
Let's click save us.

132
00:07:06.200 --> 00:07:09.300
And we can see that in this same directory.

133
00:07:09.900 --> 00:07:11.900
Let's call this R time.

134
00:07:12.800 --> 00:07:15.700
Dot S P key like

135
00:07:15.700 --> 00:07:17.900
 so and now click on Save.

136
00:07:18.700 --> 00:07:20.800
Great, so all script is safe.

137
00:07:21.400 --> 00:07:22.300
Let's close this.

138
00:07:23.800 --> 00:07:26.500
to send this bike across to

139
00:07:26.500 --> 00:07:28.200
 Val's River

140
00:07:28.900 --> 00:07:29.900
Let's press up.

141
00:07:30.700 --> 00:07:33.800
To get back our generics and TCP command.

142
00:07:34.500 --> 00:07:37.600
Let's specify the IP address of our

143
00:07:37.600 --> 00:07:38.200
 Target system.

144
00:07:45.600 --> 00:07:46.200
like so

145
00:07:47.500 --> 00:07:48.400
that specify

146
00:07:49.400 --> 00:07:52.800
The port number let's specify our

147
00:07:52.800 --> 00:07:53.800
 spy script.

148
00:07:54.400 --> 00:07:55.900
followed by two zeros

149
00:07:56.700 --> 00:07:57.500
unident

150
00:07:59.200 --> 00:08:02.800
currently we can see it is sending randomized and

151
00:08:02.800 --> 00:08:05.600
 continuous malformed data

152
00:08:05.600 --> 00:08:06.300
 into the application.

153
00:08:07.600 --> 00:08:11.100
If we switch back to immunity bugger.

154
00:08:11.700 --> 00:08:14.900
We can see the information has been written across and

155
00:08:14.900 --> 00:08:15.600
 it is being received.

156
00:08:16.400 --> 00:08:19.100
Let's head over back to Kali Lennox.

157
00:08:20.700 --> 00:08:23.100
Let's press Ctrl C to stop it.

158
00:08:24.200 --> 00:08:27.500
This application will run continuously for a

159
00:08:27.500 --> 00:08:31.300
 few minutes, but it will not detect any sort of breakage because

160
00:08:30.300 --> 00:08:33.400
 there are time command is

161
00:08:33.400 --> 00:08:34.400
 not vulnerable.

162
00:08:35.500 --> 00:08:38.500
So now let's modify our script.

163
00:08:39.100 --> 00:08:40.900
Let's try Tron instead.

164
00:08:44.200 --> 00:08:47.100
Let's open the text editor once more.

165
00:08:48.200 --> 00:08:51.500
Let's click on file. Let's click click on open.

166
00:08:52.800 --> 00:08:56.000
Let's select the rtime.spk file

167
00:08:55.400 --> 00:08:57.100
 and select coupon.

168
00:08:59.200 --> 00:09:01.200
This time let's change the command.

169
00:09:01.800 --> 00:09:04.600
to t r u n Tron like

170
00:09:04.600 --> 00:09:05.000
 so

171
00:09:06.200 --> 00:09:06.900
let's click file.

172
00:09:07.800 --> 00:09:08.700
Save us.

173
00:09:09.800 --> 00:09:12.600
And let's call it Tru n

174
00:09:12.600 --> 00:09:15.600
 dot spkey like so click on

175
00:09:15.600 --> 00:09:16.100
 Save.

176
00:09:16.900 --> 00:09:17.300
Great.

177
00:09:19.200 --> 00:09:22.100
Let's check immunity borrower to the two men.

178
00:09:22.100 --> 00:09:25.200
 What are our application is still running or not?

179
00:09:26.100 --> 00:09:28.300
And it is excellent.

180
00:09:29.200 --> 00:09:31.100
So back on to Kali Lennox.

181
00:09:32.100 --> 00:09:33.700
Let's press up a couple of times.

182
00:09:34.700 --> 00:09:37.400
Now, let's change the script that we are going to use

183
00:09:37.400 --> 00:09:38.500
 for spiking.

184
00:09:39.200 --> 00:09:42.300
This time it's our tiron or transcript.

185
00:09:43.300 --> 00:09:44.700
We'll put two zeros at end.

186
00:09:45.800 --> 00:09:46.100
and

187
00:09:47.500 --> 00:09:50.600
For you to see this properly. Let me readjust my

188
00:09:50.600 --> 00:09:52.000
 windows just a little bit.

189
00:09:53.900 --> 00:09:54.200
Great.

190
00:09:55.100 --> 00:09:57.200
So now we can see Kali Lennox.

191
00:09:57.900 --> 00:10:00.800
I'm gonna also see our immunity

192
00:10:00.800 --> 00:10:01.400
 debugger.

193
00:10:05.200 --> 00:10:06.300
Let's press enter.

194
00:10:07.400 --> 00:10:09.600
On Kali Linux and see what happens.

195
00:10:10.900 --> 00:10:13.700
And notice that a

196
00:10:13.700 --> 00:10:15.400
 script is continue to run.

197
00:10:16.300 --> 00:10:20.000
but on immunity debugger it pause

198
00:10:19.700 --> 00:10:22.100
 application and it is

199
00:10:22.100 --> 00:10:24.700
 telling us a security violation has a good

200
00:10:25.500 --> 00:10:28.700
let's stop the script on Kali logs by pressing control

201
00:10:28.700 --> 00:10:29.400
 and C.

202
00:10:30.400 --> 00:10:33.700
If you notice on immutable, it says

203
00:10:33.700 --> 00:10:35.200
 access violation.

204
00:10:35.900 --> 00:10:38.900
when executed 4 1 4

205
00:10:38.900 --> 00:10:40.900
 1 4 1 4 1

206
00:10:41.800 --> 00:10:42.500
furthermore

207
00:10:43.400 --> 00:10:46.300
if we look at the registers, we can

208
00:10:46.300 --> 00:10:49.200
 see at the eax register.

209
00:10:49.900 --> 00:10:53.100
the ASCII information shows strong

210
00:10:52.100 --> 00:10:56.000
 slash dot coolant slash

211
00:10:55.100 --> 00:10:58.000
 on a lot of these

212
00:10:59.100 --> 00:11:02.000
the ESP register also shows is

213
00:11:02.800 --> 00:11:05.600
The EIP register shows 4

214
00:11:05.600 --> 00:11:08.400
 1 4 1 4 1 4 1

215
00:11:08.400 --> 00:11:10.000
 what does this mean?

216
00:11:10.700 --> 00:11:12.600
Well, let's head over back to Kali.

217
00:11:13.500 --> 00:11:21.300
And we'll open our web browser. Let's switch

218
00:11:20.300 --> 00:11:23.800
 hex to ASCII.

219
00:11:26.500 --> 00:11:28.100
Let's click the first link.

220
00:11:28.800 --> 00:11:30.800
Let's enter 41.

221
00:11:31.500 --> 00:11:34.300
414141

222
00:11:35.900 --> 00:11:37.900
great, so we enter

223
00:11:39.200 --> 00:11:42.400
The values we saw on immunity debugger as a

224
00:11:42.400 --> 00:11:45.700
 hex value and let's convert it to ASCII.

225
00:11:46.300 --> 00:11:47.800
simply click on convert

226
00:11:48.900 --> 00:11:51.700
so therefore four one is

227
00:11:51.700 --> 00:11:52.500
 equal e

228
00:11:53.200 --> 00:11:55.600
and there are four e's.

229
00:11:58.500 --> 00:12:00.100
Let's head over back to immunity debugger.

230
00:12:01.100 --> 00:12:04.400
So we can see that some type of violation actually happen.

231
00:12:04.400 --> 00:12:07.500
 I want this happens immunity debugger

232
00:12:07.500 --> 00:12:09.300
 pulls the application from running.

233
00:12:10.400 --> 00:12:13.400
Simply because a Tron command we use it

234
00:12:13.400 --> 00:12:16.300
 to send a lot of ease into the buffer space

235
00:12:16.300 --> 00:12:19.100
 of memory of the valve application.

236
00:12:20.200 --> 00:12:22.200
Also notice on the register.

237
00:12:23.200 --> 00:12:27.000
the E BP which is extended buffer

238
00:12:26.300 --> 00:12:28.800
 pointer also contains is

239
00:12:29.500 --> 00:12:33.000
and the EIP the extended instruction pointer

240
00:12:32.500 --> 00:12:35.300
 also contains is to

241
00:12:36.300 --> 00:12:39.200
so now let's close immunity debugger.

242
00:12:39.800 --> 00:12:40.400
like so

243
00:12:42.600 --> 00:12:44.300
since application has crushed

244
00:12:45.300 --> 00:12:46.900
the applications no longer running

245
00:12:47.600 --> 00:12:51.600
Now, let's run all silver as administrator.

246
00:12:54.300 --> 00:12:57.800
Next let's run immunity debugger

247
00:12:57.800 --> 00:12:59.100
 as administrator.

248
00:13:03.400 --> 00:13:06.500
And next let's attach Vol server

249
00:13:06.500 --> 00:13:08.200
 onto immunity debugger.

250
00:13:11.700 --> 00:13:12.400
excellent

251
00:13:13.200 --> 00:13:14.300
simply click play

252
00:13:15.400 --> 00:13:18.800
to run the application in real time with an immunity debugger.

253
00:13:19.900 --> 00:13:22.800
Great. Let's head over back to Kali Lennox.

254
00:13:22.800 --> 00:13:25.400
 Now. Let's click on our text

255
00:13:25.400 --> 00:13:26.600
 editor like so.

256
00:13:29.100 --> 00:13:32.800
We'll create a python script that will be used to send

257
00:13:32.800 --> 00:13:35.000
 fuzzing information into the application.

258
00:13:35.900 --> 00:13:38.500
As you can see it is using Python 3,

259
00:13:38.500 --> 00:13:41.200
 it will create a socket but we

260
00:13:41.200 --> 00:13:44.400
 are injecting 100 is into the

261
00:13:44.400 --> 00:13:44.700
 application.

262
00:13:46.200 --> 00:13:49.400
It will connect to our Target system, which is a Windows

263
00:13:49.400 --> 00:13:52.600
 operating system on Port 99999.

264
00:13:53.300 --> 00:13:55.700
And if you recall during the spiking.

265
00:13:56.500 --> 00:13:58.600
We saw the Tron command.

266
00:13:59.300 --> 00:14:03.000
We also saw slash dot cool on slash and

267
00:14:02.100 --> 00:14:06.300
 Then followed by the list of ease. However, we'll

268
00:14:05.300 --> 00:14:08.900
 be injecting 100 is right

269
00:14:08.900 --> 00:14:11.400
 after we are specified trunk command.

270
00:14:12.100 --> 00:14:12.500
Great.

271
00:14:13.300 --> 00:14:14.300
Let's click on file.

272
00:14:15.200 --> 00:14:16.600
Let's click on save as

273
00:14:17.500 --> 00:14:18.800
and let's call this file.

274
00:14:23.900 --> 00:14:25.800
fuzz1.py like so

275
00:14:26.400 --> 00:14:27.400
and click save

276
00:14:28.100 --> 00:14:28.800
greet

277
00:14:32.200 --> 00:14:34.400
Let's open our terminal.

278
00:14:37.300 --> 00:14:40.300
Now that we are save our python script. Let's make it

279
00:14:40.300 --> 00:14:41.400
 into an executable.

280
00:14:42.300 --> 00:14:44.000
simply type chmod

281
00:14:44.500 --> 00:14:46.000
like so plus X

282
00:14:47.400 --> 00:14:50.600
fuzz 1.py and

283
00:14:50.600 --> 00:14:52.200
 hit enter create.

284
00:14:53.300 --> 00:14:56.300
I'm going to minimize or make my car lyrics

285
00:14:56.300 --> 00:14:57.500
 window a little smaller.

286
00:14:58.100 --> 00:15:01.900
So we can observe what is happening on immunity debugger

287
00:15:01.900 --> 00:15:04.300
 on our Target system and we

288
00:15:04.300 --> 00:15:07.800
 can also observe what is happening on our cardi lungs

289
00:15:07.800 --> 00:15:08.300
 virtual machine.

290
00:15:08.900 --> 00:15:11.800
when you are already execute the script simply type

291
00:15:11.800 --> 00:15:14.200
 Python 3 like so

292
00:15:14.800 --> 00:15:18.400
we'll type fuzz 1.py and

293
00:15:17.400 --> 00:15:18.900
 hit enter.

294
00:15:24.200 --> 00:15:27.200
Great after a few seconds, we have

295
00:15:27.200 --> 00:15:31.300
 seen at immunity Boggle has four star application as

296
00:15:30.300 --> 00:15:33.900
 shown on the bottom right hand corner, but

297
00:15:33.900 --> 00:15:36.100
 on the bottom left corner, we can

298
00:15:36.100 --> 00:15:38.600
 see there's an access violation.

299
00:15:40.900 --> 00:15:44.300
If we look at the eax register,

300
00:15:43.300 --> 00:15:46.600
 we can see the ASCII characters that

301
00:15:46.600 --> 00:15:49.800
 send the Tron command followed by the

302
00:15:49.800 --> 00:15:52.200
 special characters and then a lot

303
00:15:52.200 --> 00:15:52.700
 of ease.

304
00:15:53.900 --> 00:15:55.900
Now let's head over back to Carly quickly.

305
00:15:57.900 --> 00:16:00.200
Let's press Ctrl + C to stop the script.

306
00:16:01.100 --> 00:16:05.500
And notice it says a crush has happened at 600.

307
00:16:06.400 --> 00:16:09.600
On your system you might have a different value but this

308
00:16:09.600 --> 00:16:12.300
 values really important. So let's take note

309
00:16:12.300 --> 00:16:16.200
 of it because we will need this value in the

310
00:16:15.200 --> 00:16:18.600
 tombling to offset. So let's

311
00:16:18.600 --> 00:16:22.000
 record the value before closing of

312
00:16:21.300 --> 00:16:22.700
 this prompt.

313
00:16:23.600 --> 00:16:26.900
During this video you have learned how to use spiking and

314
00:16:26.900 --> 00:16:30.000
 you have also understand the need for performing fuzzing.

315
00:16:31.400 --> 00:16:35.100
In the next video, you will learn how to determine anyone

316
00:16:34.100 --> 00:16:37.700
 discover the offset value. I hope

317
00:16:37.700 --> 00:16:40.100
 this video has been informative for you and I will see you

318
00:16:40.100 --> 00:16:41.100
 in the next one.
