WEBVTT - This file was automatically generated by VIMEO

0
00:00:08.830 --> 00:00:13.400
Hi, and welcome back to Section 12 Tunneling Tru, a network.

1
00:00:14.060 --> 00:00:17.830
In this video, you'll learn about poor traffic attacks.

2
00:00:18.730 --> 00:00:19.650
I hope you're excited.

3
00:00:20.030 --> 00:00:24.920
So let's iPhone N Port Forwarding simply allows us to

4
00:00:24.920 --> 00:00:29.640
manipulate traffic by redirecting destination traffic for one

5
00:00:29.860 --> 00:00:34.200
IP and port number to another IP address, and another port number.

6
00:00:34.380 --> 00:00:37.120
To perform this, let's boot up our taco machine,

7
00:00:37.530 --> 00:00:41.520
which is our main Cali Lang machine. And secondly,

8
00:00:41.730 --> 00:00:44.760
let's power on our compromised Lenox virtual machine.

9
00:00:46.220 --> 00:00:49.430
Once your machine is booted, simply log in like so.

10
00:00:50.730 --> 00:00:51.563
Once you log,

11
00:00:51.910 --> 00:00:56.380
let's check to see if we can reach Google from our attacks machine.

12
00:00:57.320 --> 00:00:58.710
Let's open a terminal like so,

13
00:00:59.750 --> 00:01:04.520
and let's google google.com and let's

14
00:01:04.520 --> 00:01:08.870
send four ping messages. Great.

15
00:01:09.610 --> 00:01:14.590
We have interconnectivity between our attack machine and the

16
00:01:14.750 --> 00:01:15.583
internet.

17
00:01:15.880 --> 00:01:19.790
Let's copy the IP address of google.com like so,

18
00:01:21.340 --> 00:01:25.640
and let's try to grab devana or at least download

19
00:01:26.180 --> 00:01:27.013
HTD P page.

20
00:01:27.090 --> 00:01:31.250
Let's do NC dash N vv,

21
00:01:32.190 --> 00:01:35.330
the IP address followed by port 80.

22
00:01:35.740 --> 00:01:40.290
Enter currently we can see we have an open connection.

23
00:01:41.040 --> 00:01:44.940
Let's type get slash htd p

24
00:01:46.390 --> 00:01:51.160
slash 1.0 like so and hit enter.

25
00:01:52.170 --> 00:01:56.600
Let's sit enter one more time and this will download the HTD P pH

26
00:01:57.170 --> 00:01:58.003
three.

27
00:01:58.820 --> 00:02:02.880
So now we know for sure our tackle machine has internet access.

28
00:02:04.420 --> 00:02:08.180
Next, let's pull on the compromised OX machine.

29
00:02:08.840 --> 00:02:09.900
But before we do so,

30
00:02:10.110 --> 00:02:14.740
let's imagine this compromised machine has no internet

31
00:02:14.800 --> 00:02:15.633
access,

32
00:02:16.240 --> 00:02:20.820
so therefore it cannot reach Google To simulate this no internet

33
00:02:20.820 --> 00:02:21.653
connectivity.

34
00:02:22.510 --> 00:02:26.420
Let's disable the internet adapter settings on the virtual machine.

35
00:02:27.150 --> 00:02:31.170
Select a compromised Lenox VM like so. Click on settings,

36
00:02:31.820 --> 00:02:34.440
click on network. And if you recall,

37
00:02:34.750 --> 00:02:39.640
adapter one allows us to bridge the virtual adapter to our network with internet

38
00:02:39.640 --> 00:02:42.760
connection. Let's disable adapter one.

39
00:02:44.370 --> 00:02:48.870
Ensure adapter two is not modified in any way. Simply click on key.

40
00:02:49.650 --> 00:02:53.830
Now let's power on the Compromise Lenox virtual machine.

41
00:02:54.530 --> 00:02:58.740
This Compromise Ox virtual machine will simply function as a machine within

42
00:02:59.580 --> 00:03:03.960
an organization's internal network that has no internet access.

43
00:03:04.820 --> 00:03:09.680
The objective is to simply redirect traffic from one system to another

44
00:03:09.680 --> 00:03:14.170
system well from one system through another system.

45
00:03:15.300 --> 00:03:17.270
Once the compromise machine is booted,

46
00:03:17.370 --> 00:03:19.710
simply log in with your default credentials,

47
00:03:20.450 --> 00:03:22.390
all the credentials that you have configured.

48
00:03:25.880 --> 00:03:30.760
Great. Let's enable SSH on this compromise system.

49
00:03:31.800 --> 00:03:36.680
Enabling SSH will simply allow our machine to securely connect

50
00:03:36.680 --> 00:03:40.210
to this compromise system over a network at Skype.

51
00:03:40.550 --> 00:03:43.760
Pseudo service ssh.

52
00:03:45.900 --> 00:03:49.900
Great. So now let's work from one system.

53
00:03:50.760 --> 00:03:55.420
I'm simply going to minimize the compromise system and I'll stay on my attackers

54
00:03:55.420 --> 00:03:58.330
machine. So now I'm on my attackers machine.

55
00:03:58.980 --> 00:04:03.710
Let's SSH two, the Compromise Lenox machine.

56
00:04:04.750 --> 00:04:08.140
So we will do SSH Carly

57
00:04:10.030 --> 00:04:13.940
at and IP address, all four compromise system.

58
00:04:15.620 --> 00:04:20.580
I'm gonna type PS to accept and enter the password of my

59
00:04:20.580 --> 00:04:21.413
Compromise System.

60
00:04:21.920 --> 00:04:26.680
So greet now I'm connected to the Carlys machine,

61
00:04:27.250 --> 00:04:29.920
which apparently has no internet access.

62
00:04:31.680 --> 00:04:32.513
Let's try

63
00:04:34.600 --> 00:04:37.900
NC Space dash nv.

64
00:04:39.820 --> 00:04:44.050
Let's try to download the webpage from Google.

65
00:04:45.160 --> 00:04:45.993
To do this,

66
00:04:46.190 --> 00:04:50.730
we'll simply specify the IP address of Google and we'll type

67
00:04:50.920 --> 00:04:51.720
port 80.

68
00:04:51.720 --> 00:04:56.590
This will firstly try to establish a connection and as you

69
00:04:56.590 --> 00:05:00.190
can see, the compromise system is saying network unreachable.

70
00:05:00.700 --> 00:05:03.030
This means there's no internet access.

71
00:05:05.300 --> 00:05:09.450
So great, let's keep this signal open.

72
00:05:10.340 --> 00:05:13.050
Let's click on file and let's open in uab.

73
00:05:14.050 --> 00:05:18.090
Let's type pseudo a P T update

74
00:05:19.220 --> 00:05:20.840
to update a packages repository.

75
00:05:24.970 --> 00:05:25.680
And next,

76
00:05:25.680 --> 00:05:29.790
let's download a particular tool that will allow us to perform Port forwarding

77
00:05:31.240 --> 00:05:34.570
all type pseudo app install

78
00:05:36.110 --> 00:05:38.030
r i n td,

79
00:05:39.480 --> 00:05:43.610
like so simply enter and letter installation complete.

80
00:05:49.370 --> 00:05:51.760
Let's type cut slash e,

81
00:05:51.900 --> 00:05:56.120
TC slash R I N e. TD

82
00:05:58.480 --> 00:05:59.840
F. Simply enter

83
00:06:02.360 --> 00:06:05.900
as these are the forwarding rules. As it says,

84
00:06:06.320 --> 00:06:11.020
you may simply allow and deny rules after a specific forwarding rule to

85
00:06:11.150 --> 00:06:15.380
apply to only the forwarding rule, which seems to be a bit confusing.

86
00:06:16.000 --> 00:06:19.100
So let's make our own rule. Let's press up.

87
00:06:20.610 --> 00:06:24.090
Let's type pseudo nano,

88
00:06:24.990 --> 00:06:29.190
followed by the directory together with a configuration file and hit enter.

89
00:06:30.050 --> 00:06:34.440
Let's scroll down to where we have the forwarding rules.

90
00:06:35.090 --> 00:06:38.940
Let's press enter here and let's specify

91
00:06:39.290 --> 00:06:40.780
0, 0, 0.

92
00:06:41.320 --> 00:06:44.460
So let's space this.

93
00:06:46.110 --> 00:06:50.250
Let's specify the port number, which is 80.

94
00:06:51.280 --> 00:06:56.030
So this means that our AKA machine will always listen

95
00:06:56.130 --> 00:06:58.710
for any sort of in common traffic. On port 80,

96
00:06:59.970 --> 00:07:04.150
any incoming traffic will then be forwarded to Google's IP address

97
00:07:05.280 --> 00:07:09.360
and to destination port 80, like Zoom. Great.

98
00:07:10.340 --> 00:07:13.140
I think we should remove the space at the beginning of the line.

99
00:07:13.640 --> 00:07:16.500
So it looks like this. Once you're ready,

100
00:07:17.280 --> 00:07:19.460
simply press Ctrl and X,

101
00:07:20.870 --> 00:07:24.600
Y and enter Dece. Let's type cut.

102
00:07:26.050 --> 00:07:30.620
Specify the file newly so and enter to verify our entries.

103
00:07:31.540 --> 00:07:32.373
So as mentioned,

104
00:07:33.440 --> 00:07:38.140
our car links machine will listen on all interfaces on port 80.

105
00:07:39.130 --> 00:07:43.870
Any in common traffic on port 80 will then be forwarded to this

106
00:07:44.010 --> 00:07:48.590
IP address on port 80. So let's go back to our previous.

107
00:07:49.530 --> 00:07:51.270
If you recall, this previous

108
00:07:52.980 --> 00:07:56.560
is connected to our Compromise system.

109
00:07:57.510 --> 00:08:00.920
So let's try this one more time.

110
00:08:01.490 --> 00:08:06.000
Let's try to establish a connection to Google's website on port 80

111
00:08:06.700 --> 00:08:09.670
and let's see what happens. Great.

112
00:08:10.090 --> 00:08:13.990
It is saying network is unreachable. All right,

113
00:08:14.250 --> 00:08:16.510
but let's try something a little different.

114
00:08:17.620 --> 00:08:22.530
Let's get the IP address of the machine. I'm going click one two.

115
00:08:22.590 --> 00:08:23.423
Number two,

116
00:08:24.240 --> 00:08:27.620
I'm gonna type IP a ddr like so

117
00:08:29.120 --> 00:08:31.420
the machine is currently using

118
00:08:32.400 --> 00:08:36.870
1 7 2 31 41. I'm going to copy this,

119
00:08:37.740 --> 00:08:39.830
then I'm gonna head over, back to 2 0 1.

120
00:08:41.200 --> 00:08:45.260
I'm gonna press up a couple of times and in insert,

121
00:08:45.300 --> 00:08:48.500
I connect to Google directly from the Compromise System.

122
00:08:49.410 --> 00:08:53.030
I'm going to connect from the Compromise System to the attack machine,

123
00:08:53.250 --> 00:08:57.970
one port 80. Let's see what, what happens at the same connection.

124
00:08:57.990 --> 00:08:58.823
Refuse,

125
00:08:59.510 --> 00:09:03.230
I think you may have forgot an additional configuration.

126
00:09:04.170 --> 00:09:09.000
We need to actually stop the R I N E TD service.

127
00:09:09.690 --> 00:09:12.610
Let's settle back to terminal two. To do this,

128
00:09:12.780 --> 00:09:17.690
let's type pseudo service R I N

129
00:09:18.090 --> 00:09:22.350
E, TD, and we'll type restart. Great.

130
00:09:23.720 --> 00:09:25.350
Let's set a box with 2 0 1.

131
00:09:26.560 --> 00:09:31.080
Let's verify that a Compromise system is unable to connect to the internet,

132
00:09:32.230 --> 00:09:36.270
which shows network is unreachable, which is expected.

133
00:09:37.480 --> 00:09:42.180
But now let's try to create a connection from the Compromise System

134
00:09:42.560 --> 00:09:46.560
to the attack machine. And notice it says Open.

135
00:09:47.450 --> 00:09:51.850
Let's type get space slash HT d p

136
00:09:53.320 --> 00:09:56.920
slash 1.0 and let's it enter.

137
00:09:58.190 --> 00:10:00.950
Let's it enter one more time. And look,

138
00:10:01.790 --> 00:10:05.850
it has downloaded the web page from google.com.

139
00:10:08.300 --> 00:10:09.133
In this video,

140
00:10:09.180 --> 00:10:13.560
you have learned how to perform a port forwarding attack using Carly Lenox.

141
00:10:14.900 --> 00:10:18.520
In the next video, we'll be starting section two team.

142
00:10:19.160 --> 00:10:23.080
I hope this video has been informative for you and I'll see you in the next one.
