WEBVTT - This file was automatically generated by VIMEO

0
00:00:08.280 --> 00:00:12.540
Hi, and welcome back to section three net CAT Penetration test.

1
00:00:13.260 --> 00:00:16.040
In this video, we are going to talk about any map.

2
00:00:16.630 --> 00:00:20.560
Nmap is a open source program released under the guo license.

3
00:00:21.780 --> 00:00:24.630
It's an available tool for network administrator,

4
00:00:25.000 --> 00:00:29.870
which can be used to discover monitor troubleshooting T C P

5
00:00:29.910 --> 00:00:30.743
I P system,

6
00:00:31.370 --> 00:00:35.590
and has the ability to graphically display network topology with Zen map

7
00:00:36.270 --> 00:00:39.550
firewalls, routers, proxy servers, and other secure devices

8
00:00:41.090 --> 00:00:45.390
can difficult the result of Nmap scan. At the full Nmap scan,

9
00:00:45.490 --> 00:00:49.750
we check for the a hungry, most commonly used T C P P ports.

10
00:00:50.010 --> 00:00:54.710
And we have some states for those parts as open close filtering and

11
00:00:54.710 --> 00:00:58.590
filtering, open and filtering and closed filter.

12
00:00:59.490 --> 00:01:04.430
The format of the simple comment of Nmap is any map

13
00:01:04.690 --> 00:01:08.190
and the IP target for the full scan,

14
00:01:09.420 --> 00:01:14.240
but we have a lot of options available to any map and

15
00:01:14.240 --> 00:01:17.360
we have a mode call it aggressive scan,

16
00:01:18.110 --> 00:01:21.990
aggressively scans some system may cause them to crash.

17
00:01:22.220 --> 00:01:27.030
When can lead to undesirable results like system of time and

18
00:01:27.030 --> 00:01:31.070
data loss. Ours scan mission critical system in caution.

19
00:01:31.690 --> 00:01:36.390
The aggressive scan select some of the most commonly used options with the

20
00:01:36.700 --> 00:01:41.270
Nmap and is provided as a simple alternative to type in

21
00:01:41.710 --> 00:01:46.020
a long string of common light arguments with Nmap.

22
00:01:46.400 --> 00:01:49.310
We have some options in, uh,

23
00:01:49.700 --> 00:01:51.910
main app option is about discovery.

24
00:01:52.210 --> 00:01:56.110
So Nmap discover options before PO scan a target.

25
00:01:56.290 --> 00:02:00.670
Any map will attempt to send I C M P or a pinging

26
00:02:01.420 --> 00:02:05.460
echo request to see if the host is alive or not.

27
00:02:05.550 --> 00:02:09.020
Waste time to know if the host is online or not.

28
00:02:10.020 --> 00:02:13.020
I C M P requests are often blocked by firewalls.

29
00:02:13.640 --> 00:02:18.620
Did the full discovery option aren't useful when scanning security systems and

30
00:02:18.680 --> 00:02:20.660
can hidden scanning process?

31
00:02:21.810 --> 00:02:24.740
Here are some alternative methods for host discovery,

32
00:02:25.150 --> 00:02:28.020
which you do perform more comprehensive discovery.

33
00:02:28.480 --> 00:02:31.580
So we have some options and the meaning of its offer. For example,

34
00:02:32.240 --> 00:02:37.180
for don't use pinging or to use ATT c p sync Ping or

35
00:02:37.400 --> 00:02:39.900
ATT c p egg pinging, for example, uh,

36
00:02:39.900 --> 00:02:44.340
options to use U D P pinging options to use, uh,

37
00:02:44.740 --> 00:02:49.340
I C M P or Echo Ping or for timestamp pinging or address

38
00:02:49.490 --> 00:02:52.540
mask pinging or use, uh,

39
00:02:52.540 --> 00:02:55.980
pinging using I R P. We have some,

40
00:02:56.170 --> 00:03:00.960
some options to try to not get blocked by other devices.

41
00:03:01.740 --> 00:03:06.480
And we have some advanced scanning options available in map.

42
00:03:06.620 --> 00:03:11.560
In some situations it may be necessary to perform some complex T C P A T C

43
00:03:11.600 --> 00:03:16.440
P or even E D P scans in attempt to find uncommon services or

44
00:03:16.460 --> 00:03:17.760
to evade firewall.

45
00:03:18.900 --> 00:03:23.440
So we have some scans to use at t p sync ATT p connect scan

46
00:03:23.940 --> 00:03:26.360
ATT p new, uh, Christmas scan,

47
00:03:26.900 --> 00:03:31.080
ATT P ACT scan or uh, IP protocol scan.

48
00:03:31.380 --> 00:03:35.790
So all this options available is to try to

49
00:03:36.600 --> 00:03:40.630
undiscover, uh, some unknown service, for example,

50
00:03:41.130 --> 00:03:44.350
or to evade some firewall, for example.

51
00:03:46.580 --> 00:03:50.720
Now let's take a look at M map here in my KA Linux environment.

52
00:03:51.170 --> 00:03:54.600
We'll do some tests in my, my network. I,

53
00:03:54.720 --> 00:03:57.760
I have a network here in some, some devices.

54
00:03:58.260 --> 00:04:02.320
So let's do some scans in those devices. First of all,

55
00:04:02.460 --> 00:04:06.220
let me open our terminal, okay?

56
00:04:07.350 --> 00:04:11.730
And the basically syntax about inmap is type inmap

57
00:04:12.150 --> 00:04:17.010
in the IP address that for the device that we want to, to,

58
00:04:17.150 --> 00:04:21.940
to a scan like this

59
00:04:23.560 --> 00:04:27.900
and, and press enter. So in map you do a,

60
00:04:27.900 --> 00:04:31.060
basically a scan on this device.

61
00:04:31.640 --> 00:04:36.170
So the IP is this one here. Okay? And for,

62
00:04:36.270 --> 00:04:41.250
for a, basically the scan test you use T C P as the four,

63
00:04:41.430 --> 00:04:42.890
the protocol of ASD four.

64
00:04:43.670 --> 00:04:47.900
And we found four open doors here,

65
00:04:49.340 --> 00:04:53.430
postman for the T C P or A C M S A R P.

66
00:04:54.170 --> 00:04:57.670
The second one for net views, s ss n. This is, uh,

67
00:04:57.740 --> 00:05:02.300
windows protocol for share printers, for example,

68
00:05:03.860 --> 00:05:07.720
uh, we have the, the port of 4, 4, 5

69
00:05:09.490 --> 00:05:13.440
using two from Microsoft and another high port to

70
00:05:14.790 --> 00:05:19.620
use it here. So let's do the same test for, uh,

71
00:05:19.620 --> 00:05:21.980
other device that I have in my network here.

72
00:05:25.320 --> 00:05:30.270
So this device here is he's blocking some pings, okay?

73
00:05:30.610 --> 00:05:34.710
So, uh, as we saw before, inmap has a lot,

74
00:05:34.910 --> 00:05:38.590
a lot of options, switch options to try to

75
00:05:40.420 --> 00:05:44.300
overpass some firewalls or some other other configuration.

76
00:05:44.770 --> 00:05:49.730
Another option to scan is to have a range,

77
00:05:50.190 --> 00:05:55.080
as we saw in Netcat. For Nmap, the function is the same.

78
00:05:55.300 --> 00:06:00.110
We do the ip,

79
00:06:00.570 --> 00:06:05.250
but first in the first IP available.

80
00:06:06.370 --> 00:06:10.910
And second, the high limit that want to, to scan.

81
00:06:11.370 --> 00:06:15.770
For example, in this case we have this range of ips,

82
00:06:16.300 --> 00:06:17.780
press enter.

83
00:06:19.460 --> 00:06:24.420
This could take some time because we have

84
00:06:24.580 --> 00:06:28.340
a range of ips. We have some,

85
00:06:28.570 --> 00:06:30.780
some progress to verify

86
00:06:32.480 --> 00:06:37.300
how long it's taking for take all the scan

87
00:06:37.400 --> 00:06:38.233
for our network.

88
00:06:39.310 --> 00:06:43.850
And then we have a list of all devices in which

89
00:06:43.980 --> 00:06:47.640
ports are open in my network,

90
00:06:48.300 --> 00:06:52.200
in all devices available in my network. So first of all,

91
00:06:52.660 --> 00:06:57.130
we have the first one here. Founded, uh, one.

92
00:06:58.060 --> 00:07:01.150
So in this IP here is my gateway.

93
00:07:02.240 --> 00:07:06.540
We found 22 s s h open.

94
00:07:07.160 --> 00:07:11.750
We have, uh, 2023 DCP Telnet open,

95
00:07:12.410 --> 00:07:16.110
and we have, uh, H T T P server open here too.

96
00:07:17.080 --> 00:07:20.980
So in another, uh, host in the final IP three,

97
00:07:22.010 --> 00:07:26.910
we have another list of uh, uh, open doors.

98
00:07:27.810 --> 00:07:31.190
We have the 80 0 8 H p server.

99
00:07:31.810 --> 00:07:36.510
We have a H P 13. We have, uh,

100
00:07:36.890 --> 00:07:40.670
HT p s out. Another,

101
00:07:40.820 --> 00:07:43.990
another listener here and another bot here

102
00:07:46.110 --> 00:07:49.330
in the, another host in the final IP four.

103
00:07:50.690 --> 00:07:54.870
He was not able to check any doors or any open doors.

104
00:07:55.050 --> 00:08:00.030
He open for the 15 was refused.

105
00:08:00.740 --> 00:08:03.870
This is for the default option.

106
00:08:05.110 --> 00:08:09.750
I don't put any additional option. Here is the default, any map option, okay?

107
00:08:10.780 --> 00:08:13.960
For the host mean final six, IP six,

108
00:08:15.660 --> 00:08:20.550
basically, uh, the same for the IP that we saw before,

109
00:08:20.570 --> 00:08:24.520
the three here, or same,

110
00:08:25.800 --> 00:08:30.400
I have some devices maybe are the, the devices from the same manufacturer,

111
00:08:32.110 --> 00:08:36.310
another one here, another host in the final 10,

112
00:08:36.410 --> 00:08:38.070
we have some different parts here.

113
00:08:38.670 --> 00:08:41.830
N ss p net bus again is uh,

114
00:08:41.830 --> 00:08:45.220
another laptop that I have in my network.

115
00:08:46.000 --> 00:08:49.320
And finally with IP 13,

116
00:08:50.580 --> 00:08:54.240
we have other protocols and other devices here.

117
00:08:55.020 --> 00:08:59.040
So the important point here is to get

118
00:08:59.860 --> 00:09:02.800
all, all those information for this phase,

119
00:09:02.940 --> 00:09:07.610
we are doing a scan in the network for look for the,

120
00:09:07.670 --> 00:09:11.560
the hosts and check the protocol

121
00:09:12.590 --> 00:09:15.760
port in the type of services. Okay?

122
00:09:16.630 --> 00:09:21.360
This is very important because we are discovering all the possibilities that

123
00:09:21.420 --> 00:09:24.810
we have in the host in the the,

124
00:09:24.810 --> 00:09:29.450
in the network to later we will explore all this

125
00:09:29.450 --> 00:09:34.370
possibility to do, uh, uh, all the, the phases for penetration tests. Okay?

126
00:09:34.370 --> 00:09:38.930
We are, we are gathering information, we are planning our, our attack, uh,

127
00:09:38.950 --> 00:09:40.930
how kind of attack we, we gonna do,

128
00:09:40.990 --> 00:09:45.620
how kind of payload for each host or each service.

129
00:09:46.160 --> 00:09:49.220
So this is a very important, uh, step. Okay?

130
00:09:51.070 --> 00:09:55.910
Another important option is a aggressive scan

131
00:09:56.830 --> 00:10:00.040
that we talked before. Okay? So for example,

132
00:10:02.230 --> 00:10:03.330
let me choose, uh,

133
00:10:03.630 --> 00:10:08.560
IP and I'll use the option dash

134
00:10:08.760 --> 00:10:10.600
V to get more information,

135
00:10:11.640 --> 00:10:16.110
verbal mode and use upper A

136
00:10:17.040 --> 00:10:20.420
to say, Hey, netm map, I'm using aggressive scan.

137
00:10:20.920 --> 00:10:24.940
So we saw that the aggressive scan selects some of the most commonly used

138
00:10:24.970 --> 00:10:29.660
options with any map and is provided as a simple alternative to type along

139
00:10:29.660 --> 00:10:31.620
screen or a common line arguments.

140
00:10:32.770 --> 00:10:37.470
And this is the option is very important and you have to do this

141
00:10:37.980 --> 00:10:40.540
attention because this option

142
00:10:42.070 --> 00:10:46.530
can cause them to crash when can lead to undesirable results.

143
00:10:47.270 --> 00:10:51.570
So, uh, like a aggressive scan. So we you do some brutal force, for example,

144
00:10:52.070 --> 00:10:55.690
to get all the formation. So let's see the result here.

145
00:10:57.440 --> 00:11:02.040
Okay, lemme use the, the V option.

146
00:11:02.190 --> 00:11:05.960
This could take some time, any map,

147
00:11:06.420 --> 00:11:10.940
do all the, the, the scans for this host.

148
00:11:12.040 --> 00:11:14.950
Okay? So now first of all,

149
00:11:15.650 --> 00:11:20.270
we saw this was using the N map with the normal

150
00:11:21.110 --> 00:11:25.950
n f four options. And this, the result are a,

151
00:11:26.070 --> 00:11:28.850
a little bit different, uh,

152
00:11:28.860 --> 00:11:32.130
using the big a option for aggressive scan.

153
00:11:32.750 --> 00:11:36.210
So we have the list of the doors,

154
00:11:37.620 --> 00:11:41.720
the port, the state, the service, and the version.

155
00:11:42.180 --> 00:11:43.760
So this is different from here.

156
00:11:45.330 --> 00:11:48.860
Here is we have only the port, the, the protocol,

157
00:11:49.080 --> 00:11:52.340
the state in the service, the same host,

158
00:11:53.910 --> 00:11:56.140
okay? Host. So for this host here,

159
00:11:56.160 --> 00:12:00.250
we have a little bit more informations, for example,

160
00:12:00.640 --> 00:12:03.020
each version, um,

161
00:12:03.090 --> 00:12:06.700
more details about the version of the service that is running here.

162
00:12:08.100 --> 00:12:11.920
We have the service info here, windows,

163
00:12:12.900 --> 00:12:15.560
and we have some informations, uh,

164
00:12:15.930 --> 00:12:20.560
about the device that are hosting these services. Okay?

165
00:12:20.580 --> 00:12:25.560
For example, uh, we have the, the version of the SMB two security.

166
00:12:26.340 --> 00:12:30.200
We have the name of the, the laptop here, okay?

167
00:12:30.200 --> 00:12:34.890
Is a laptop from our lab. Uh, we have the net abuse information.

168
00:12:35.550 --> 00:12:39.010
We have the date time for the, this version here.

169
00:12:39.670 --> 00:12:44.610
So this is, uh, more details about the, the,

170
00:12:44.610 --> 00:12:48.110
the versions available about, about the the services.

171
00:12:48.810 --> 00:12:50.780
And finally,

172
00:12:50.970 --> 00:12:55.560
another option here is to use a C R D R

173
00:12:55.560 --> 00:12:56.393
notation.

174
00:12:56.920 --> 00:13:01.600
A C R D R D R notation consists of a network address and subnet

175
00:13:01.670 --> 00:13:05.270
mask in banner B separated by slash.

176
00:13:06.240 --> 00:13:10.580
So we have this notation here in the map. So

177
00:13:13.580 --> 00:13:17.620
this means this result here is the,

178
00:13:17.720 --> 00:13:21.900
all the hosts, all the ips for the host.

179
00:13:22.700 --> 00:13:26.510
I use uh, dash V to get more information.

180
00:13:26.970 --> 00:13:31.280
But the result here is a hand map. I using, uh,

181
00:13:31.480 --> 00:13:32.840
C R D R R notation.

182
00:13:32.980 --> 00:13:37.680
So I need to do a scan for all the hosts

183
00:13:37.780 --> 00:13:41.530
in my network. So Netm map, you scan,

184
00:13:43.760 --> 00:13:48.240
you start to get information. Here was seven seconds.

185
00:13:49.610 --> 00:13:52.030
So here, let me back here in the, the beginning,

186
00:13:52.690 --> 00:13:57.130
we start a command here, okay?

187
00:13:57.390 --> 00:14:00.570
Netcat start to scan all the hosts in my network

188
00:14:02.450 --> 00:14:06.840
and looked at every host here. He start to do a, a scan.

189
00:14:08.380 --> 00:14:10.590
Okay? This is, this information here, uh,

190
00:14:10.690 --> 00:14:14.750
was only possible because the dash v okay, to get more information.

191
00:14:15.820 --> 00:14:20.000
So the host is down for this host here.

192
00:14:20.940 --> 00:14:25.230
Okay? So look that he net and web, he do,

193
00:14:25.410 --> 00:14:30.390
he he's doing a scan for every host, okay? Every host here

194
00:14:31.920 --> 00:14:34.500
and he finish here. And now

195
00:14:36.060 --> 00:14:40.650
he start to list the ports open here.

196
00:14:40.710 --> 00:14:43.610
For example, this one here for the my gateway,

197
00:14:45.760 --> 00:14:47.180
as we saw before. Okay?

198
00:14:48.080 --> 00:14:52.350
So of ports for each I ip

199
00:14:53.860 --> 00:14:58.160
the, the scan here. And now he start to, uh,

200
00:14:58.390 --> 00:15:00.480
show the summary of the,

201
00:15:00.660 --> 00:15:05.640
the hosts and the port state services are open here

202
00:15:06.420 --> 00:15:10.630
as we saw before. Okay? So is, uh,

203
00:15:10.750 --> 00:15:15.670
another option to scan all the,

204
00:15:15.810 --> 00:15:20.770
the hosts. In this video we saw an introduction about inmap.

205
00:15:21.700 --> 00:15:25.080
In the next video, we'll take a look about banner grabbing.

206
00:15:25.760 --> 00:15:26.520
I hope to see you there.
