WEBVTT - This file was automatically generated by VIMEO

0
00:00:13.660 --> 00:00:18.040
Hi, welcome to section six net CAT penetration test.

1
00:00:18.760 --> 00:00:23.340
In this video we're going to talk about scanning a network or troubleshooting

2
00:00:23.600 --> 00:00:28.380
any problem in a network. When we are looking for a problem,

3
00:00:29.140 --> 00:00:34.060
a good way to start this search is about to get a broad examination of the

4
00:00:34.060 --> 00:00:36.900
problem and then be more precise.

5
00:00:37.760 --> 00:00:40.900
In the first step to troubleshooting a problem in a network,

6
00:00:41.360 --> 00:00:46.220
we could start by executing a scan in some hosts to check if

7
00:00:46.220 --> 00:00:50.300
the host is on and if some services are running or not.

8
00:00:51.190 --> 00:00:56.010
Our first impression is to verify if a port services is open or not.

9
00:00:56.750 --> 00:01:00.730
Netcat can help in this task because Netcat keeps things simple.

10
00:01:01.510 --> 00:01:06.250
Netcat does not alter the data stream between the communication

11
00:01:06.320 --> 00:01:07.153
with the systems.

12
00:01:08.010 --> 00:01:12.660
That means that Net CAT does not do not send traffic control comments

13
00:01:13.040 --> 00:01:14.860
during the transmission of data.

14
00:01:15.690 --> 00:01:20.590
This could mis spread the communication because of some

15
00:01:20.590 --> 00:01:22.870
special characters. For example,

16
00:01:24.220 --> 00:01:28.360
net CAT does not inject or react to data session between two systems.

17
00:01:28.820 --> 00:01:33.760
So you can use it extensively knowing that the data stream will

18
00:01:33.760 --> 00:01:38.030
remain uncorrupted. The idea is to use Net CAT for scanning.

19
00:01:39.300 --> 00:01:40.920
For troubleshooting the network

20
00:01:42.560 --> 00:01:45.820
for scanning net CAT can use some options.

21
00:01:46.800 --> 00:01:51.410
We have the dash V for ity dash N for

22
00:01:51.570 --> 00:01:56.100
numerically only. Internet protocol IP address dash z.

23
00:01:56.830 --> 00:02:01.260
That's mean that no data will be passed to the receiver dash w v

24
00:02:02.320 --> 00:02:05.980
detail. Cat. How long to wait for a port to scan?

25
00:02:07.260 --> 00:02:10.900
Remember that net Cat will tell you the service associated in a specific port.

26
00:02:11.490 --> 00:02:13.100
It's mean that in this folder,

27
00:02:13.240 --> 00:02:16.940
in this path for Windows and for Linux net Cat,

28
00:02:17.560 --> 00:02:22.340
use the the services defined in this file to show

29
00:02:22.540 --> 00:02:26.420
a specific service running in a specific port. When analyzing host,

30
00:02:26.640 --> 00:02:31.300
we can use a range of ports or specify individual ports for our

31
00:02:31.580 --> 00:02:32.900
scanning. For example,

32
00:02:32.960 --> 00:02:37.860
we can use a range in this example or we can use a specific ports for

33
00:02:37.860 --> 00:02:41.070
our scanning port In this case,

34
00:02:41.850 --> 00:02:46.670
if we are troubleshooting a particular services and checking if the port

35
00:02:47.090 --> 00:02:48.230
of the service is closed,

36
00:02:48.730 --> 00:02:52.990
we could say that there is a problem in the server and not with the network

37
00:02:53.460 --> 00:02:58.030
because the service is not running because any port is

38
00:02:58.250 --> 00:03:01.840
closed. So in our Carlin environment here,

39
00:03:02.460 --> 00:03:05.960
we can use Netcat for our troubleshooting examination.

40
00:03:06.340 --> 00:03:11.140
We saw that the first step for troubleshooting is to verify if Port

41
00:03:11.360 --> 00:03:16.140
is open or not. So these, uh, port is open or closed.

42
00:03:16.440 --> 00:03:19.700
That's mean that the problem is, is not,

43
00:03:19.880 --> 00:03:22.180
is in the server and is not in the network.

44
00:03:23.070 --> 00:03:27.010
So I have a server in my network, my local network here.

45
00:03:27.350 --> 00:03:32.090
So we can use Net CAT to check if some ports are available, are open or not.

46
00:03:32.590 --> 00:03:36.760
So we are gonna use net CAT option V

47
00:03:37.460 --> 00:03:42.340
for verbose mode Z. That's mean to, it's not to connect,

48
00:03:42.450 --> 00:03:46.020
it's only to verify for if the port is open or not.

49
00:03:46.860 --> 00:03:51.630
W v to put a output for our comment and one

50
00:03:51.650 --> 00:03:55.270
that's mean that the output will be for one second.

51
00:03:56.240 --> 00:04:00.700
Second and enter the host now. So my local host here is

52
00:04:01.660 --> 00:04:05.710
1 9 2 1 8 0 1

53
00:04:06.820 --> 00:04:11.640
and we saw that we can use a specific port or a range

54
00:04:11.660 --> 00:04:16.590
of ports. So now I use a range of port check.

55
00:04:17.170 --> 00:04:21.310
If enter in this list of port, which ports are available,

56
00:04:21.490 --> 00:04:26.190
are open or not. So I use the port 1 2 9.

57
00:04:27.700 --> 00:04:28.920
So the net cat,

58
00:04:28.940 --> 00:04:33.000
we start a list and for each port we try for one second.

59
00:04:33.780 --> 00:04:36.960
So now we saw that we have uh, 80 a TT P open.

60
00:04:38.240 --> 00:04:43.000
Remember that all the how Net CAT discover and associate

61
00:04:43.220 --> 00:04:47.760
the name for each port so that there's a a default path

62
00:04:48.060 --> 00:04:48.893
folder,

63
00:04:49.380 --> 00:04:53.280
dash ADC dash services for that's mean.

64
00:04:53.450 --> 00:04:57.400
Let's have a bind, a binding for a port and a service name.

65
00:04:57.500 --> 00:05:01.240
So this is how Net CAT knows and put the,

66
00:05:01.300 --> 00:05:04.800
the specific name for each port net cat is finished. The,

67
00:05:04.820 --> 00:05:09.520
the scanning and net CAT use the highest port

68
00:05:09.620 --> 00:05:10.960
number to begin.

69
00:05:11.260 --> 00:05:16.240
So this how this why that get used in 19 and going

70
00:05:16.240 --> 00:05:20.420
down. Okay, for the low port,

71
00:05:20.440 --> 00:05:24.860
for example for Sonet, ftp, this port, I'll close it.

72
00:05:27.610 --> 00:05:32.040
Great. That's it. That's mean that for this range here that I use it,

73
00:05:33.490 --> 00:05:36.750
the ports that are open is the 18 for http

74
00:05:39.100 --> 00:05:40.280
and the port 53.

75
00:05:42.930 --> 00:05:46.550
So we can check uh, for a specific port for example, we,

76
00:05:47.250 --> 00:05:48.920
we'll repeat this in common,

77
00:05:49.140 --> 00:05:53.360
but now I put 80 for the port and that's it.

78
00:05:53.420 --> 00:05:57.760
The port is open or we saw that the port 53 is open.

79
00:05:58.820 --> 00:06:00.770
53 it's open to,

80
00:06:01.070 --> 00:06:05.850
so we can use these both options for a specific port or a

81
00:06:05.850 --> 00:06:10.090
range of ports. And for the same result we could use for example,

82
00:06:10.330 --> 00:06:14.810
N map and use N map and use the same strategy

83
00:06:16.010 --> 00:06:17.390
to check the port.

84
00:06:19.410 --> 00:06:24.350
So we use net cat here because net cat is very simple, uh,

85
00:06:24.450 --> 00:06:28.030
is very, is more fast for example for result.

86
00:06:28.970 --> 00:06:32.270
But for example, it's only to check in map.

87
00:06:32.270 --> 00:06:36.640
Here I use the same host in net map,

88
00:06:37.520 --> 00:06:42.200
identify the same ports, the same port, the same stats,

89
00:06:42.200 --> 00:06:47.000
and the same service that net get net five before and map

90
00:06:47.000 --> 00:06:51.740
here. Get an another port here, a high port. Okay.

91
00:06:52.320 --> 00:06:52.540
Uh,

92
00:06:52.540 --> 00:06:57.540
but the same ports that use it in the for specific port or for a range of port

93
00:06:58.160 --> 00:06:59.780
is the same result of Netcat.

94
00:07:00.000 --> 00:07:03.900
And you saw that netcat was more fast than end map in this case.

95
00:07:04.280 --> 00:07:09.060
So Netcat is a good tool and a fast tool to to

96
00:07:09.200 --> 00:07:12.410
verify which ports are open or not.

97
00:07:13.280 --> 00:07:17.580
In this video we saw how to use Netcat to scan a network

98
00:07:18.120 --> 00:07:21.880
and start ARU process. In the next video,

99
00:07:22.290 --> 00:07:25.800
we'll a look at testing network latency. Hope.
