WEBVTT - This file was automatically generated by VIMEO

0
00:00:03.600 --> 00:00:06.400
Hi, so in this lesson we

1
00:00:06.400 --> 00:00:08.900
 are going to understand about the body.

2
00:00:09.800 --> 00:00:12.500
Nuclear template contains the body block which

3
00:00:12.500 --> 00:00:14.900
 is the most important part of the template.

4
00:00:16.200 --> 00:00:19.600
So what this body specify it specifies the request

5
00:00:19.600 --> 00:00:22.600
 body that needs to be sent along with

6
00:00:22.600 --> 00:00:25.300
 the HTTP request that we are going to send to the

7
00:00:25.300 --> 00:00:25.800
 server.

8
00:00:27.300 --> 00:00:30.900
The body is placed in a key value format. That

9
00:00:30.900 --> 00:00:33.500
 means you can specify a header

10
00:00:33.500 --> 00:00:36.700
 as body colon. Admin equals

11
00:00:36.700 --> 00:00:36.900
 to test.

12
00:00:38.400 --> 00:00:41.300
Also to maintain sessions we can reuse the

13
00:00:41.300 --> 00:00:44.600
 cookies by supplying cookie reuse as true

14
00:00:44.600 --> 00:00:45.800
 into your template.

15
00:00:47.200 --> 00:00:50.500
So let's jump on the Practical time and let's see how we

16
00:00:50.500 --> 00:00:51.200
 can do it.

17
00:00:53.300 --> 00:00:56.300
So I have written a body dot yml template that

18
00:00:56.300 --> 00:00:59.200
 we can read which contains an ID block,

19
00:00:59.200 --> 00:01:03.000
 which is nuclear body block information as

20
00:01:02.300 --> 00:01:04.000
 we can see over here.

21
00:01:04.800 --> 00:01:07.400
And the request which says a get

22
00:01:07.400 --> 00:01:11.200
 request should be sent off HTTP method

23
00:01:10.200 --> 00:01:11.400
 type.

24
00:01:12.700 --> 00:01:15.000
The next part is the path in which we can

25
00:01:15.200 --> 00:01:16.300
 see the base URL.

26
00:01:17.100 --> 00:01:18.300
And this is the most important.

27
00:01:19.500 --> 00:01:22.100
Block that we have to see and focus which is

28
00:01:22.100 --> 00:01:22.600
 the body.

29
00:01:23.500 --> 00:01:26.800
In body we can see we are supplying search equals

30
00:01:26.800 --> 00:01:27.500
 to Apple.

31
00:01:28.500 --> 00:01:31.300
Now, let's run this template and observe the

32
00:01:31.300 --> 00:01:31.800
 response.

33
00:01:33.300 --> 00:01:33.500
so

34
00:01:35.900 --> 00:01:38.900
I'm just going to change the template this

35
00:01:38.900 --> 00:01:39.000
 time.

36
00:01:40.600 --> 00:01:43.900
And the template that we are going to run is the body Dot

37
00:01:43.900 --> 00:01:46.000
 yml and hit enter.

38
00:01:47.500 --> 00:01:50.900
You can see the template has run successfully without any

39
00:01:50.900 --> 00:01:54.200
 errors. Let's go to burpsuit and

40
00:01:53.200 --> 00:01:56.600
 see the third request that we have captured

41
00:01:56.600 --> 00:01:57.500
 right now.

42
00:01:58.700 --> 00:01:59.800
You can see this time.

43
00:02:00.400 --> 00:02:03.100
Burp suit has highlighted parameters in the

44
00:02:03.100 --> 00:02:06.000
 third request as you can see a checkbox over here.

45
00:02:07.300 --> 00:02:10.600
Now these parameters are nothing but the body block that we

46
00:02:10.600 --> 00:02:13.200
 have provided which is search equals to

47
00:02:13.200 --> 00:02:16.500
 Apple where in search is the parameter and apple

48
00:02:16.500 --> 00:02:19.400
 is the value supplied to that specific parameter.

49
00:02:20.700 --> 00:02:23.600
While creating custom nuclei templates, it's very

50
00:02:23.600 --> 00:02:26.300
 essential that we know how

51
00:02:26.300 --> 00:02:29.300
 to write a body when we want to send

52
00:02:29.300 --> 00:02:32.900
 a specific request while exploiting a vulnerability.

53
00:02:33.700 --> 00:02:36.400
Maybe you can supply a payload over

54
00:02:36.400 --> 00:02:39.200
 here, which allows you to read a file from the

55
00:02:39.200 --> 00:02:39.700
 server.

56
00:02:40.800 --> 00:02:43.500
I hope you guys understood how you can use the

57
00:02:43.500 --> 00:02:46.400
 body Block in your nuclear template and send it

58
00:02:46.400 --> 00:02:47.300
 to the Target.

59
00:02:48.400 --> 00:02:48.700
Thank you.
