WEBVTT - This file was automatically generated by VIMEO

0
00:00:08.310 --> 00:00:13.010
Hi, and welcome back to Section 11 sniffing traffic. In this video,

1
00:00:13.310 --> 00:00:17.130
you'll learn how to perform analysis using wire shark.

2
00:00:17.850 --> 00:00:20.250
I hope you're excited. So let's typhon in.

3
00:00:21.940 --> 00:00:26.790
When performing analysis, it's recommended to use wire. However,

4
00:00:26.970 --> 00:00:31.710
we need to capture the and save it simply because it's easier to

5
00:00:31.710 --> 00:00:35.750
perform post analysis from a captured file

6
00:00:36.500 --> 00:00:41.360
to get wire on a window system or a Lenox system or your

7
00:00:41.360 --> 00:00:46.280
Mac system simply to Google search your wire and

8
00:00:46.280 --> 00:00:50.900
next click on the wire. Once you click the link,

9
00:00:51.200 --> 00:00:54.860
you'll sent or redirected to this website.

10
00:00:55.280 --> 00:00:58.370
Simply click on get started and here we can see

11
00:01:00.450 --> 00:01:04.090
download version for wire, there's a Windows installer,

12
00:01:04.320 --> 00:01:08.530
there's a portable app solution. There's even the Mac version,

13
00:01:08.950 --> 00:01:10.770
and then there's a Mac Intel version.

14
00:01:11.670 --> 00:01:14.650
If you are using a Windows space system or a Mac system,

15
00:01:14.790 --> 00:01:19.330
you can simply download these installers and execute it on your device.

16
00:01:19.760 --> 00:01:22.290
However, if you are using cardox,

17
00:01:22.440 --> 00:01:25.930
it's pre-install as you have seen in the previous video.

18
00:01:26.680 --> 00:01:31.530
Once you have installed wire use samples,

19
00:01:34.360 --> 00:01:37.410
wire samples, so hit enter.

20
00:01:38.000 --> 00:01:39.370
Once you see the URL,

21
00:01:39.380 --> 00:01:43.330
which says wiki org sample captures,

22
00:01:43.790 --> 00:01:44.623
simply click it.

23
00:01:45.210 --> 00:01:49.320
It'll you to a list of sample captures that are provided by wire

24
00:01:50.060 --> 00:01:51.680
for loo analysis.

25
00:01:51.950 --> 00:01:56.800
Here we have different categories and we can download all of these and

26
00:01:56.800 --> 00:01:58.880
learn how to analyze bucket. However,

27
00:01:59.210 --> 00:02:03.280
there are three particular samples that we are going use. Simply press

28
00:02:05.100 --> 00:02:07.800
on your keyboard to get a feature first

29
00:02:09.750 --> 00:02:12.520
Telenet. Once you find Telenet, click it.

30
00:02:12.700 --> 00:02:17.040
And here we are under the Telenet category, and there two files.

31
00:02:17.510 --> 00:02:22.160
There's ANet file. Simply click this file,

32
00:02:22.600 --> 00:02:23.140
download it,

33
00:02:23.140 --> 00:02:27.880
and see your we'll use file to analyze how unsecure

34
00:02:28.120 --> 00:02:32.640
protocols transmit sensitive data over network. Next,

35
00:02:33.330 --> 00:02:37.160
we'll take a look at reconstructing a voiceover IP

36
00:02:37.560 --> 00:02:41.040
conversation for this capture simply for,

37
00:02:42.700 --> 00:02:45.480
and here we have two captures.

38
00:02:45.820 --> 00:02:48.880
Simply select this one which says, plus

39
00:02:50.590 --> 00:02:55.480
this is simply a complete telephone conversation that occurs over a

40
00:02:55.480 --> 00:02:59.800
local area network, but the transmitting protocols are unsecure,

41
00:03:00.060 --> 00:03:03.560
so we can use wire to reconstruct the actual conversation.

42
00:03:05.380 --> 00:03:06.213
And lastly,

43
00:03:06.610 --> 00:03:11.440
we'll download another file which we'll be using to extract

44
00:03:12.200 --> 00:03:13.033
downloaded data.

45
00:03:13.300 --> 00:03:17.600
So put simply if anyone has downloaded a file using an unsecure protocol,

46
00:03:18.020 --> 00:03:21.240
we can extract it from the buckets. For this file,

47
00:03:21.500 --> 00:03:23.640
simply search for jpeg like zoom,

48
00:03:23.940 --> 00:03:26.640
and here we have T with

49
00:03:29.750 --> 00:03:33.760
file. This file is actually a file, so you'll need to extract it,

50
00:03:34.080 --> 00:03:37.160
actually get the actual file or the file.

51
00:03:37.660 --> 00:03:41.280
So once you have these three files, let us open wire.

52
00:03:43.030 --> 00:03:47.320
Once you have open wire to load the pocket capture into wire,

53
00:03:47.860 --> 00:03:51.920
simply click on file and then click on open. Once you click on open,

54
00:03:52.270 --> 00:03:54.480
then navigate to where you have saved the file.

55
00:03:54.990 --> 00:03:57.920
Once you have navigated to the download directory,

56
00:03:58.220 --> 00:04:03.160
simply select the file and open it. Firstly, let's take a look at the file.

57
00:04:03.460 --> 00:04:07.960
Simply select tele and click on open. Once you click on,

58
00:04:08.780 --> 00:04:11.720
you'll see all the packets are loaded on the wire.

59
00:04:12.780 --> 00:04:17.400
On the column we have the number. This indicates the number.

60
00:04:17.870 --> 00:04:18.960
Next, we have the time.

61
00:04:19.150 --> 00:04:23.160
This is the absolute time from the point where has started capturing the

62
00:04:23.160 --> 00:04:27.240
traffic. We have source which indicates a list of IP address,

63
00:04:27.870 --> 00:04:30.520
destination IP addresses, protocols,

64
00:04:30.780 --> 00:04:34.880
the and summary information. Once we select your packet,

65
00:04:35.140 --> 00:04:39.960
notice in the details plane, which is down here, the information changes.

66
00:04:40.380 --> 00:04:43.960
So for instance, if we select the first like zoom,

67
00:04:44.140 --> 00:04:49.000
we can double click on the first actually on a separate window like

68
00:04:49.000 --> 00:04:52.650
zoom. So therefore on frame one,

69
00:04:53.590 --> 00:04:58.130
we can see that it is using TCP transmission control protocol

70
00:04:58.520 --> 00:05:02.410
from the OSI layer or the TCP p protocol suite.

71
00:05:03.220 --> 00:05:05.800
The transport layer contains two sub protocols,

72
00:05:06.460 --> 00:05:09.440
TCP and UDP tcps connection oriented.

73
00:05:09.650 --> 00:05:13.680
While the UDP is user data and protocol, it is connectionless,

74
00:05:14.140 --> 00:05:18.600
so therefore we can see it is using tcp. We have a source port number,

75
00:05:19.060 --> 00:05:20.480
any destination port number.

76
00:05:21.270 --> 00:05:26.130
The destination port number simply indicates a service on the recipients

77
00:05:26.230 --> 00:05:27.250
and for instance,

78
00:05:27.390 --> 00:05:31.530
we can see it is using port 23 as a destination port,

79
00:05:31.870 --> 00:05:35.570
and therefore Telnet uses port 23 by default.

80
00:05:36.030 --> 00:05:39.410
If we expand the transport layer ahead of details,

81
00:05:39.590 --> 00:05:43.410
we can get a lot more information. We have the source port number,

82
00:05:43.670 --> 00:05:46.850
the destination port number. We have the sequencer number.

83
00:05:47.150 --> 00:05:51.450
We have what our acknowledgements are set. We can see the window size,

84
00:05:51.780 --> 00:05:56.410
which indicates the amount of data that will be transmitted between a sender

85
00:05:56.630 --> 00:06:00.400
and a, we have the flags if we expand flags.

86
00:06:00.540 --> 00:06:04.760
We can see there are different types of flags that can be set.

87
00:06:05.070 --> 00:06:06.840
However, this is a

88
00:06:08.420 --> 00:06:13.080
simply because that it's a TB message and it

89
00:06:13.660 --> 00:06:16.200
is set for a sin flag.

90
00:06:17.300 --> 00:06:21.750
Next we can see the network layer header or layer three header,

91
00:06:22.080 --> 00:06:24.510
which is using internet protocol version four,

92
00:06:25.010 --> 00:06:28.750
we have the source IP address and the destination IP address.

93
00:06:29.610 --> 00:06:32.830
We can see the version of IP, which is version four.

94
00:06:33.250 --> 00:06:37.030
We can see the header size, the differentiated services field,

95
00:06:37.040 --> 00:06:41.830
which indicates whether the message is using quality or not.

96
00:06:42.330 --> 00:06:45.310
We can see the TTL value, which is the time to live.

97
00:06:46.070 --> 00:06:49.410
We can see the protocol that is used at a transport layer.

98
00:06:49.990 --> 00:06:51.090
We can see the header check,

99
00:06:51.300 --> 00:06:55.570
which is used for checking the integrity of the message.

100
00:06:56.270 --> 00:07:01.170
We can see the source i p and the destination IP address. Furthermore,

101
00:07:01.190 --> 00:07:05.250
we have the layer two header, which is called Ether two on wire.

102
00:07:05.870 --> 00:07:09.490
If we header, we can see the destination address,

103
00:07:10.190 --> 00:07:13.530
the source address and type.

104
00:07:13.830 --> 00:07:18.650
The type indicates a protocol from the network layer. And lastly,

105
00:07:18.830 --> 00:07:20.170
we have the actual,

106
00:07:21.750 --> 00:07:26.570
the simply indicates any sort of encoding and

107
00:07:26.570 --> 00:07:30.850
signal and method for this message to on a physical layer of the network,

108
00:07:32.030 --> 00:07:35.220
let's say we click on talent, which is pocket number four.

109
00:07:35.770 --> 00:07:36.740
When we click on talent,

110
00:07:37.080 --> 00:07:41.500
notice that we have a new field appearing or a new header.

111
00:07:41.810 --> 00:07:43.020
This header is called talent.

112
00:07:43.610 --> 00:07:48.420
This header simply contains a application layer details. If we expand,

113
00:07:48.600 --> 00:07:53.580
we can see any sort of data that is inserted by talent add application

114
00:07:53.580 --> 00:07:54.900
layer. Currently,

115
00:07:55.170 --> 00:07:59.860
there's a lot of talent messages and there's a lot of TCP messages.

116
00:08:00.820 --> 00:08:05.240
As atrician tester, we need to remember that talent is an unsecure protocol.

117
00:08:05.670 --> 00:08:10.160
Therefore it'll be trans messages in Cleantech. To put simply,

118
00:08:10.310 --> 00:08:15.080
there's a likely chance that we might be able to capture the username and

119
00:08:15.360 --> 00:08:17.680
password between the source and destination.

120
00:08:18.170 --> 00:08:23.080
Let's take a look at one once more. One is sending a send.

121
00:08:23.080 --> 00:08:27.640
Message number two is A, and number three is an,

122
00:08:28.100 --> 00:08:32.920
the message starts with a sender who's attempting to create or establish a

123
00:08:32.920 --> 00:08:35.960
connection with the Destin. The sender is two,

124
00:08:36.450 --> 00:08:40.520
while the Destin one since is an unsecure protocol,

125
00:08:40.970 --> 00:08:45.560
let's attempt to reconstruct all the talent messages and take a look at

126
00:08:45.710 --> 00:08:47.680
what is being sent over the network.

127
00:08:48.060 --> 00:08:53.000
So you can right click and simply select Follow TCP stream. And currently,

128
00:08:53.150 --> 00:08:57.840
wire shark has reconstructed all the messages and assu us exactly

129
00:08:57.910 --> 00:08:58.743
what has happened.

130
00:08:59.940 --> 00:09:04.810
Messages in blue indicates all the data that sent from the

131
00:09:05.390 --> 00:09:06.223
to client.

132
00:09:08.100 --> 00:09:10.760
All the messages is sent from

133
00:09:11.380 --> 00:09:14.440
92 0 1.

134
00:09:14.980 --> 00:09:19.520
All the messages that are highlighted in red is sent from the client to the

135
00:09:19.520 --> 00:09:23.880
destination. Therefore, all the messages in red are from

136
00:09:27.270 --> 00:09:30.160
currently we can communication

137
00:09:32.300 --> 00:09:36.660
prompt for a username, well a log the client, which is two,

138
00:09:36.740 --> 00:09:41.260
provided the username must speak. Then to prompt for a password,

139
00:09:41.760 --> 00:09:45.700
the client, which is two provided user. Then we can see the log.

140
00:09:47.070 --> 00:09:51.810
We can see exactly what the client did up until the point client has

141
00:09:52.080 --> 00:09:56.100
exit or telenet session. So as you can see, we,

142
00:09:56.280 --> 00:10:00.540
we can reconstruct the messages using wire and identify

143
00:10:00.890 --> 00:10:05.820
sensitive data such as user password and even determine what a user is

144
00:10:05.820 --> 00:10:08.740
doing while transmitting data.

145
00:10:11.120 --> 00:10:15.770
Next, let's take a look at the voice of IP packet. So once more,

146
00:10:16.270 --> 00:10:18.490
simply click on file and let's click on,

147
00:10:19.310 --> 00:10:23.610
and this time we'll select the magic plus shortfall

148
00:10:24.160 --> 00:10:26.210
capture file. Simply click on open,

149
00:10:26.830 --> 00:10:29.880
ensure you play your filters like so and hit

150
00:10:32.530 --> 00:10:37.390
within this, there's a lot of messages being transmitted between

151
00:10:43.220 --> 00:10:44.053
RS

152
00:10:47.390 --> 00:10:51.070
sent across the network. If you scroll down just a little bit,

153
00:10:51.210 --> 00:10:55.110
we can see this stands for session Initiation,

154
00:10:55.350 --> 00:10:58.150
protocol SIP and rtp,

155
00:10:58.480 --> 00:11:00.630
which is Reliable Transfer Protocol.

156
00:11:01.100 --> 00:11:05.750
Both of these protocols are used for voice over IP conversations.

157
00:11:06.330 --> 00:11:10.070
The thing about SIP is that SIP is unsecure by default,

158
00:11:10.790 --> 00:11:15.290
so therefore we can assume that most likely there's actually

159
00:11:15.850 --> 00:11:20.690
a voice conversation or a telephone conversation could over a

160
00:11:20.890 --> 00:11:23.690
computer network. To see the voice conversation,

161
00:11:24.310 --> 00:11:27.050
we can simply click on telephony like so,

162
00:11:27.590 --> 00:11:29.970
and then simply select voice over IP calls.

163
00:11:31.370 --> 00:11:33.300
Once we select voice over IP calls,

164
00:11:33.640 --> 00:11:36.860
we can see wire Shark has reconstructed the message.

165
00:11:37.760 --> 00:11:39.380
We can see the start and end time,

166
00:11:39.920 --> 00:11:44.380
who was initiating the call and any other details such as the number of

167
00:11:44.580 --> 00:11:47.580
packets on duration of the call. To play the call stream,

168
00:11:48.160 --> 00:11:52.130
simply select Play Stream. This would open another window,

169
00:11:52.140 --> 00:11:55.480
which is a RTP player on this RTP player.

170
00:11:55.980 --> 00:11:58.360
Simply click on the play button. Unfortunately,

171
00:11:58.620 --> 00:12:02.080
if I click a play button on my end, you'll not hear the audio,

172
00:12:02.620 --> 00:12:04.160
but when you do on your side,

173
00:12:04.460 --> 00:12:08.880
you'll hear the audio for both sides for the and the receiver.

174
00:12:12.110 --> 00:12:17.010
Lastly, let's take a look at extracting a file from a pocket capture.

175
00:12:17.950 --> 00:12:19.520
Once more, click on file,

176
00:12:20.570 --> 00:12:25.140
click on and then select H TDP

177
00:12:27.490 --> 00:12:29.860
with JP Zoom.

178
00:12:31.450 --> 00:12:35.060
Before we extract the files, let's click on statistics

179
00:12:36.580 --> 00:12:38.360
and let's click on conversations.

180
00:12:39.480 --> 00:12:42.460
The conversations window will show you various tab.

181
00:12:43.320 --> 00:12:46.380
The first stop shows you all the enet addresses.

182
00:12:47.680 --> 00:12:52.330
This indicates all the market addresses for sender and the destination,

183
00:12:52.830 --> 00:12:53.810
the number of packets,

184
00:12:53.990 --> 00:12:57.770
the number of bites that are sent between one system to another system.

185
00:12:58.310 --> 00:12:59.810
If you click on IP four,

186
00:13:00.470 --> 00:13:05.210
you can see a list of IP addresses that were found within this

187
00:13:05.320 --> 00:13:09.450
capture. We can see the conversations between these devices too,

188
00:13:09.790 --> 00:13:14.410
or these ips. The number of packets sent in terms of bys,

189
00:13:15.030 --> 00:13:16.810
the size of data I sent as well,

190
00:13:17.520 --> 00:13:21.740
we can even click on TCP to determine the port numbers that they use

191
00:13:22.400 --> 00:13:25.180
can click on UDP to determine the UDP port numbers,

192
00:13:27.240 --> 00:13:32.140
to extract files or to see the files uploaded or download it during a

193
00:13:32.140 --> 00:13:32.973
capture,

194
00:13:33.240 --> 00:13:38.180
we can simply click on file export objects and click on HTD

195
00:13:38.180 --> 00:13:40.930
P. The first column shows you the pocket number.

196
00:13:41.430 --> 00:13:45.810
The second column shows you the host, either the name or the IP address.

197
00:13:46.310 --> 00:13:51.210
The third column shows you the type of content, whether it's a JPEG image,

198
00:13:51.600 --> 00:13:55.810
whether it's a file, or whether it's some other type of data.

199
00:13:56.550 --> 00:13:58.970
The next column shows you a file size,

200
00:13:59.710 --> 00:14:04.060
and the last column shows you the actual message. For instance,

201
00:14:04.320 --> 00:14:08.790
we can simply select this here, and once you select this wire,

202
00:14:08.790 --> 00:14:12.910
shark will also show you in the background the actual packet itself

203
00:14:13.680 --> 00:14:15.700
within the HTD P object list,

204
00:14:15.880 --> 00:14:19.020
we can simply select a packet and we can click on preview.

205
00:14:20.300 --> 00:14:25.030
Once you click on preview, it'll ask us, Hey, which application do you want use?

206
00:14:25.050 --> 00:14:25.883
To view this file?

207
00:14:26.530 --> 00:14:31.420
We can simply click on photos and just once and here we can see

208
00:14:31.740 --> 00:14:33.900
a photo of some dolphins.

209
00:14:35.780 --> 00:14:38.000
To extract this singular file,

210
00:14:38.140 --> 00:14:42.970
we can click on save and save this file on our desktop

211
00:14:44.050 --> 00:14:47.620
for post analysis. Additionally,

212
00:14:47.720 --> 00:14:50.780
if you want to extract all the files from this bucket capture,

213
00:14:51.700 --> 00:14:53.440
you can click on save All.

214
00:14:54.070 --> 00:14:59.040
This will simply create a zip or perhaps extract all the files and place

215
00:14:59.040 --> 00:15:01.560
it within a particular directory or your computer.

216
00:15:03.850 --> 00:15:07.350
Now that you have the fundamentals of how to use wire,

217
00:15:08.090 --> 00:15:12.630
you can start observings and look for any sort of sensitive data

218
00:15:12.970 --> 00:15:16.520
as a penetration tester. In this video,

219
00:15:16.780 --> 00:15:20.600
you have learned how to identify details.

220
00:15:21.940 --> 00:15:26.920
You have learned how to identify user credentials from unsecure protocols,

221
00:15:27.480 --> 00:15:30.680
transmitting traffic over network, and lastly,

222
00:15:30.680 --> 00:15:34.440
you have learned how to extract files from an entire capture.

223
00:15:37.240 --> 00:15:42.210
Next, you be starting section 12. I hope this video has inform.

224
00:15:43.190 --> 00:15:44.370
Ill see in the next one.
