WEBVTT - This file was automatically generated by VIMEO

0
00:00:13.700 --> 00:00:16.300
Hello everyone and welcome to this lesson.

1
00:00:17.100 --> 00:00:21.200
So in this lesson, we are going to see how you can supply a

2
00:00:20.200 --> 00:00:23.800
 list of URLs instead of supplying one

3
00:00:23.800 --> 00:00:26.400
 target how you can supply bunch of

4
00:00:26.400 --> 00:00:28.000
 hosts to nuclei.

5
00:00:28.900 --> 00:00:31.800
To do that we would require a bunch of host this

6
00:00:31.800 --> 00:00:32.000
 time.

7
00:00:32.900 --> 00:00:35.200
So what I'm going to do is I'm going to use the

8
00:00:35.200 --> 00:00:38.800
 tools SubFinder to do subdomain enumeration.

9
00:00:39.500 --> 00:00:43.100
Now to set up SubFinder, you can simply install go

10
00:00:42.100 --> 00:00:46.000
 Lang into your system and download some

11
00:00:45.600 --> 00:00:47.900
 finder using this command.

12
00:00:48.700 --> 00:00:51.500
Or else you can simply go to the releases Tab

13
00:00:51.500 --> 00:00:54.300
 and you can download the compatible version for your

14
00:00:54.300 --> 00:00:55.300
 system as well.

15
00:00:56.500 --> 00:00:59.700
So let us quickly run some

16
00:00:59.700 --> 00:01:02.600
 finder and insta domain and identify a bunch

17
00:01:02.600 --> 00:01:04.400
 of subdomains for that program.

18
00:01:05.600 --> 00:01:08.500
So I'm going to use nmap.org and

19
00:01:08.500 --> 00:01:11.100
 I'm going to hit enter when I

20
00:01:11.100 --> 00:01:14.300
 do that the output will be shown onto my

21
00:01:14.300 --> 00:01:14.400
 screen.

22
00:01:15.200 --> 00:01:19.200
I want to see if this output as well. So I'm going to specify hyphen o

23
00:01:18.200 --> 00:01:21.200
 which stands for output and I'm

24
00:01:21.200 --> 00:01:24.700
 going to say in map substart txt and

25
00:01:24.700 --> 00:01:25.400
 hit enter.

26
00:01:27.300 --> 00:01:31.000
Now you can see a message which says enumerating subdomains

27
00:01:30.200 --> 00:01:32.600
 for nmap.org.

28
00:01:33.500 --> 00:01:37.700
You can see we have identified 35 such subdomains

29
00:01:36.700 --> 00:01:39.800
 in five seconds and 734

30
00:01:39.800 --> 00:01:42.600
 milliseconds. Let's say it was real quick

31
00:01:42.600 --> 00:01:45.700
 subdomains like scan me can

32
00:01:45.700 --> 00:01:47.700
 be seen over here and so on.

33
00:01:48.800 --> 00:01:51.100
Now if you look carefully you have

34
00:01:51.100 --> 00:01:54.200
 identified a bunch of hosts, but we

35
00:01:54.200 --> 00:01:57.400
 don't know if these hosts are live or dead

36
00:01:57.400 --> 00:02:01.000
 because SubFinder uses passive subdomain

37
00:02:00.500 --> 00:02:03.700
 enumeration technique, which is basically collection of

38
00:02:03.700 --> 00:02:06.000
 these host from different data sources.

39
00:02:06.800 --> 00:02:09.600
So we would now validate how

40
00:02:09.600 --> 00:02:12.200
 many of these hosts are live that can be

41
00:02:12.200 --> 00:02:16.100
 supplied to nuclei for vulnerability scanning nuclei

42
00:02:15.100 --> 00:02:18.500
 requires the bunch of host as an

43
00:02:18.500 --> 00:02:21.800
 input with a protocol that is HTTP or

44
00:02:21.800 --> 00:02:22.900
 https.

45
00:02:23.900 --> 00:02:26.400
To do that we are going to use another tool

46
00:02:26.400 --> 00:02:29.500
 which is created by the same team, which is

47
00:02:29.500 --> 00:02:33.000
 httpx. You can install this tool similarly using

48
00:02:32.700 --> 00:02:35.700
 golang or else you can download the

49
00:02:35.700 --> 00:02:38.700
 compatible version from assets from

50
00:02:38.700 --> 00:02:40.800
 here for your system as well.

51
00:02:41.700 --> 00:02:44.400
So this time let's pass these results that

52
00:02:44.400 --> 00:02:47.400
 we have downloaded to httpx in the

53
00:02:47.400 --> 00:02:50.400
 form of a list that can be specified with

54
00:02:50.400 --> 00:02:54.100
 httpx hyphen L and end

55
00:02:53.100 --> 00:02:55.500
 map substart txt.

56
00:02:56.200 --> 00:02:59.700
Let's see if this results into a file called as nmap Subs.

57
00:03:00.300 --> 00:03:01.500
live.txt

58
00:03:02.100 --> 00:03:05.600
this would give us a good output of host which

59
00:03:05.600 --> 00:03:08.600
 are life as you can see. This has completed

60
00:03:08.600 --> 00:03:11.200
 very quickly. Let us count how many

61
00:03:11.200 --> 00:03:14.000
 host we have identified to be life.

62
00:03:16.100 --> 00:03:19.400
You can see 34 of these host word life.

63
00:03:19.400 --> 00:03:22.700
 Now. How do we Supply this to nuclei?

64
00:03:22.700 --> 00:03:25.700
 We can supply it using two ways. The

65
00:03:25.700 --> 00:03:28.700
 first is as a standard input. So I'm

66
00:03:28.700 --> 00:03:31.900
 going to read this file, which is the live.txt and

67
00:03:31.900 --> 00:03:34.400
 Supply it directly to nuclei for a

68
00:03:34.400 --> 00:03:37.900
 specific template that I want to run. So

69
00:03:37.900 --> 00:03:41.300
 let's say Technologies and nginx.

70
00:03:42.400 --> 00:03:45.700
I'll hit enter and this will start running the

71
00:03:45.700 --> 00:03:48.400
 specific template that I have supplied on the

72
00:03:48.400 --> 00:03:51.200
 bunch of hosts as you can see over here.

73
00:03:51.900 --> 00:03:55.200
The second way to do that is specifying nuclei

74
00:03:54.200 --> 00:03:58.000
 and specifying the list that

75
00:03:57.300 --> 00:03:58.500
 we want.

76
00:03:59.200 --> 00:04:00.900
with the help of hyphen l

77
00:04:02.700 --> 00:04:05.900
Nmap, Subs live.txt Supply the

78
00:04:05.900 --> 00:04:07.300
 template path.

79
00:04:08.200 --> 00:04:09.100
Which is over here.

80
00:04:10.800 --> 00:04:11.900
and hit enter

81
00:04:12.700 --> 00:04:15.900
and this would again start running that specific

82
00:04:15.900 --> 00:04:18.700
 template on bunch of host that

83
00:04:18.700 --> 00:04:21.700
 you have for any bug Bounty program. It could

84
00:04:21.700 --> 00:04:24.900
 be the list of subdomains or resolved

85
00:04:24.900 --> 00:04:27.400
 IP addresses with the protocol and a

86
00:04:27.400 --> 00:04:28.300
 port number as well.

87
00:04:29.200 --> 00:04:33.100
So I hope you guys understood how you can use nuclei to

88
00:04:32.100 --> 00:04:35.500
 scan a bunch of hosts or

89
00:04:35.500 --> 00:04:38.300
 targeted domains and subdomains as

90
00:04:38.300 --> 00:04:39.300
 well. Thank you.
