WEBVTT - This file was automatically generated by VIMEO

0
00:00:08.440 --> 00:00:11.980
Hi and welcome back to Section 11 sniffing traffic.

1
00:00:12.800 --> 00:00:17.700
In this video we are going to cover how to perform a man in using

2
00:00:17.840 --> 00:00:19.920
Car Lenox. So let's

3
00:00:22.360 --> 00:00:27.220
man in the intention of this type of attack is to simply intercept

4
00:00:27.240 --> 00:00:31.780
any sort of network traffic between two or more host devices to capture

5
00:00:32.120 --> 00:00:36.900
any sensitive or confidential data that might be transmitted over in network

6
00:00:36.900 --> 00:00:40.780
channel. Sensitive data might be usernames, passwords,

7
00:00:41.400 --> 00:00:46.020
or any other details or let's say data that could be used to gain a

8
00:00:46.020 --> 00:00:49.060
foothold into a system. In this exercise,

9
00:00:49.310 --> 00:00:53.620
we'll take a look at actually using Carly Lenox to perform a man in the

10
00:00:54.410 --> 00:00:55.940
between two host devices.

11
00:00:56.360 --> 00:00:59.620
If you recall on our network topology that we have built,

12
00:01:00.000 --> 00:01:02.020
we have the pen test network,

13
00:01:02.440 --> 00:01:05.100
and on the pen test network there are two host devices.

14
00:01:05.450 --> 00:01:08.500
There's the tree virtual machine,

15
00:01:08.760 --> 00:01:13.180
as you can see its running and also there's the Meta two virtual machine,

16
00:01:13.180 --> 00:01:17.740
which is also in state and machine willox.

17
00:01:18.160 --> 00:01:21.300
So what we're going to do is we will capture,

18
00:01:22.050 --> 00:01:26.820
well intercept the communication between Meta Exploitable three Windows virtual

19
00:01:26.820 --> 00:01:29.940
machine and the Meta two Windows virtual machine.

20
00:01:30.240 --> 00:01:34.700
So please ensure up these three virtual machines are all running simultaneously.

21
00:01:34.800 --> 00:01:38.740
If you could, if for some reason you are unable to run this virtual machine,

22
00:01:38.840 --> 00:01:43.420
you can simply reduce the amount of base memory or ram that is uh,

23
00:01:43.420 --> 00:01:45.380
located to these virtual machines.

24
00:01:45.930 --> 00:01:48.260
Once you're ready and these machines are powered on,

25
00:01:48.520 --> 00:01:50.740
simply click on a Carly Lenox icon,

26
00:01:50.950 --> 00:01:53.700
which is on a top left hand corner like so.

27
00:01:53.930 --> 00:01:56.860
Then we'll select sniffing and spoofing.

28
00:01:56.890 --> 00:02:00.780
Currently within this category there is a lot of tools that we can use,

29
00:02:01.120 --> 00:02:05.540
but we're going to use a simple tool to help us perform our interception,

30
00:02:05.950 --> 00:02:08.260
which is graphical.

31
00:02:08.600 --> 00:02:11.180
Simply select graphical like so.

32
00:02:11.680 --> 00:02:16.380
And now it is prompting us to enter our route password for

33
00:02:16.430 --> 00:02:17.263
Carly.

34
00:02:17.640 --> 00:02:21.980
Simply enter your Carly Lennox's user password and click on Authentic.

35
00:02:22.530 --> 00:02:25.060
Once you click on authenticate. As you can see,

36
00:02:25.370 --> 00:02:28.580
this is user interface. By default,

37
00:02:28.800 --> 00:02:30.980
it is set to sniff at startup, however,

38
00:02:31.400 --> 00:02:35.660
the primary interface it is set to E H zero.

39
00:02:36.000 --> 00:02:40.300
If we use a dropdown menu, we can see there's a number of different interfaces,

40
00:02:40.760 --> 00:02:45.420
so which is a right interface to sniff on our pen test network between our two

41
00:02:45.530 --> 00:02:46.363
systems,

42
00:02:48.110 --> 00:02:52.890
let's open our terminal so we can use if config

43
00:02:52.890 --> 00:02:54.770
command, like soup hand hit enter.

44
00:02:56.050 --> 00:03:01.000
Firstly we can see that E one is connected to our pan test

45
00:03:01.000 --> 00:03:04.120
network simply because a Pan test network, it's

46
00:03:06.260 --> 00:03:10.760
T1 slash four network. So great, we want traffic

47
00:03:12.300 --> 00:03:17.200
on E one, simply close to and now on et.

48
00:03:17.820 --> 00:03:22.520
Use a dropdown option and change a primary adapter to e H one.

49
00:03:23.590 --> 00:03:26.480
When you're ready, simply click this icon,

50
00:03:26.480 --> 00:03:30.280
which is accept and let us sniffen begin. So in our scenario,

51
00:03:30.820 --> 00:03:35.680
we have two target machines on our network and is running on ethic,

52
00:03:36.180 --> 00:03:39.080
but uh, is it detecting any traffic? Well,

53
00:03:39.150 --> 00:03:41.840
currently since we are in a lab network,

54
00:03:41.950 --> 00:03:46.480
there's no traffic really being sent across between the two target

55
00:03:46.560 --> 00:03:48.560
machines. So what we can do,

56
00:03:48.700 --> 00:03:53.400
we can simply click this magnifying glass to scan all host

57
00:03:53.510 --> 00:03:56.040
devices on current subnet.

58
00:03:56.140 --> 00:04:00.960
Simply click it and as you can see it is scanning the entire network mask and it

59
00:04:00.960 --> 00:04:05.920
shows here that three host devices are discovered. To view these host devices,

60
00:04:06.420 --> 00:04:10.960
simply click on this icon that says Host List and here we can see

61
00:04:11.500 --> 00:04:13.640
the different machines that were detected.

62
00:04:13.860 --> 00:04:18.640
We know that 2K one one is our DH CCP

63
00:04:18.640 --> 00:04:19.800
server. However,

64
00:04:20.420 --> 00:04:23.760
our targets are the 37 and 2d.

65
00:04:24.100 --> 00:04:28.520
Simply select the first Target like so, and then click on R two, target one,

66
00:04:28.690 --> 00:04:32.560
click next, select 38, which is our second target,

67
00:04:32.820 --> 00:04:37.480
and click on Target two. Excellent. So now that we set our target,

68
00:04:37.900 --> 00:04:42.280
are we intercepting traffic between these systems? Well, technically yes.

69
00:04:42.380 --> 00:04:45.160
We are just no traffic is actually running,

70
00:04:45.380 --> 00:04:49.080
but let's take a look at some additional features and at,

71
00:04:49.570 --> 00:04:51.360
while these targets are selected,

72
00:04:51.940 --> 00:04:56.240
if we click on these three dots icon like Sue, which is a menu,

73
00:04:56.620 --> 00:05:00.720
we can click on targets and we can select individual targets.

74
00:05:00.980 --> 00:05:05.200
We can select protocols. We can even remove these targets from our target list.

75
00:05:05.500 --> 00:05:07.440
If I click on current targets,

76
00:05:07.660 --> 00:05:11.360
we can see what my Target one is and what my Target two is,

77
00:05:11.660 --> 00:05:15.240
and we can add multiple target. So for instance,

78
00:05:16.110 --> 00:05:19.600
devices on Target one such as the 37,

79
00:05:20.180 --> 00:05:24.940
the traffic will be intercepted between Target one and Target two. Next,

80
00:05:25.120 --> 00:05:28.940
if we click on Host Devices, we can see our host lists.

81
00:05:29.280 --> 00:05:34.060
We can enable IP V6 scanning. If we're connected to an IP V6 network,

82
00:05:34.360 --> 00:05:35.780
we can even scan the new host.

83
00:05:35.960 --> 00:05:39.220
We can load Host from a previous file that we have saved.

84
00:05:39.280 --> 00:05:43.020
We can even see the host file that was generated onca.

85
00:05:43.570 --> 00:05:46.700
Next we can click on view. View will show statistics.

86
00:05:47.280 --> 00:05:51.420
It can help us resolve IV addresses, provide visualization,

87
00:05:51.560 --> 00:05:54.260
but most importantly we can see the connections happening.

88
00:05:54.430 --> 00:05:56.580
Let's click on Connections current.

89
00:05:57.620 --> 00:06:02.340
Currently there are no connections appearing, so let's generate some traffic.

90
00:06:03.550 --> 00:06:07.890
I'm going to open Metas Exploitable Tree like so, and I'm going to log,

91
00:06:09.400 --> 00:06:13.540
I'm going to select the administrator account and use a password as

92
00:06:14.580 --> 00:06:17.940
V H G R A N T and simply enter

93
00:06:20.460 --> 00:06:21.600
on this virtual machine.

94
00:06:21.940 --> 00:06:26.760
I'm simply going to open the command prompt and identify the IP address of

95
00:06:26.760 --> 00:06:27.593
this device.

96
00:06:28.940 --> 00:06:33.700
I'm going to use a IP conf command and currently this device it is

97
00:06:33.880 --> 00:06:35.020
1 7 2 2.

98
00:06:36.850 --> 00:06:41.460
This means four is the other target machine,

99
00:06:41.470 --> 00:06:46.300
which is meta exploitable to therefore I'm going to minimize this and

100
00:06:46.300 --> 00:06:50.580
I'm going to open a web browser within Meta Exploitable Tree Windows virtual

101
00:06:50.580 --> 00:06:52.660
machine on the web browser,

102
00:06:53.280 --> 00:06:56.900
I'm going to enter each TTP pull on slash slash

103
00:06:57.560 --> 00:07:01.380
1 72 7,

104
00:07:01.750 --> 00:07:06.180
which is a IP address of the Meta Exploitable two virtual machine.

105
00:07:06.560 --> 00:07:11.380
Simply enter and notice the web page of Meta two has loaded,

106
00:07:11.680 --> 00:07:15.420
but also notice on a connection generated.

107
00:07:15.610 --> 00:07:17.780
Here we can see the connection. Well,

108
00:07:17.960 --> 00:07:21.860
the source IP address is 1 7 2 t2,

109
00:07:22.230 --> 00:07:25.380
which is tree. There's a source port,

110
00:07:25.450 --> 00:07:30.060
there's a target system or the destination IP of 1 7 2 T

111
00:07:30.670 --> 00:07:32.980
seven, the destination port of 80,

112
00:07:33.190 --> 00:07:38.140
which indicates that it is using HT dp, the protocol as tcp.

113
00:07:38.280 --> 00:07:41.860
The current state of the connection is active, the transmitting bys,

114
00:07:42.080 --> 00:07:46.820
the receiving bys, and the country. To get more details on this connection,

115
00:07:46.960 --> 00:07:50.900
we can simply right click on the connection and select view details.

116
00:07:51.130 --> 00:07:54.500
Here we can even get the source and destination IP addresses,

117
00:07:54.720 --> 00:07:56.660
source on destination market addresses,

118
00:07:57.120 --> 00:08:00.300
and we can even try to re their geolocation.

119
00:08:01.500 --> 00:08:06.360
So now that you have learned how to perform a Man intercept traffic

120
00:08:06.370 --> 00:08:09.680
using Over, keep in mind that while you are intercepting traffic,

121
00:08:09.820 --> 00:08:12.120
you can simply open wire like so.

122
00:08:14.000 --> 00:08:15.620
And once you have open wire Shark,

123
00:08:15.880 --> 00:08:20.300
simply select the interface to capture traffic on, which is E one.

124
00:08:22.080 --> 00:08:26.490
Currently we can see that no traffic is being captured within wire.

125
00:08:27.070 --> 00:08:31.970
So let's head back to my machine and this time I'm

126
00:08:31.970 --> 00:08:36.690
going to refresh the webpage and notice that the connection has

127
00:08:36.890 --> 00:08:41.690
appeared within tica and the traffic has also appeared within Wire Shark.

128
00:08:41.950 --> 00:08:46.410
So great. We are using two different tools. One to perform a man in the middle,

129
00:08:47.150 --> 00:08:51.610
and another tool which is Wire Shark to actually capture the packets between

130
00:08:51.890 --> 00:08:56.640
these systems. To save this pocket capture, simply click on the stop button,

131
00:08:56.640 --> 00:08:59.320
like so. Click on file, click on save,

132
00:08:59.620 --> 00:09:04.520
and let's save this as capture one and

133
00:09:04.520 --> 00:09:08.040
select Save. So once you have capture traffic,

134
00:09:08.500 --> 00:09:11.600
you can perform your pocket analysis afterwards.

135
00:09:12.380 --> 00:09:13.800
During the course of this video,

136
00:09:13.980 --> 00:09:18.920
you have learned how to use Ether to intercept network traffic between two

137
00:09:18.920 --> 00:09:22.340
host devices only network. In the next video,

138
00:09:22.480 --> 00:09:26.140
you'll learn how to use Wire to perform analysis.

139
00:09:26.700 --> 00:09:30.260
I hope this video has been informative for you and I'll see you in the next one.
