WEBVTT - This file was automatically generated by VIMEO

0
00:00:12.970 --> 00:00:17.390
Hi and welcome to section three net CAT penetration test.

1
00:00:18.050 --> 00:00:22.950
In this video we are going to talk about penetration test and take a look in

2
00:00:22.950 --> 00:00:25.750
how it's possible to use net CAT for scanning.

3
00:00:26.880 --> 00:00:31.210
Penetration testing is more than running scanners and automated tools

4
00:00:31.710 --> 00:00:36.210
and then written a report before talking about the use of netcat.

5
00:00:36.210 --> 00:00:41.050
For penetration testing, we have to talk about the face of a penetration test.

6
00:00:41.600 --> 00:00:45.310
It's very important to guide the process when this standard.

7
00:00:45.740 --> 00:00:50.710
Here we are presenting this process based on the P test penetration testing as a

8
00:00:50.710 --> 00:00:54.590
cushion standard available in this U R L. The P test.

9
00:00:54.610 --> 00:00:58.590
Define a penetration test as a cushion in seven main sessions.

10
00:00:59.530 --> 00:01:03.870
Threat engagement interactions, intelligence gathering,

11
00:01:04.330 --> 00:01:08.870
threat modeling, vulnerability analysis, exploitation,

12
00:01:09.520 --> 00:01:14.520
pause exploitation and reporting threat engagement interactions.

13
00:01:14.790 --> 00:01:17.520
Discuss the scope and terms of pen test.

14
00:01:18.450 --> 00:01:22.870
Financial goals of the engagement intelligence gathering.

15
00:01:23.940 --> 00:01:28.550
It's about gathering any information about the organization you are attacking.

16
00:01:29.780 --> 00:01:33.880
So like social media networks, Google hacking, footprinting,

17
00:01:34.380 --> 00:01:35.213
the target.

18
00:01:35.430 --> 00:01:40.280
It's more to learn about the target and the types of security controls

19
00:01:40.280 --> 00:01:44.480
in place. For example, how it operates, how it behaves,

20
00:01:44.740 --> 00:01:47.920
how it can be attacked. Threat modeling, it's used.

21
00:01:47.940 --> 00:01:52.600
The information you add query in the intelligence gathering phase to identify

22
00:01:53.140 --> 00:01:56.480
any existing vulnerability on a target system.

23
00:01:56.900 --> 00:02:01.520
It will the term that mean the most effective attack method,

24
00:02:02.140 --> 00:02:06.520
the type of information you are after and how the organization

25
00:02:07.540 --> 00:02:10.970
might be attacked. Threat modern involves looking at uh, uh,

26
00:02:10.970 --> 00:02:14.970
organization as an adversary in attempting to exploit

27
00:02:16.110 --> 00:02:19.590
weakness as the attacker would. Vulnerability analysis.

28
00:02:20.210 --> 00:02:23.310
Having identified the most viable attack method,

29
00:02:23.730 --> 00:02:26.470
you need to consider how you'll access the target.

30
00:02:26.900 --> 00:02:29.150
It's must combine the info,

31
00:02:29.350 --> 00:02:32.990
learning to understand what attacks might be viable.

32
00:02:33.620 --> 00:02:38.230
Example port or vulnerability scans data gather by

33
00:02:38.550 --> 00:02:42.670
boundary grabbing or information collected during intelligence gathering.

34
00:02:42.670 --> 00:02:46.710
Exploitation. Exploitation is often done in brutal force.

35
00:02:46.780 --> 00:02:49.950
Whether then in precision exploit,

36
00:02:50.210 --> 00:02:55.030
who should be performing only when you know almost beyond a shadow of

37
00:02:55.080 --> 00:02:58.950
doubt that a particular exploit be ful. Force.

38
00:02:58.960 --> 00:03:02.760
Exploitation begins after you have compromised one or more.

39
00:03:02.760 --> 00:03:07.520
Systems provide vulnerable information and intelligence

40
00:03:07.520 --> 00:03:11.680
from your penetration. IT targets specific system. For example,

41
00:03:12.120 --> 00:03:17.040
identify critical infrastructure and targets information or data that

42
00:03:17.040 --> 00:03:21.000
the company values most. And that is what attempt to secure.

43
00:03:21.790 --> 00:03:26.280
It's one of the tricky scenarios in which you must take the time to learn

44
00:03:26.710 --> 00:03:31.680
what information is available to you and then use that information to your

45
00:03:31.680 --> 00:03:34.800
benefit. Think like a malicious attacker, be creative,

46
00:03:35.570 --> 00:03:40.000
adapt quickly and rely on your width instead of

47
00:03:40.000 --> 00:03:43.370
automated tools. And finally, reporting.

48
00:03:44.120 --> 00:03:48.730
Reporting is by for the most important element of penetration test 'cause you

49
00:03:48.730 --> 00:03:52.410
have to communicate all the information. You have to communicate what you did,

50
00:03:52.790 --> 00:03:56.970
how you did it, how the organization should fix the vulnerabilities.

51
00:03:57.410 --> 00:04:01.450
Discovered in pain test you are working for attackers point of view,

52
00:04:02.680 --> 00:04:07.060
net CAT is not uh, an exploitation tool, but it can help in this process.

53
00:04:07.920 --> 00:04:12.900
Net CAT is a robust T C P I P and U D P utility tool and is able to handle

54
00:04:13.140 --> 00:04:16.700
a variety of system and network related functions.

55
00:04:17.320 --> 00:04:20.660
Net CAT is not the best tool for port scanning available,

56
00:04:21.280 --> 00:04:24.620
but it's able to handle this task by default.

57
00:04:25.360 --> 00:04:29.460
It used the T C P protocol for all options including port scanning,

58
00:04:30.910 --> 00:04:33.840
port scanning and service certification.

59
00:04:33.990 --> 00:04:36.640
Play a large role during a penetration test.

60
00:04:37.570 --> 00:04:42.330
Identifying a service or a server version running on a system is a very

61
00:04:42.330 --> 00:04:46.250
important to determine any potential vulnerability information.

62
00:04:47.160 --> 00:04:50.810
Here we have some port scan options for net CAT

63
00:04:52.010 --> 00:04:56.820
dash V is about ity these results in the level of verbosity

64
00:04:56.880 --> 00:05:01.620
and the results of net CAT will show what's going on for each step that the tool

65
00:05:01.720 --> 00:05:05.900
is taken when the executing are inner common or when it receive

66
00:05:06.820 --> 00:05:09.190
external common dash r.

67
00:05:09.900 --> 00:05:13.270
This option randomized ports in several mode dash R.

68
00:05:13.570 --> 00:05:17.990
We also randomize randomize local store ports. Dash U,

69
00:05:18.740 --> 00:05:22.550
it's U D P mode. Since U D P is a connector protocol,

70
00:05:22.900 --> 00:05:27.710
it's recommended that it's used timeouts we this option and

71
00:05:27.710 --> 00:05:30.580
dash Z zero io,

72
00:05:31.640 --> 00:05:35.420
no data will be passed to this receiver essentially for D C P.

73
00:05:35.420 --> 00:05:37.420
This is a three-way handshake.

74
00:05:38.200 --> 00:05:42.540
Now let's take a look in the practice here. I'm running my Linux,

75
00:05:42.930 --> 00:05:47.700
tele Linux environment and here I have one machine running,

76
00:05:48.080 --> 00:05:51.580
uh, windows. So in this environment here,

77
00:05:52.750 --> 00:05:56.210
let open a connection using,

78
00:05:57.780 --> 00:06:01.120
I'm using a netcat version for for windows.

79
00:06:02.440 --> 00:06:06.260
So dash V to get a OSE mode,

80
00:06:08.450 --> 00:06:12.110
K to remaining, uh, open door.

81
00:06:13.290 --> 00:06:18.190
Lesson L for lesson and P for the port.

82
00:06:18.610 --> 00:06:20.470
So I would choose 5, 5, 5, 5.

83
00:06:21.520 --> 00:06:26.490
And okay net cat for the version seven on

84
00:06:26.630 --> 00:06:29.680
for the project and map. We'll listen,

85
00:06:29.890 --> 00:06:34.370
we'll open a connection and listen in this port here.

86
00:06:34.590 --> 00:06:35.650
So let me put here

87
00:06:37.400 --> 00:06:40.100
in here in my UX environment.

88
00:06:40.230 --> 00:06:44.030
Let's do a scanning for this port. Okay.

89
00:06:44.030 --> 00:06:46.070
First I'll open a terminal here,

90
00:06:48.720 --> 00:06:49.553
put it this way,

91
00:06:51.900 --> 00:06:54.560
me another terminal in this side by side.

92
00:06:55.420 --> 00:06:58.810
First I would take, uh, a scan for the,

93
00:06:59.550 --> 00:07:03.570
for the port that I open in another terminal windows terminal. Okay,

94
00:07:03.570 --> 00:07:08.450
so I'll use the net CAT version stolen in the this project.

95
00:07:09.160 --> 00:07:13.770
I'll use dash DV to get more detail about the

96
00:07:14.070 --> 00:07:14.903
the ports.

97
00:07:16.210 --> 00:07:20.980
I'll use the option W to determine all

98
00:07:21.040 --> 00:07:21.873
the ports.

99
00:07:21.940 --> 00:07:26.900
I will wait this number two here is to wait the number of seconds for each port

100
00:07:28.380 --> 00:07:33.020
I you put the IP of my machine that is running Windows

101
00:07:34.740 --> 00:07:36.830
15 seven.

102
00:07:37.710 --> 00:07:42.490
I put dash Z dash C is will, uh,

103
00:07:43.570 --> 00:07:45.980
make a connect, will do a scan,

104
00:07:46.280 --> 00:07:50.060
but will not connect for for the port. Okay.

105
00:07:50.860 --> 00:07:54.660
And I'll put a range of ports.

106
00:07:55.400 --> 00:07:58.400
So 5 5 5 0 dash

107
00:07:59.750 --> 00:08:03.320
5 5 6 I'll put, would put,

108
00:08:03.480 --> 00:08:07.040
I would determine a range for, for ports.

109
00:08:08.490 --> 00:08:12.950
If I stipulate big range, I would take more time.

110
00:08:13.500 --> 00:08:15.430
Okay, so I know that the,

111
00:08:15.430 --> 00:08:20.150
there's a port in 5 5, 5 5 and I put a range of 10,

112
00:08:20.410 --> 00:08:25.230
uh, ports only to get more speed, minimize scanning process.

113
00:08:27.610 --> 00:08:31.910
So the net get will start to make a scanning the ports for each port.

114
00:08:32.010 --> 00:08:35.350
We try to only verify it's used cp. Okay,

115
00:08:35.460 --> 00:08:38.430
it's only verified it's a, a connection. No.

116
00:08:38.890 --> 00:08:41.480
So this is the ip,

117
00:08:42.680 --> 00:08:46.920
this is the port and the net CAT was able to

118
00:08:47.340 --> 00:08:52.100
verify that there's a port open in 5 5, 5 5. Okay,

119
00:08:52.360 --> 00:08:56.840
so, uh, the net cat, uh, is not connected in this port.

120
00:08:56.910 --> 00:09:01.600
It's only check. Hey, this is, uh, there's a port open there. Okay,

121
00:09:01.670 --> 00:09:05.240
another uh, test that we are gonna do here is uh,

122
00:09:05.520 --> 00:09:10.470
I will start my Apache server in this Linux environment

123
00:09:10.810 --> 00:09:15.110
and I will do a scan. I will verify if the port is open or not,

124
00:09:15.820 --> 00:09:20.640
but first of all, I will start my service AP Apache.

125
00:09:22.670 --> 00:09:26.940
So the server is, is running. Okay, so I,

126
00:09:27.700 --> 00:09:31.310
I able to verify, verify if the,

127
00:09:31.810 --> 00:09:36.010
get a status for the services. So the service is active.

128
00:09:36.390 --> 00:09:40.730
So my H A T P server, AP Apache is running.

129
00:09:41.700 --> 00:09:45.640
And in this side here I will take a look if this open is,

130
00:09:46.920 --> 00:09:49.140
is the port is open or not.

131
00:09:49.760 --> 00:09:54.250
So I will do a netcat dash V V O V.

132
00:09:54.760 --> 00:09:56.050
Okay. Uh,

133
00:09:56.180 --> 00:10:01.100
local host and I will specify this port

134
00:10:01.740 --> 00:10:05.980
I for the, for the scanning I can use,

135
00:10:07.560 --> 00:10:10.000
I use the dash Z, but I will verify,

136
00:10:10.080 --> 00:10:14.720
I specify a specific port or I can specify a range

137
00:10:14.940 --> 00:10:18.800
of ports. Okay? And now, uh, I know that

138
00:10:20.360 --> 00:10:22.850
this port here is open okay?

139
00:10:23.710 --> 00:10:26.330
And not can use my,

140
00:10:26.510 --> 00:10:30.430
the information present in the services file.

141
00:10:32.430 --> 00:10:34.130
And uh, I know that the port is,

142
00:10:35.990 --> 00:10:39.920
it's open now let me close stop the service

143
00:10:42.700 --> 00:10:43.670
like this. Okay?

144
00:10:44.250 --> 00:10:48.930
The May a TTP server is stop it and I'll repeat the proceeding.

145
00:10:50.520 --> 00:10:54.540
And now the connection is refused that in this part is closed.

146
00:10:55.530 --> 00:11:00.420
Okay, so uh, net cat, this is the use of net CAT for scanning.

147
00:11:01.040 --> 00:11:04.340
Uh, it's very simple type of scanning,

148
00:11:04.480 --> 00:11:09.200
but it's very useful to determine if a

149
00:11:09.520 --> 00:11:12.080
specific port or a range of ports.

150
00:11:12.620 --> 00:11:17.230
In this video we saw an introduction about the phases of

151
00:11:17.230 --> 00:11:21.790
penetration test defined by B test and how we can use

152
00:11:22.210 --> 00:11:24.700
Netcat for scanning the next video.

153
00:11:24.870 --> 00:11:28.620
We'll take a look in how use Netcat for Nuon. Hope to see you there.
