WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.800 --> 00:00:07.600
Hello everyone. So in

1
00:00:07.600 --> 00:00:10.500
 this video we are going to see how we can scan

2
00:00:10.500 --> 00:00:13.200
 a Target and ignore discovery.

3
00:00:14.500 --> 00:00:14.600
So

4
00:00:15.500 --> 00:00:18.600
the Syntax for doing this scan is nmap the target

5
00:00:18.600 --> 00:00:22.000
 IP address and hyphen p and attribute

6
00:00:21.400 --> 00:00:22.700
 or flag.

7
00:00:23.500 --> 00:00:26.500
So you can scan a Target by simply giving a Target IP

8
00:00:26.500 --> 00:00:29.200
 address you want to scan with hyphen p and

9
00:00:29.200 --> 00:00:33.000
 flag and nmap will start scanning for the default top 1000

10
00:00:32.000 --> 00:00:33.200
 ports.

11
00:00:34.100 --> 00:00:35.400
Hyphen, PN is used.

12
00:00:36.100 --> 00:00:39.600
to in order to bypass firewalls which blocks the

13
00:00:39.600 --> 00:00:40.200
 plane

14
00:00:40.900 --> 00:00:43.400
you can obviously add a hyphen V

15
00:00:43.400 --> 00:00:45.300
 for the verbose output that you want to see.

16
00:00:46.400 --> 00:00:46.600
so

17
00:00:47.600 --> 00:00:50.600
what happens in this scan? So the syntax is

18
00:00:50.600 --> 00:00:54.100
 nmap - p n and you can see the nmap.

19
00:00:54.900 --> 00:00:57.400
On the left hand side, which is the anmap machine

20
00:00:57.400 --> 00:01:00.800
 our machine. It sends icmp request

21
00:01:00.800 --> 00:01:03.300
 to do a host Discovery whenever you

22
00:01:03.300 --> 00:01:06.400
 scan a Target, so whenever you scan a

23
00:01:06.400 --> 00:01:06.800
 server.

24
00:01:08.200 --> 00:01:11.600
And if there is a firewall enabled on that server, then it

25
00:01:11.600 --> 00:01:15.400
 will send a reset for your icmp ping

26
00:01:14.400 --> 00:01:17.600
 that you have been sending and and

27
00:01:17.600 --> 00:01:20.400
 map will not be able to identify that the host

28
00:01:20.400 --> 00:01:21.800
 is up or down.

29
00:01:22.600 --> 00:01:25.900
So in this case, how can we identify

30
00:01:25.900 --> 00:01:28.400
 if the server is really up when

31
00:01:28.400 --> 00:01:30.300
 it is blocking our request?

32
00:01:31.200 --> 00:01:34.300
So for that we use the hyphen p and flag

33
00:01:34.300 --> 00:01:35.400
 to identify this.

34
00:01:36.700 --> 00:01:39.500
So it's the Practical time and let's see this in

35
00:01:39.500 --> 00:01:42.700
 action as you can see over here. I want

36
00:01:42.700 --> 00:01:45.200
 to have Windows machine where first I'm going to

37
00:01:45.200 --> 00:01:48.200
 set up a firewall and in that firewall. I'm going to

38
00:01:48.200 --> 00:01:51.400
 write rule to block the icmp request

39
00:01:51.400 --> 00:01:54.200
 and then I'm going to show you the scan using and

40
00:01:54.200 --> 00:01:54.600
 map.

41
00:01:55.300 --> 00:01:58.800
And then we are going to bypass it. So as you can see the Windows

42
00:01:58.800 --> 00:02:01.800
 machine IP address by the IP config

43
00:02:01.800 --> 00:02:04.800
 command and you can see the IP address. Is this IP

44
00:02:04.800 --> 00:02:04.800
 address?

45
00:02:05.600 --> 00:02:08.800
192.168 43 dot 217

46
00:02:11.200 --> 00:02:14.200
now, let me just quickly set up the firewall.

47
00:02:19.300 --> 00:02:22.300
After going into firewall, I'm going to go to the properties.

48
00:02:23.200 --> 00:02:26.800
And you can see let me first John generate and

49
00:02:26.800 --> 00:02:29.300
 turn on the properties for the

50
00:02:29.300 --> 00:02:32.800
 firewall. So I'm going to say allow

51
00:02:32.800 --> 00:02:33.500
 the inbound connection.

52
00:02:34.500 --> 00:02:37.500
Allow all the inbound connections for private profile

53
00:02:37.500 --> 00:02:40.300
 public profile in your computer. It must

54
00:02:40.300 --> 00:02:43.600
 be blocked by default. You just have to turn it on to allow.

55
00:02:45.400 --> 00:02:46.700
so after setting up this

56
00:02:48.800 --> 00:02:50.100
now on the left hand side.

57
00:02:51.400 --> 00:02:54.300
For this machine this IP address. Okay. So first let's

58
00:02:54.300 --> 00:02:57.400
 do a ping request and see if we are

59
00:02:57.400 --> 00:03:00.200
 able to reach that machine. Perfect. As you

60
00:03:00.200 --> 00:03:03.500
 can see I am able to reach that machine which means

61
00:03:03.500 --> 00:03:06.300
 I am able to Ping and I'm getting a reply

62
00:03:06.300 --> 00:03:09.200
 from that machine which which means the host is up and

63
00:03:09.200 --> 00:03:12.300
 I'm able to do a host Discovery and

64
00:03:12.300 --> 00:03:13.700
 I'm able to connect to that host.

65
00:03:15.300 --> 00:03:18.500
Now over here, I'm going to make a rule.

66
00:03:18.500 --> 00:03:22.500
 I'm going to write an inbound rule into this machine inbound

67
00:03:21.500 --> 00:03:22.700
 rule.

68
00:03:23.600 --> 00:03:24.400
stands for

69
00:03:25.700 --> 00:03:29.100
writing a rule for all the incoming connections into

70
00:03:28.100 --> 00:03:30.200
 this Windows machine.

71
00:03:32.700 --> 00:03:35.000
So just go and click on new rule.

72
00:03:37.600 --> 00:03:40.200
And then you have to select what type of rule you would

73
00:03:40.200 --> 00:03:42.400
 like to create. So I want to create a custom rule.

74
00:03:44.300 --> 00:03:44.800
I will hit next.

75
00:03:46.600 --> 00:03:49.200
Does this rule apply to all the programs? Yes all the

76
00:03:49.200 --> 00:03:50.000
 programs?

77
00:03:51.200 --> 00:03:54.600
To which port and protocol does this rule apply this rule

78
00:03:54.600 --> 00:03:57.300
 applies to icmb version 4

79
00:03:57.300 --> 00:04:00.400
 because I want to just block the Ping over here.

80
00:04:00.400 --> 00:04:03.300
 You can choose any that you want. I'm blocking the pink

81
00:04:03.300 --> 00:04:04.400
 specifically for now.

82
00:04:05.500 --> 00:04:08.400
I'm going to hit next which local IP address.

83
00:04:08.400 --> 00:04:10.600
 Does this rule apply to you can

84
00:04:11.600 --> 00:04:12.900
type the IP addresses

85
00:04:13.600 --> 00:04:15.700
Basically, you can whitelist them. Okay?

86
00:04:17.100 --> 00:04:20.500
I want to apply the setting for all the IP addresses and

87
00:04:20.500 --> 00:04:22.100
 I'm going to choose block the connection.

88
00:04:25.300 --> 00:04:28.200
For all this type of profiles that is

89
00:04:28.200 --> 00:04:29.700
 domain private and public.

90
00:04:30.600 --> 00:04:33.600
Perfect. Let me just give a name to this rule.

91
00:04:34.500 --> 00:04:36.600
So let's say we call this Anonymous machine.

92
00:04:38.300 --> 00:04:40.500
Because this machine will not stop.

93
00:04:43.600 --> 00:04:46.700
Connecting to anyone who sends up being request to identify

94
00:04:46.700 --> 00:04:48.500
 if the machine is up or down.

95
00:04:49.300 --> 00:04:52.800
So let me type the description this inbound rule blockspring.

96
00:04:54.500 --> 00:04:57.200
And let's finish this as you can see there is a inbound rule

97
00:04:57.200 --> 00:05:00.800
 which have been created. Perfect. So let's test for

98
00:05:00.800 --> 00:05:03.500
 this rule. So this is the IP address of this machine. Let

99
00:05:03.500 --> 00:05:06.500
 me go back here and let me again ping this

100
00:05:06.500 --> 00:05:09.500
 machine and let's see if I can ping now or not.

101
00:05:11.300 --> 00:05:14.800
As you can see the request is getting timeout and

102
00:05:14.800 --> 00:05:17.300
 I am not able to connect to that

103
00:05:17.300 --> 00:05:20.600
 machine. I'm not able to send a ping request. So in

104
00:05:20.600 --> 00:05:21.100
 this case.

105
00:05:22.100 --> 00:05:23.900
If there is a device into your network.

106
00:05:25.100 --> 00:05:28.400
which is blocking the Ping request whenever you perform a

107
00:05:28.400 --> 00:05:31.400
 host Discovery, then at that time, you

108
00:05:31.400 --> 00:05:34.600
 may not find out that device is connected

109
00:05:34.600 --> 00:05:37.900
 to your network because it is blocking your ping requests

110
00:05:37.900 --> 00:05:41.200
 as we can see over here now how

111
00:05:40.200 --> 00:05:43.800
 to identify this Anonymous machine that

112
00:05:43.800 --> 00:05:47.000
 it is still connected to the network for this

113
00:05:46.800 --> 00:05:49.300
 in map comes to help and there

114
00:05:49.300 --> 00:05:52.400
 is a flag that we are going to see that is no host

115
00:05:52.400 --> 00:05:54.300
 Discovery - p n

116
00:05:55.900 --> 00:05:58.700
so I'm going to type the command and map.

117
00:05:59.800 --> 00:06:02.400
And the target IP address and this flag that

118
00:06:02.400 --> 00:06:05.500
 is - p n and I want to see the output in verbose mode

119
00:06:05.500 --> 00:06:08.500
 as you can see. I have come to know the name

120
00:06:08.500 --> 00:06:12.900
 of the desktop machine also desktop 60e2f0m

121
00:06:11.900 --> 00:06:14.700
 and the IP

122
00:06:14.700 --> 00:06:17.300
 address and also I'm able to find out the

123
00:06:17.300 --> 00:06:20.200
 open ports over here. If you see at the

124
00:06:20.200 --> 00:06:23.400
 bottom, I have come to know that the host is up and

125
00:06:23.400 --> 00:06:26.700
 it is not down perfect. So this way

126
00:06:26.700 --> 00:06:30.900
 I came to know even if the host was Anonymous

127
00:06:29.900 --> 00:06:32.800
 and blocking my icmp request.

128
00:06:32.800 --> 00:06:35.600
 I will be able to find out using hyphen p

129
00:06:35.600 --> 00:06:37.900
 and flag which is no host discovery.

130
00:06:38.900 --> 00:06:40.200
I hope you guys understood this.

131
00:06:42.400 --> 00:06:42.700
Thank you.
