WEBVTT - This file was automatically generated by VIMEO

0
00:00:12.300 --> 00:00:12.700
Hello, everyone.

1
00:00:14.100 --> 00:00:18.000
In this video we are going to see the nmap script

2
00:00:17.400 --> 00:00:19.400
 attack categories.

3
00:00:20.800 --> 00:00:23.400
So nmap has couple of

4
00:00:23.400 --> 00:00:26.200
 categories of the script types. We are

5
00:00:26.200 --> 00:00:28.700
 going to see those categories one by one.

6
00:00:29.600 --> 00:00:32.600
So the first category that we are going to see is the

7
00:00:32.600 --> 00:00:33.800
 safe Scripts.

8
00:00:34.800 --> 00:00:36.100
What are these safe Scripts?

9
00:00:36.700 --> 00:00:40.200
So nmap has made the categorization based

10
00:00:39.200 --> 00:00:43.100
 on the types of script that we

11
00:00:42.100 --> 00:00:45.200
 use to perform a scan

12
00:00:45.200 --> 00:00:45.900
 on a Target.

13
00:00:47.400 --> 00:00:50.400
Those scripts which fall under safe script types

14
00:00:50.400 --> 00:00:53.400
 are generally considered to be safe and

15
00:00:53.400 --> 00:00:55.000
 not intrusive.

16
00:00:56.400 --> 00:00:59.700
So the syntax of doing this scan is nmap the

17
00:00:59.700 --> 00:01:02.700
 target IP hyphen hyphen script equals to

18
00:01:02.700 --> 00:01:03.500
 safe.

19
00:01:04.300 --> 00:01:06.400
Or you can write comma default.

20
00:01:07.200 --> 00:01:09.900
remember safe and default are

21
00:01:10.700 --> 00:01:12.300
The same have the same meaning.

22
00:01:13.100 --> 00:01:16.200
So you can scan a Target by simply giving IP address

23
00:01:16.200 --> 00:01:18.300
 specify the safe hyphen.

24
00:01:19.100 --> 00:01:22.300
Hyphen, hyphen script equals to save comma default flag

25
00:01:22.300 --> 00:01:25.600
 which is used for scanning the targets when default and save

26
00:01:25.600 --> 00:01:26.400
 script types.

27
00:01:27.600 --> 00:01:30.600
You can always add hyphen V to see the output in verbose

28
00:01:30.600 --> 00:01:30.800
 mode.

29
00:01:31.800 --> 00:01:34.600
The example of doing this scan is nmap Target

30
00:01:34.600 --> 00:01:38.100
 IP -script equals to Safe comma

31
00:01:37.100 --> 00:01:39.600
 default as you can see over here.

32
00:01:44.200 --> 00:01:47.200
So it is a practical time now and let's see. How can

33
00:01:47.200 --> 00:01:50.400
 we see the safe type of category of

34
00:01:50.400 --> 00:01:51.800
 nmap in action?

35
00:01:53.400 --> 00:01:57.800
See on my screen. I have opened the nmap categories

36
00:01:56.800 --> 00:02:00.000
 section wherein you

37
00:01:59.100 --> 00:02:02.400
 can see the categories are listed over here.

38
00:02:05.100 --> 00:02:09.600
So there are different categories like auth broadcast brute default

39
00:02:08.600 --> 00:02:12.200
 Discovery dos exploit

40
00:02:11.200 --> 00:02:15.000
 external further intrusive

41
00:02:14.800 --> 00:02:17.600
 malware safe version and

42
00:02:17.600 --> 00:02:18.800
 one reliability.

43
00:02:20.200 --> 00:02:23.700
Nmap, has a very good collections of scripts that

44
00:02:23.700 --> 00:02:26.400
 can be used for each type of attack type.

45
00:02:26.400 --> 00:02:29.100
 Let's see the default one when you can

46
00:02:29.100 --> 00:02:32.600
 see these are the default script types, which are generally used

47
00:02:32.600 --> 00:02:35.600
 to gather information about a Target.

48
00:02:36.600 --> 00:02:39.400
The information can be the server information

49
00:02:39.400 --> 00:02:42.500
 address information summary type

50
00:02:42.500 --> 00:02:45.600
 of information who is scan and other

51
00:02:45.600 --> 00:02:48.500
 type of stuff, which is generally not

52
00:02:48.500 --> 00:02:49.500
 intrusive.

53
00:02:50.700 --> 00:02:52.000
Let me go to the save type.

54
00:02:52.700 --> 00:02:55.900
And you can see it contains the safe scripts

55
00:02:55.900 --> 00:02:58.900
 which are used to discover content about

56
00:02:58.900 --> 00:03:01.800
 the Target or to do some type of banner

57
00:03:01.800 --> 00:03:02.500
 grabbing.

58
00:03:04.100 --> 00:03:08.100
If I go one step back, this is the directory listing where

59
00:03:07.100 --> 00:03:09.900
 you can see all the categories.

60
00:03:11.200 --> 00:03:14.500
And you can read about each category by clicking on that

61
00:03:14.500 --> 00:03:15.500
 category link.

62
00:03:17.100 --> 00:03:17.400
Perfect.

63
00:03:18.700 --> 00:03:21.800
So now let's see the Practical example by running

64
00:03:21.800 --> 00:03:24.400
 this default and save type of scan.

65
00:03:25.300 --> 00:03:29.600
So as you can see on the terminal I have typed and map -script

66
00:03:28.600 --> 00:03:31.400
 default comma safe.

67
00:03:32.200 --> 00:03:35.600
Hyphen, PN, which is for no ping the

68
00:03:35.600 --> 00:03:38.300
 do not do host Discovery and then the

69
00:03:38.300 --> 00:03:40.100
 target IP that I want to scan.

70
00:03:43.600 --> 00:03:46.400
I will hit enter and you can see the scan

71
00:03:46.400 --> 00:03:47.800
 has started successfully.

72
00:03:57.300 --> 00:04:00.100
I will just hit enter to see the progress of the

73
00:04:00.100 --> 00:04:00.700
 scan.

74
00:04:01.700 --> 00:04:02.400
It is almost.

75
00:04:03.500 --> 00:04:03.800
done

76
00:04:08.500 --> 00:04:10.000
I will just skip this.

77
00:04:11.900 --> 00:04:14.200
Okay, so as you can see, we have got

78
00:04:14.200 --> 00:04:17.800
 the output over here and you can see in the output the

79
00:04:17.800 --> 00:04:20.600
 first script that run was broadcast

80
00:04:20.600 --> 00:04:24.300
 DHCP discover broadcast DNS

81
00:04:23.300 --> 00:04:25.100
 service discovery.

82
00:04:26.200 --> 00:04:29.400
broadcast listener the sender IP the sender Mac

83
00:04:29.400 --> 00:04:30.400
 the target IP address

84
00:04:32.600 --> 00:04:36.000
Again more information. You can see Target ASN information

85
00:04:37.900 --> 00:04:39.600
and the scan is still running.

86
00:04:43.300 --> 00:04:45.300
Let me skip this to the results.

87
00:04:46.200 --> 00:04:50.100
You can see here. We have got the results of reverse

88
00:04:49.100 --> 00:04:50.400
 index.

89
00:04:54.200 --> 00:04:55.500
SMB enum services

90
00:04:57.200 --> 00:04:58.000
clocks Q

91
00:04:59.800 --> 00:05:02.200
So basically, these are the types of

92
00:05:02.200 --> 00:05:05.200
 categories which fall under safe and

93
00:05:05.200 --> 00:05:08.500
 default and we have got the results for

94
00:05:08.500 --> 00:05:10.900
 those types of category scans.

95
00:05:12.700 --> 00:05:14.200
Let me just change the target.

96
00:05:15.300 --> 00:05:17.100
And let's see if we get anything.

97
00:05:18.900 --> 00:05:21.000
interesting on this particular Target

98
00:05:25.600 --> 00:05:28.400
Let me specify the port number this time. Let's say

99
00:05:28.400 --> 00:05:31.500
 I just want to scan for two ports, which is Port 80 and

100
00:05:31.500 --> 00:05:32.700
 Port 22.

101
00:05:34.800 --> 00:05:36.400
Let me skip this scan.

102
00:05:38.800 --> 00:05:40.100
And jump to the results.

103
00:05:44.800 --> 00:05:45.200
as you can see

104
00:05:46.500 --> 00:05:50.000
ASN query DNS Blacklist host map

105
00:05:49.400 --> 00:05:52.600
 ipgo location who is

106
00:05:52.600 --> 00:05:53.100
 domain

107
00:05:55.100 --> 00:05:58.700
all these types of scripts have been run and this is the output of

108
00:05:58.700 --> 00:05:59.700
 the script.

109
00:06:00.400 --> 00:06:03.600
So I hope you guys understood that how we can perform

110
00:06:03.600 --> 00:06:06.600
 the nmap safe and default script

111
00:06:06.600 --> 00:06:08.100
 scan. Thank you.
