WEBVTT - This file was automatically generated by VIMEO

0
00:00:08.420 --> 00:00:11.440
Hi, and welcome back to Section six,

1
00:00:12.560 --> 00:00:15.890
Netcat Penetration Test. In this video,

2
00:00:16.590 --> 00:00:19.690
we are going to talk about application connectivity.

3
00:00:20.940 --> 00:00:24.400
One time that we have sure that the network is working fine.

4
00:00:25.200 --> 00:00:30.060
The next step is to check if the application is running and providing to us

5
00:00:30.280 --> 00:00:34.340
the service and or the resource that we are using.

6
00:00:35.610 --> 00:00:38.670
The first step was to use the scan in a specific port.

7
00:00:39.780 --> 00:00:44.720
Now we can use this port to check more closely what is running and if

8
00:00:44.930 --> 00:00:48.280
exist, any configuration related to the services.

9
00:00:49.480 --> 00:00:53.370
When we are working with troubleshooting web applications or web services,

10
00:00:53.710 --> 00:00:56.130
we are talking about the protocol, H T T P,

11
00:00:56.520 --> 00:01:01.010
that is present in layer seven in the OAS I model

12
00:01:01.940 --> 00:01:06.050
where applications are built with these protocols. When the pro,

13
00:01:06.080 --> 00:01:11.010
when the protocol HTT p a list of comments is permitted to interact with

14
00:01:11.010 --> 00:01:15.610
it, these comments are head get options,

15
00:01:15.880 --> 00:01:20.610
post put, delete, and, and more authors.

16
00:01:21.700 --> 00:01:25.120
We can use these comments to determine the status of the web server.

17
00:01:25.780 --> 00:01:30.520
And this can help us in our task of troubleshooting. In many cases,

18
00:01:31.270 --> 00:01:34.960
it's not possible to get result with all a TT p comments like this.

19
00:01:36.250 --> 00:01:40.790
Net Cat is providing an additional benefit in our troubleshooting because

20
00:01:40.920 --> 00:01:45.510
every command sent by Netcat is being transmitted across this

21
00:01:45.750 --> 00:01:50.520
communication stream is being sent and ated on screen.

22
00:01:50.620 --> 00:01:52.040
We have a comment that we,

23
00:01:52.100 --> 00:01:56.920
we gonna use to have more information about the, the server.

24
00:01:58.040 --> 00:02:01.620
Sometimes when we connect directly with a server,

25
00:02:01.800 --> 00:02:05.820
the server's not ready to send a response to us.

26
00:02:06.560 --> 00:02:10.620
For example, if we try connecting Net Cat and host and Port,

27
00:02:12.340 --> 00:02:14.560
we gonna have succeed,

28
00:02:14.900 --> 00:02:19.400
but we gonna not see any information about, about him.

29
00:02:20.280 --> 00:02:25.270
But if we, if we use this combination of comments, for example, this,

30
00:02:25.290 --> 00:02:28.870
that's sure that we gonna receive some information. For example,

31
00:02:29.900 --> 00:02:34.840
we have a print that's mean is a comment to print formation on

32
00:02:35.120 --> 00:02:39.800
terminal and argument. We have a string. So this is a request,

33
00:02:39.800 --> 00:02:44.480
comment and start, always start in a option, in a verb.

34
00:02:44.630 --> 00:02:49.040
This common in screen is get, for example, from root,

35
00:02:50.080 --> 00:02:53.260
we have to specify the version of H T P that we're going, that,

36
00:02:53.330 --> 00:02:56.810
that we are using and specify a host

37
00:02:58.220 --> 00:03:03.000
and we have some characters to, to break lines. For example, in this comment,

38
00:03:03.670 --> 00:03:06.200
this will be a comment for input.

39
00:03:06.740 --> 00:03:11.010
We have a pipe that's mean that what what we have in the right

40
00:03:11.800 --> 00:03:16.410
will be a input for the comment that come next in the left.

41
00:03:16.950 --> 00:03:21.930
So in this case is a comment for Netcat to have a connection

42
00:03:21.930 --> 00:03:24.810
with a specific host and a specific port.

43
00:03:25.550 --> 00:03:27.530
So in this case,

44
00:03:28.150 --> 00:03:32.300
we have a connection with Netcat to our

45
00:03:33.790 --> 00:03:34.470
web server.

46
00:03:34.470 --> 00:03:38.830
We are using a port 80 and we are specify

47
00:03:40.340 --> 00:03:44.230
when we connect the server, you are passing a specific command,

48
00:03:45.130 --> 00:03:49.750
get some result hosted in this host and

49
00:03:49.970 --> 00:03:54.870
in the root folder. So here we have our Linux environment here,

50
00:03:55.330 --> 00:04:00.250
and let's do some examples. For example, I know that in the host,

51
00:04:00.510 --> 00:04:01.570
in the specific host,

52
00:04:01.830 --> 00:04:05.890
1, 9 2, 1, 6, 8, 0 1.

53
00:04:06.470 --> 00:04:10.120
In this host here in my network, my local network here,

54
00:04:11.330 --> 00:04:14.610
I have our, uh, server, our web server running this host.

55
00:04:15.110 --> 00:04:19.250
So I know that there's something running in the port 80.

56
00:04:20.230 --> 00:04:24.270
So we saw that we use a specific command

57
00:04:25.910 --> 00:04:30.790
to get more information and to verify,

58
00:04:30.890 --> 00:04:35.710
for example, if this door is open, we use the dash V Z

59
00:04:37.650 --> 00:04:41.750
two, for example, to, to, to set a timeout and for example,

60
00:04:42.210 --> 00:04:44.870
and if we use this command here on screen,

61
00:04:45.710 --> 00:04:50.310
I know that there is in this host, there's in n in this port,

62
00:04:50.960 --> 00:04:55.790
there is a server. Okay? And the port is open.

63
00:04:57.110 --> 00:04:57.943
Okay?

64
00:04:58.020 --> 00:05:02.250
So to get my information about this server,

65
00:05:03.220 --> 00:05:06.680
we can use this command here that we saw print.

66
00:05:07.770 --> 00:05:09.150
So we can use print F.

67
00:05:09.890 --> 00:05:13.710
There is a example here that we are gonna see.

68
00:05:15.130 --> 00:05:17.070
The first of all is to get

69
00:05:19.780 --> 00:05:24.450
the first page. So here we have,

70
00:05:25.680 --> 00:05:27.570
here we have a verb,

71
00:05:27.830 --> 00:05:31.810
yet we have to specify which folder.

72
00:05:32.110 --> 00:05:36.410
So this is a root folder. This is the beginning of the web application.

73
00:05:36.430 --> 00:05:40.810
For example, example. This is the version of the H T P that we are gonna use.

74
00:05:41.980 --> 00:05:44.960
We have to specify a host in this case will be the,

75
00:05:44.980 --> 00:05:49.680
the server that is running in my local network here. So we'll be

76
00:05:50.340 --> 00:05:55.160
1 9 2 1 6, 8, 0 1, okay?

77
00:05:55.660 --> 00:05:56.493
Is a pipe.

78
00:05:56.860 --> 00:06:01.840
That's mean that what we have in the left will be a input for what we have in,

79
00:06:01.840 --> 00:06:02.673
in the right.

80
00:06:03.020 --> 00:06:08.000
And now we gonna change this for the

81
00:06:08.000 --> 00:06:11.700
same host. That is the host present in my network.

82
00:06:12.320 --> 00:06:16.700
So this will be the common, okay, so in this case,

83
00:06:16.920 --> 00:06:20.060
the server is okay, the port is open, so the server,

84
00:06:20.250 --> 00:06:22.860
it's on and this port is open.

85
00:06:23.250 --> 00:06:27.810
When we are talking about the medication between the client and the server,

86
00:06:28.360 --> 00:06:29.930
this is the pattern,

87
00:06:30.190 --> 00:06:34.530
the architecture pattern that we have a client and the server and the client

88
00:06:34.640 --> 00:06:39.580
make a request and the server will respond

89
00:06:40.040 --> 00:06:44.220
in a respond. So is a request respond. Okay? So this is the,

90
00:06:44.240 --> 00:06:49.100
the structure of our request, and this is our structure of, uh,

91
00:06:49.460 --> 00:06:51.250
a post a response.

92
00:06:52.070 --> 00:06:56.470
So we'll be the version of the H T P,

93
00:06:56.730 --> 00:07:01.420
the protocol project in the layer seven. Okay? Using, uh,

94
00:07:01.860 --> 00:07:06.820
O S I model as reference, we have a code 200.

95
00:07:06.820 --> 00:07:10.260
That means it's, okay. So this common is, okay,

96
00:07:10.960 --> 00:07:14.830
we have some information from from the head. This is is the head, okay?

97
00:07:15.530 --> 00:07:20.390
The header of the response common. And we have, we,

98
00:07:20.570 --> 00:07:24.790
we use it the verb get what we have with the hood.

99
00:07:25.490 --> 00:07:28.390
And this is the, the, the folder.

100
00:07:28.660 --> 00:07:31.600
This is the file that the server response.

101
00:07:31.860 --> 00:07:34.440
So this interaction is, is okay,

102
00:07:35.060 --> 00:07:39.440
we saw that we can use some others options and comments

103
00:07:39.980 --> 00:07:41.560
to verify if, for example,

104
00:07:41.780 --> 00:07:46.730
the server is working okay or some resource are available

105
00:07:46.790 --> 00:07:48.770
or not. Because for example,

106
00:07:49.630 --> 00:07:53.970
we gonna change the verb of to our request,

107
00:07:54.270 --> 00:07:58.790
get to options. And you saw that, hey,

108
00:07:59.610 --> 00:08:04.500
this option here is not allowed, this method's not allowed this method options.

109
00:08:04.960 --> 00:08:08.860
So that's mean that the server, it's on, it's running. Okay?

110
00:08:09.560 --> 00:08:11.260
But this is not allowed,

111
00:08:12.370 --> 00:08:16.760
this is very interesting because if this command work well,

112
00:08:17.890 --> 00:08:22.790
the server can show to us the list of options and command that

113
00:08:23.480 --> 00:08:27.060
the server is, is fine to work.

114
00:08:27.730 --> 00:08:28.850
This is interesting,

115
00:08:29.470 --> 00:08:34.450
but this could be a vulnerability tool because the server say, Hey,

116
00:08:35.560 --> 00:08:40.460
I'm moreum this comment here, so this could be factor of attack, for example.

117
00:08:41.430 --> 00:08:46.150
So let's change this and try

118
00:08:46.150 --> 00:08:51.080
another one for example, ahead to get just the,

119
00:08:51.670 --> 00:08:56.510
some few lines from the header and the server say, Hey, does not allow to,

120
00:08:57.290 --> 00:09:00.890
we can use, for example, we can, uh,

121
00:09:00.980 --> 00:09:05.810
raise this common here and use for example,

122
00:09:05.980 --> 00:09:09.310
trace that the one option

123
00:09:11.090 --> 00:09:16.070
to trace some formation. For example, index.

124
00:09:17.180 --> 00:09:20.810
But HT m is not allowed to.

125
00:09:22.040 --> 00:09:24.930
This common trace is interesting because if works,

126
00:09:26.120 --> 00:09:29.620
the server can show to us some, uh, some traces,

127
00:09:30.050 --> 00:09:32.900
some trace of the file of some resource, for example.

128
00:09:33.280 --> 00:09:36.200
So we saw that in front, this host here,

129
00:09:37.340 --> 00:09:42.000
the server is, is running, is okay, some methods are allowed,

130
00:09:42.070 --> 00:09:42.903
some not.

131
00:09:43.260 --> 00:09:47.930
So this is interesting to verify that this server is

132
00:09:48.000 --> 00:09:52.440
very robust and they don't show a lot of

133
00:09:52.440 --> 00:09:53.480
information. For example,

134
00:09:54.520 --> 00:09:59.260
let's try for another host that public host's a

135
00:09:59.460 --> 00:10:01.260
microsoft host.com.

136
00:10:06.020 --> 00:10:10.300
I wanted to get some results. For example, we are using a get, again,

137
00:10:10.600 --> 00:10:15.170
our option to get the first, the first fi, this first resource, uh,

138
00:10:15.170 --> 00:10:17.090
that will be the index file. For example,

139
00:10:17.190 --> 00:10:20.890
the host page of the file of the application.

140
00:10:22.000 --> 00:10:25.540
So this, this is the same, uh, response, okay?

141
00:10:25.610 --> 00:10:29.540
This is a header of, uh, a response. Say, okay,

142
00:10:30.270 --> 00:10:32.180
under is. Okay? Uh,

143
00:10:32.240 --> 00:10:36.980
and this is the index file to Microsoft webpage.

144
00:10:38.350 --> 00:10:41.610
If you use for example, options or head,

145
00:10:42.260 --> 00:10:46.960
let's try ahead only to get the two liners

146
00:10:47.150 --> 00:10:49.610
from the header. This is

147
00:10:51.500 --> 00:10:56.350
some informations on here. We still connected, but say,

148
00:10:56.350 --> 00:11:00.070
hey, the server is, is this one here? The part,

149
00:11:00.580 --> 00:11:05.260
it's HT T P 80. It's open. Our common it's okay.

150
00:11:06.730 --> 00:11:11.190
And here are some informations only for, for the head. If you,

151
00:11:11.330 --> 00:11:12.510
if we try for example,

152
00:11:12.540 --> 00:11:17.310
options to get the list of H T T P verbs that thiss it's

153
00:11:18.310 --> 00:11:22.300
ready to to work. We have some,

154
00:11:22.690 --> 00:11:27.230
some information here, some C S Ss and they say, Hey,

155
00:11:27.230 --> 00:11:28.830
this is forbidden. Okay?

156
00:11:29.090 --> 00:11:32.670
And we have h ml's file here.

157
00:11:34.150 --> 00:11:37.330
So we see the difference for one server is forbidden.

158
00:11:37.360 --> 00:11:41.250
This information for another one is not allowed.

159
00:11:41.430 --> 00:11:45.220
So this is very interesting because the server two

160
00:11:46.280 --> 00:11:49.020
say, Hey, I will not show to you the,

161
00:11:49.680 --> 00:11:53.880
the list of verbs that I'm working, a list of ve that are available,

162
00:11:53.980 --> 00:11:58.280
for example. So this is very interesting. So with this,

163
00:11:58.310 --> 00:11:59.640
with these comments here,

164
00:12:00.790 --> 00:12:03.530
we are able to verify some problems,

165
00:12:03.560 --> 00:12:07.610
some details of uh, H T T P web application.

166
00:12:09.120 --> 00:12:13.180
In this video we saw about application connectivity.

167
00:12:13.810 --> 00:12:18.220
Near next video, we'll take a look at reporting and documentation.

168
00:12:18.900 --> 00:12:19.900
I hope to see you there.
