WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.800 --> 00:00:07.600
Hello everyone. So in this video we are

1
00:00:07.600 --> 00:00:11.500
 going to see the nmap Boolean expression scam.

2
00:00:12.100 --> 00:00:15.500
So what is Boolean expression scan? So here

3
00:00:15.500 --> 00:00:19.100
 we are going to see that how we can choose us

4
00:00:18.100 --> 00:00:22.200
 script category or choose multiple

5
00:00:21.200 --> 00:00:25.300
 script categories or exclude any

6
00:00:25.300 --> 00:00:28.200
 type of script category from our scan.

7
00:00:29.200 --> 00:00:33.100
So the syntax of doing this particular scan is nmap the

8
00:00:32.100 --> 00:00:35.400
 target IP followed by hyphen hyphen script

9
00:00:35.400 --> 00:00:39.400
 equals to and or not types

10
00:00:38.400 --> 00:00:41.500
 of Boolean expressions and the script

11
00:00:41.500 --> 00:00:44.000
 type which is the script name.

12
00:00:45.100 --> 00:00:49.100
So you can scan your target using this way

13
00:00:48.100 --> 00:00:49.600
 also.

14
00:00:51.200 --> 00:00:54.500
You can always add hyphen V to see the output in verbose

15
00:00:54.500 --> 00:00:57.900
 mode and the example is given over here. So let's

16
00:00:57.900 --> 00:01:00.600
 see this how we can perform this in

17
00:01:00.600 --> 00:01:01.500
 practical.

18
00:01:03.100 --> 00:01:06.900
Let us see what does the nmap NEC usage

19
00:01:06.900 --> 00:01:09.800
 says about using Boolean Expressions.

20
00:01:09.800 --> 00:01:11.800
 So as you can see over here.

21
00:01:13.300 --> 00:01:16.200
And map hyphen hyphen script not intrusive which we

22
00:01:16.200 --> 00:01:19.900
 have already seen will load every script except

23
00:01:19.900 --> 00:01:22.300
 for those in the intrusive category. Perfect.

24
00:01:23.500 --> 00:01:24.000
What does

25
00:01:25.100 --> 00:01:28.900
Nmap, -script default or save means this

26
00:01:28.900 --> 00:01:32.200
 means it will this is functionally equivalent

27
00:01:31.200 --> 00:01:34.500
 to this default comma safe and

28
00:01:34.500 --> 00:01:37.700
 it will load all the scripts that are in the default category

29
00:01:37.700 --> 00:01:41.200
 or the safe category or the both similarly

30
00:01:40.200 --> 00:01:43.700
 default and save means all the

31
00:01:43.700 --> 00:01:45.200
 scripts from both the categories.

32
00:01:46.100 --> 00:01:49.600
And this is interesting which is default or

33
00:01:49.600 --> 00:01:53.300
 safe or intrusive and not HTTP

34
00:01:52.800 --> 00:01:55.200
 -star. What does this means

35
00:01:55.200 --> 00:01:58.900
 load all the scripts in the default safe or intrusive

36
00:01:58.900 --> 00:02:00.300
 categories? We understood this.

37
00:02:01.400 --> 00:02:05.400
except for those whose name start with HTTP hyphen,

38
00:02:04.400 --> 00:02:06.100
 perfect

39
00:02:07.600 --> 00:02:11.300
So, let's see the similar kind of scan over here wherein

40
00:02:10.300 --> 00:02:14.200
 I have typed and map -script.

41
00:02:15.900 --> 00:02:19.000
Default or broadcast which means

42
00:02:18.800 --> 00:02:21.900
 scanned from these categories and not

43
00:02:21.900 --> 00:02:25.100
 SSH - star exclude

44
00:02:24.100 --> 00:02:27.900
 the scripts which starts with SSH.

45
00:02:31.400 --> 00:02:33.600
for this particular Target IP address

46
00:02:35.400 --> 00:02:35.800
as you can see

47
00:02:37.200 --> 00:02:40.700
the scan has been started, but I have already performed the

48
00:02:40.700 --> 00:02:41.200
 scan.

49
00:02:41.800 --> 00:02:42.900
As you can see over here.

50
00:02:44.400 --> 00:02:46.700
All the script types are being running.

51
00:02:47.900 --> 00:02:50.700
As you can see but it is excluding the

52
00:02:50.700 --> 00:02:53.300
 script type which is SSH as you

53
00:02:53.300 --> 00:02:56.400
 can see over here. This is the output for Port 80.

54
00:02:57.100 --> 00:03:00.400
HTTP LS which is directory listing which

55
00:03:00.400 --> 00:03:03.200
 is enabled and you can see these files have been

56
00:03:03.200 --> 00:03:03.700
 listed.

57
00:03:07.500 --> 00:03:10.500
Next is the title. The title is index of

58
00:03:10.500 --> 00:03:12.900
 Slash of that particular web server.

59
00:03:14.300 --> 00:03:17.200
You can see in the output nowhere. You can

60
00:03:17.200 --> 00:03:20.800
 see any output which is related to SSH.

61
00:03:21.500 --> 00:03:25.200
Or any output related to SSH script

62
00:03:24.200 --> 00:03:27.000
 type in default or broadcast.

63
00:03:28.400 --> 00:03:31.600
So I hope you guys understood how you can use the Boolean

64
00:03:31.600 --> 00:03:33.600
 expression scan in nmap.

65
00:03:34.100 --> 00:03:34.500
Thank you.
