WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.230 --> 00:00:12.050
In this video you'll learn how to use Floyd to perform pivoting between a

1
00:00:12.050 --> 00:00:15.250
system that's interconnected to two different IP subnets.

2
00:00:16.350 --> 00:00:17.450
So let's iPhone in.

3
00:00:20.640 --> 00:00:24.980
In this video we'll log into Carly Lenox and we will

4
00:00:25.110 --> 00:00:28.140
compromise the meta exploitable tree virtual machine.

5
00:00:28.880 --> 00:00:32.340
If you recall in section two when we were building our lab,

6
00:00:32.840 --> 00:00:37.660
we had connected meta exploitable tree to Lennox version to meta exploitable

7
00:00:37.660 --> 00:00:40.220
tree to windows version. So to put simply,

8
00:00:40.570 --> 00:00:44.220
this virtual machine here is connected to two networks,

9
00:00:44.800 --> 00:00:46.500
is connected to the pen test network,

10
00:00:46.670 --> 00:00:50.540
which is on the 1 7 2 3 1 0 slash 24 network.

11
00:00:51.280 --> 00:00:56.180
And it is also connected to the 10 11 12 0.0 slash 24 network.

12
00:00:56.920 --> 00:01:01.420
So first actually perform any scanning on the hidden net network.

13
00:01:01.960 --> 00:01:04.900
We need to first compromise meta exploitable tree,

14
00:01:05.120 --> 00:01:10.020
the windows version and then pivot our attacks from meta exploitable tree

15
00:01:10.020 --> 00:01:13.300
windows version to the hidden net network.

16
00:01:14.120 --> 00:01:16.060
Before we get started with this exercise,

17
00:01:16.230 --> 00:01:18.940
let's ensure that METAS exploitable tree,

18
00:01:19.080 --> 00:01:23.740
the Windows virtual machine is connected to both the pen test network and the

19
00:01:23.740 --> 00:01:28.020
hidden network. Simply select the meta exploitable tree windows virtual machine.

20
00:01:28.240 --> 00:01:30.060
So click on settings,

21
00:01:31.050 --> 00:01:34.340
then click on network and ensure adapter one,

22
00:01:34.600 --> 00:01:39.500
it is connected to the pen test network and PROMIS smooth.

23
00:01:39.560 --> 00:01:43.780
It is set to allow all next click on adapter two

24
00:01:44.230 --> 00:01:44.800
where we,

25
00:01:44.800 --> 00:01:49.460
we will see the hidden network is present and also ensure PROMIS

26
00:01:49.720 --> 00:01:54.050
smooth is set to allow all simply click on. Okay, next,

27
00:01:54.220 --> 00:01:58.530
let's check to see whether Meta exploitable Tree to Lenox version

28
00:01:59.190 --> 00:02:00.570
is connected to the hidden network.

29
00:02:01.350 --> 00:02:06.010
Simply select metas exploitable tree U B 1,404 like so

30
00:02:06.780 --> 00:02:08.010
click on settings,

31
00:02:08.920 --> 00:02:13.770
then click on network and ensure that hidden net is configured as a

32
00:02:13.930 --> 00:02:16.250
network name. Simply expand,

33
00:02:16.400 --> 00:02:18.970
advance and ensure PROMIS your mode.

34
00:02:19.030 --> 00:02:21.970
It is set to allow all simply click on. Okay,

35
00:02:22.520 --> 00:02:27.450
what we'll do is we'll power on both our metas exploitable three

36
00:02:27.450 --> 00:02:31.570
virtual machines one at a time. We could power them on like so.

37
00:02:35.530 --> 00:02:38.800
Great. So let's log into Meta Exploitable Tree,

38
00:02:39.140 --> 00:02:44.000
the Lennox virtual machine and we can use the username as

39
00:02:44.230 --> 00:02:47.890
vagrant and password as Vagrant as well.

40
00:02:48.580 --> 00:02:53.410
Great to check to see whether we are receiving an IP address from the hidden net

41
00:02:53.410 --> 00:02:57.690
network. Simply type IP space address like so.

42
00:02:58.070 --> 00:03:02.490
And you should see the network adapter as E C H zero

43
00:03:03.070 --> 00:03:07.930
and it has an INET address of 10 11 12 20

44
00:03:07.980 --> 00:03:09.730
slash 24. Great.

45
00:03:10.190 --> 00:03:14.810
So we know for certain that this virtual machine is receiving an IP address

46
00:03:15.080 --> 00:03:19.210
from the Hidden Net network. Great. So let's minimize this one.

47
00:03:19.670 --> 00:03:23.970
And now let's power on our meta suitable tree windows virtual machine.

48
00:03:28.780 --> 00:03:33.330
Let's click on input keyboard insert Ctrl all delete.

49
00:03:33.790 --> 00:03:35.770
And let's log in with the administrator account.

50
00:03:36.690 --> 00:03:40.210
Remember the password is Vagrant like so

51
00:03:43.290 --> 00:03:46.640
great. Let's open the Windows command prompt

52
00:03:49.110 --> 00:03:53.770
and now let's type IP config and let's verify that there are two network

53
00:03:53.850 --> 00:03:54.683
adapters,

54
00:03:54.710 --> 00:03:59.050
one of which should be connected to the pest network and the others should be

55
00:03:59.050 --> 00:04:02.720
connected to the hidden network. Great.

56
00:04:03.260 --> 00:04:04.200
As you can see,

57
00:04:04.570 --> 00:04:09.320
ether Adapter one is connected to the pest network where

58
00:04:09.410 --> 00:04:14.360
Carli Docs could actually access this machine and we can also see Ether Adapter

59
00:04:14.770 --> 00:04:18.960
local Area Connection two, it's actually connected to the hidden network.

60
00:04:19.580 --> 00:04:24.400
So this means to say that this Windows virtual machine is able

61
00:04:24.660 --> 00:04:29.560
to actually connect or communicate with the virtual machine in the hidden

62
00:04:29.560 --> 00:04:30.393
network.

63
00:04:31.960 --> 00:04:36.350
Let's minimize this and now it's time to power on our Carly Lux virtual machine.

64
00:04:38.310 --> 00:04:41.060
Great. So now that we are in our Carly Lux virtual machine,

65
00:04:41.600 --> 00:04:45.620
the first thing we need to do is actually gain administrative access

66
00:04:46.400 --> 00:04:49.780
on the meta exploitable tree windows virtual machine.

67
00:04:50.710 --> 00:04:55.490
We can gain administrative access on the meta exploitable tree windows virtual

68
00:04:55.520 --> 00:05:00.290
machine by simply compromising the blue security flow on that system.

69
00:05:11.990 --> 00:05:14.090
So it seems as though the exploiters fail.

70
00:05:14.460 --> 00:05:19.170
Let's check our options one more time to ensure that everything is said

71
00:05:19.170 --> 00:05:20.003
correctly.

72
00:05:23.310 --> 00:05:25.540
Let's check the IP address of my Carli machine.

73
00:05:25.770 --> 00:05:30.040
I'll simply type IP a DDR like so

74
00:05:30.620 --> 00:05:32.800
on my Carli machine. It's actually using

75
00:05:34.470 --> 00:05:37.410
uh 41, which was actual problem.

76
00:05:38.590 --> 00:05:43.330
So I'm gonna fix this cuz I set my local host to be 40,

77
00:05:43.340 --> 00:05:46.400
which is inaccurate. So I'll type set

78
00:05:48.060 --> 00:05:48.893
L host

79
00:05:49.040 --> 00:05:53.490
1 72, 31, 41.

80
00:05:54.150 --> 00:05:57.170
Now gonna type exploit and hit enter.

81
00:06:00.850 --> 00:06:01.540
Great.

82
00:06:01.540 --> 00:06:06.380
Now we have him interpreter shell from this exploit let's

83
00:06:06.380 --> 00:06:08.960
first C type A R P. What this will do,

84
00:06:09.010 --> 00:06:13.040
it'll simply run the a R P command on the compromise system,

85
00:06:13.130 --> 00:06:17.920
which is the current victim system and we'll see what it knows

86
00:06:18.060 --> 00:06:22.800
IP address of any other device outside of the pen test

87
00:06:22.800 --> 00:06:23.920
network. In other words,

88
00:06:23.990 --> 00:06:28.680
what we are looking for is to see whether it had communicated with

89
00:06:29.040 --> 00:06:33.840
a network that is other than 1 7 2 2 1 0 slash 24.

90
00:06:35.100 --> 00:06:39.760
And the thing about it is we know the victim machine is connected to this

91
00:06:39.760 --> 00:06:41.570
network, however

92
00:06:43.130 --> 00:06:45.350
it knows about another network.

93
00:06:46.010 --> 00:06:51.010
So what we can do next is execute I ffe command

94
00:06:51.670 --> 00:06:56.290
on our session and actually determine whether

95
00:06:56.560 --> 00:07:01.410
there's a available network adapter that is connected to the hidden

96
00:07:01.410 --> 00:07:02.243
network.

97
00:07:02.990 --> 00:07:07.050
And currently my MeToo shell has died going execute it one more time

98
00:07:07.950 --> 00:07:11.490
and hopefully I'll actually get a reviewal again.

99
00:07:14.660 --> 00:07:15.430
Great.

100
00:07:15.430 --> 00:07:20.130
So I have another MeToo shell this time I'm gonna execute i f config

101
00:07:20.840 --> 00:07:21.673
like Sue.

102
00:07:22.210 --> 00:07:25.790
And let's take a look at the network adapters that are found on the remote

103
00:07:25.790 --> 00:07:26.623
system.

104
00:07:26.700 --> 00:07:31.270
What we are looking for is any sort of network address on any

105
00:07:31.270 --> 00:07:36.010
additional network adapter. So currently we know that the target system,

106
00:07:36.100 --> 00:07:38.450
while the currently compromised system,

107
00:07:38.640 --> 00:07:43.490
it's on this network which is a 1 7 2 31 0 slash 24 network.

108
00:07:44.140 --> 00:07:48.530
Let's screw it on a bit and let's see if there's another network adapter and

109
00:07:48.530 --> 00:07:50.170
look at network adapter number 14.

110
00:07:50.920 --> 00:07:55.770
This here indicates that the Windows version of Meta exploitable three

111
00:07:55.790 --> 00:08:00.450
is connected to 10 11 12 0 slash

112
00:08:00.680 --> 00:08:01.513
four network.

113
00:08:02.070 --> 00:08:06.930
So let's say that we want to pivot our attacks or probably determine

114
00:08:07.710 --> 00:08:12.650
if we can reach this network here and most likely there may be systems

115
00:08:12.790 --> 00:08:13.930
on this additional network.

116
00:08:14.780 --> 00:08:19.450
Hence we are trying to actually scan or probably compromise the meta exploitable

117
00:08:19.450 --> 00:08:21.090
Tree Lenox virtual machine.

118
00:08:21.900 --> 00:08:26.320
So now we can simply type route and see what routes are actually known

119
00:08:26.700 --> 00:08:29.800
on this Windows vision of Metas exploitable tree.

120
00:08:30.540 --> 00:08:35.440
And currently we can see that the Compromise system actually has a route

121
00:08:36.180 --> 00:08:40.680
to another network which is the 10 11, 12 0.0

122
00:08:41.170 --> 00:08:42.480
slash 24 network.

123
00:08:43.180 --> 00:08:47.920
To perform pivoting we need to type run and we need to execute a

124
00:08:48.340 --> 00:08:49.560
postex exploitation module.

125
00:08:50.260 --> 00:08:53.840
So type run post slash multi like so

126
00:08:56.250 --> 00:09:00.730
then we'll type manage and then we'll type auto route

127
00:09:01.150 --> 00:09:03.580
or auto route. What this will do,

128
00:09:03.710 --> 00:09:08.650
it'll simply allow Carli Lenox to inject a route to

129
00:09:08.650 --> 00:09:13.530
perform any sort of pivoting attacks to any network that is unknown to Carli

130
00:09:13.630 --> 00:09:16.890
but through the Compromise system. So in other words,

131
00:09:17.430 --> 00:09:22.050
it will create a new network route to let's say send traffic to this network

132
00:09:22.560 --> 00:09:25.010
through the Compromise system right now.

133
00:09:25.710 --> 00:09:30.690
So great at this point Karli Lenox should be able to reach the 10

134
00:09:30.690 --> 00:09:33.290
point 11, 12.0 slash 24 network.

135
00:09:33.860 --> 00:09:38.850
Let's perform a simple network scan to any device that

136
00:09:38.850 --> 00:09:42.210
is available on the 10, 11, 12 0 network.

137
00:09:42.830 --> 00:09:47.290
So let's type background to send our material potential to the background and

138
00:09:47.290 --> 00:09:52.290
it's currently operating as session two and let's perform a simple TP scan.

139
00:09:52.550 --> 00:09:56.650
So let's do use, actually let's type back one more time.

140
00:09:57.570 --> 00:10:00.730
Let's type use auxiliary,

141
00:10:01.880 --> 00:10:04.280
let's type scanner port, scan

142
00:10:07.490 --> 00:10:12.140
tcp. Great, let's type set R host,

143
00:10:12.880 --> 00:10:15.460
and let's specify the entire subnet.

144
00:10:20.140 --> 00:10:20.973
Great.

145
00:10:21.350 --> 00:10:25.690
And let's scan for one particular port so the scan will actually complete a bit

146
00:10:25.690 --> 00:10:26.523
quickly.

147
00:10:26.670 --> 00:10:31.130
So let's do set ports and let's scan for port 80.

148
00:10:32.270 --> 00:10:34.290
And when you're ready, simply type run.

149
00:10:35.040 --> 00:10:39.050
This scan might take a few minutes to complete simply because it is pivoting

150
00:10:39.600 --> 00:10:41.450
true the pest network,

151
00:10:41.900 --> 00:10:45.410
which is on the meta exploitable tree windows virtual machine.

152
00:10:48.200 --> 00:10:48.890
Great.

153
00:10:48.890 --> 00:10:53.650
As you can see thus far it has detected the meta Exploitable

154
00:10:53.680 --> 00:10:56.650
Tree Lennox virtual machine is open on port 80.

155
00:10:57.350 --> 00:11:01.890
So therefore we are able to actually pivot our attacks through one system

156
00:11:02.310 --> 00:11:05.970
to actually reach another network. During the course of this video,

157
00:11:06.110 --> 00:11:10.370
you have learned how to use Metasploit to perform lateral movement and pivot

158
00:11:10.760 --> 00:11:15.650
over two different networks where we have a single host machine that is

159
00:11:15.650 --> 00:11:18.010
connected to two different IP subnets.

160
00:11:19.140 --> 00:11:23.880
In the next video we'll cover some guidelines on how to control an entire

161
00:11:23.880 --> 00:11:25.760
network as a penetration tester.

162
00:11:26.320 --> 00:11:29.800
I hope this video has been informative for you and I'll see you in the next one.
