WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.100 --> 00:00:08.400
So in this lesson, we are going to learn about nuclei excluding

1
00:00:08.400 --> 00:00:09.200
 templates.

2
00:00:10.200 --> 00:00:13.800
Now sometimes you do not want to run specific set

3
00:00:13.800 --> 00:00:16.100
 of templates on a Target. You can

4
00:00:16.100 --> 00:00:20.000
 exclude that based on a flag, which is hyphen exclude templates

5
00:00:19.500 --> 00:00:22.200
 or hyphen e t

6
00:00:23.600 --> 00:00:26.500
you can also exclude specific tags that

7
00:00:26.500 --> 00:00:28.000
 you don't want to run on a Target.

8
00:00:28.700 --> 00:00:32.300
Let's say if you don't want to test a target for xss,

9
00:00:31.300 --> 00:00:34.500
 you can specify hyphen e

10
00:00:34.500 --> 00:00:37.200
 tags as excesses and it will not

11
00:00:37.200 --> 00:00:40.600
 run all the excesses based templates on a

12
00:00:40.600 --> 00:00:41.500
 specific given Target.

13
00:00:43.200 --> 00:00:46.500
You can also exclude severity to be done on a

14
00:00:46.500 --> 00:00:46.700
 Target.

15
00:00:47.300 --> 00:00:50.400
For instance. I am not interested in identifying the

16
00:00:50.400 --> 00:00:54.000
 informational based vulnerabilities on a Target. I'm

17
00:00:53.100 --> 00:00:57.600
 only interested in identifying all the vulnerabilities apart

18
00:00:56.600 --> 00:00:58.700
 from info.

19
00:00:59.200 --> 00:01:02.700
You can mention that in the exclude severity filter.

20
00:01:04.100 --> 00:01:07.200
So it's the Practical time and let's quickly see how you can

21
00:01:07.200 --> 00:01:08.300
 do this practically.

22
00:01:11.400 --> 00:01:14.800
The first thing that I'm going to do is I'm going to run nuclei quickly

23
00:01:14.800 --> 00:01:18.100
 on our Target just HTTP colon

24
00:01:17.100 --> 00:01:20.500
 slash slash test PHP Dot.

25
00:01:21.600 --> 00:01:22.400
well in web.com

26
00:01:26.100 --> 00:01:26.300
now

27
00:01:27.600 --> 00:01:30.200
we are going to specify the template path.

28
00:01:32.400 --> 00:01:35.400
This time I want to exclude a template. So

29
00:01:35.400 --> 00:01:37.800
 I'm going to say e t

30
00:01:39.200 --> 00:01:42.600
we can also see this over here. So I'm going to say exclude

31
00:01:42.600 --> 00:01:46.300
 templates, which is by the flank,

32
00:01:45.300 --> 00:01:48.600
 which is ET. So you exclude a

33
00:01:48.600 --> 00:01:51.700
 template. You can also exclude a template directory as

34
00:01:51.700 --> 00:01:52.000
 well.

35
00:01:53.200 --> 00:01:56.500
So I'm going to say Don't run this specific

36
00:01:56.500 --> 00:01:59.500
 template, which is nuclei hyphen templates.

37
00:02:01.600 --> 00:02:02.300
Technologies

38
00:02:03.500 --> 00:02:04.300
nginx

39
00:02:05.200 --> 00:02:08.000
nginx version Dot. Yml.

40
00:02:08.700 --> 00:02:09.700
and hit enter

41
00:02:11.700 --> 00:02:14.800
now nuclei will by default

42
00:02:14.800 --> 00:02:18.000
 run all the templates apart from

43
00:02:17.400 --> 00:02:21.200
 the template which is nginx detect.

44
00:02:21.900 --> 00:02:26.000
As you can see over here test php.wellenweb.com is

45
00:02:25.300 --> 00:02:28.100
 running nginx, but we are not able

46
00:02:28.100 --> 00:02:30.000
 to see that here in the output.

47
00:02:30.800 --> 00:02:33.700
Y because we have excluded the template

48
00:02:33.700 --> 00:02:34.700
 from the scam.

49
00:02:36.100 --> 00:02:39.900
Let's use the second feature which is exclude severity.

50
00:02:40.700 --> 00:02:43.800
You can see we got a PHP detect the

51
00:02:43.800 --> 00:02:46.700
 template that we also created recently, but

52
00:02:46.700 --> 00:02:48.500
 the severity is info.

53
00:02:49.100 --> 00:02:52.800
So I'm going to exclude the severity This Time by hyphen es.

54
00:02:52.800 --> 00:02:56.800
 I'm going to say I do not want informational severity

55
00:02:56.800 --> 00:02:57.200
 issues.

56
00:02:58.500 --> 00:03:02.800
So previously we had around 4,058 template

57
00:03:01.800 --> 00:03:04.400
 that we ran but this

58
00:03:04.400 --> 00:03:08.800
 time it got reduced to 2617 templates

59
00:03:08.800 --> 00:03:09.100
 only.

60
00:03:10.300 --> 00:03:13.500
Which means we are not running the template that

61
00:03:13.500 --> 00:03:16.000
 have informational severity.

62
00:03:18.800 --> 00:03:21.400
Let's run eat access. Well this time so

63
00:03:21.400 --> 00:03:24.000
 I'm going to say etags Don't run.

64
00:03:24.900 --> 00:03:26.200
exercise based

65
00:03:27.300 --> 00:03:28.300
templates this time

66
00:03:29.300 --> 00:03:32.300
run every other template apart from excesses

67
00:03:33.600 --> 00:03:35.900
so you can see it has started running this templates.

68
00:03:36.600 --> 00:03:39.300
But it is excluding xss-based tags

69
00:03:39.300 --> 00:03:40.700
 from the scan.

70
00:03:42.100 --> 00:03:46.100
So I hope you guys understood how you can use the exclude filters into

71
00:03:45.100 --> 00:03:48.500
 nuclei while you are scanning your targets for

72
00:03:48.500 --> 00:03:50.000
 the pugmody programs. Thank you.
