WEBVTT - This file was automatically generated by VIMEO

0
00:00:08.060 --> 00:00:12.560
Hi, and welcome back to Section 12 Tunneling Tru ANet.

1
00:00:13.140 --> 00:00:13.973
In this video,

2
00:00:14.060 --> 00:00:18.160
you'll learn how to bypass network-based firewalls using Meta Deploy.

3
00:00:19.260 --> 00:00:24.100
I hope you're excited. So let's to get started with this exercise,

4
00:00:24.600 --> 00:00:28.780
please ensure that you have booted your Windows 10 Enterprise virtual machine.

5
00:00:29.400 --> 00:00:34.020
The Windows 10 Enterprise virtual machine will be our Victor

6
00:00:34.020 --> 00:00:38.620
machine, and we'll also be using Carly Lenox as our taco machine.

7
00:00:38.650 --> 00:00:41.140
Because we don't have a network-based firewall,

8
00:00:41.760 --> 00:00:46.580
we can simply leverage a host based firewall on the Windows 10 system to

9
00:00:46.900 --> 00:00:51.780
function as a network-based firewall between our Windows 10 virtual machine

10
00:00:52.120 --> 00:00:54.300
and a Carly Switch machine. Firstly,

11
00:00:54.320 --> 00:00:59.260
let us configure the firewall to block a certain range of port numbers

12
00:00:59.880 --> 00:01:01.500
on the Windows Stand virtual machine.

13
00:01:02.450 --> 00:01:07.090
Simply open the Windows Stand virtual machine like so let's click on

14
00:01:07.270 --> 00:01:10.130
the start menu. Let's click on settings.

15
00:01:11.350 --> 00:01:14.620
Let's click on update and security like so.

16
00:01:15.590 --> 00:01:16.850
And before we proceed,

17
00:01:17.110 --> 00:01:20.680
let us click on Windows Security.

18
00:01:21.660 --> 00:01:25.710
We'll click on fires on track protection. And here,

19
00:01:26.010 --> 00:01:28.990
let us ensure that our real-time protection is disabled.

20
00:01:29.660 --> 00:01:33.310
This is to ensure that our pude will execute later on.

21
00:01:33.770 --> 00:01:38.530
Simply click on managed settings and ensure that realtime

22
00:01:38.530 --> 00:01:41.050
protection is actually disabled, like Sue.

23
00:01:43.740 --> 00:01:48.430
When you're ready, click on firewall and network protection.

24
00:01:49.480 --> 00:01:54.120
Ensure that all these firewalls are tuned on to monitor the domain network,

25
00:01:54.350 --> 00:01:55.240
private network,

26
00:01:55.620 --> 00:02:00.430
and even the public network to configure our whole Swiss firewall to

27
00:02:00.430 --> 00:02:05.240
restrict traffic. Let us click on advanced settings like Soup,

28
00:02:07.500 --> 00:02:10.320
and this will open up the Windows offender firewall.

29
00:02:10.390 --> 00:02:12.080
With advanced settings option,

30
00:02:13.210 --> 00:02:18.150
we can simply click on outbound rules and let's create a new outbound rule.

31
00:02:19.190 --> 00:02:23.920
This rule will simply be used to block specific outbound ports.

32
00:02:24.940 --> 00:02:26.650
Let's click on nuru like so.

33
00:02:28.580 --> 00:02:33.450
And now let's select port and click on Next with this

34
00:02:33.480 --> 00:02:36.090
rule, let us block a range of port numbers.

35
00:02:37.340 --> 00:02:39.370
Let's block ports starting at

36
00:02:39.370 --> 00:02:44.370
44, 4, 4, 4, 2, 5, 5, 5, 5.

37
00:02:46.260 --> 00:02:48.430
When you're ready, simply click on next.

38
00:02:50.020 --> 00:02:54.200
Our preferred action in this scenario is to block the connections to those

39
00:02:54.200 --> 00:02:55.033
sports.

40
00:02:55.470 --> 00:03:00.350
Let's click on next notice asking where should we apply

41
00:03:00.350 --> 00:03:04.070
this rule? Let's apply to all our zones,

42
00:03:05.850 --> 00:03:09.870
the do domain, the private network, and even public networks.

43
00:03:10.240 --> 00:03:14.680
Let's click on next and let's set a name to help us

44
00:03:15.040 --> 00:03:16.360
identify the purpose of this rule.

45
00:03:17.190 --> 00:03:21.100
Let's say blocking ports

46
00:03:22.680 --> 00:03:27.480
for security testing. Great.

47
00:03:28.630 --> 00:03:32.680
Let's click on finish and now the rule is configured.

48
00:03:33.730 --> 00:03:38.100
As you can see, it is listed right here. If you double click on this rule,

49
00:03:38.160 --> 00:03:42.540
we can see it is enable, we can see exactly what the scope are,

50
00:03:43.160 --> 00:03:47.740
if there's any advanced settings, what ports are being blocked and so forth.

51
00:03:48.820 --> 00:03:53.620
Great. Let's click on console. So now that our environment is set up,

52
00:03:53.950 --> 00:03:56.700
let's head out to Carly Lenox to create our pude.

53
00:03:57.430 --> 00:04:01.050
So now that we are on our Carly Larox virtual machine,

54
00:04:01.620 --> 00:04:05.170
let's use MSF Venom once more to create AP load.

55
00:04:06.970 --> 00:04:10.950
Currently we will set the Windows interpreter,

56
00:04:10.980 --> 00:04:13.390
reverse TCP all ports.

57
00:04:14.280 --> 00:04:19.190
We'll specify the Lho as a IP address of our Carli Locks virtual machine.

58
00:04:19.690 --> 00:04:22.670
The airport will be 44 44,

59
00:04:23.530 --> 00:04:27.990
so when this P load is executed on a Windows 10 virtual machine,

60
00:04:28.930 --> 00:04:32.120
it'll call back to our Carly Larox virtual machine.

61
00:04:33.180 --> 00:04:37.400
Ensure that you set your Carly Larox IP address in this area.

62
00:04:38.420 --> 00:04:43.250
We'll use F to specify the type of format for this

63
00:04:43.250 --> 00:04:45.490
file, which is a Windows executable,

64
00:04:46.250 --> 00:04:49.110
and we will call this file reverse underscore.

65
00:04:49.110 --> 00:04:53.790
Shell simply it enter for the P to be generated.

66
00:04:57.680 --> 00:05:01.750
Great, so the P is greeted. Let's verify. Let's do

67
00:05:03.990 --> 00:05:05.730
LS dash l i.

68
00:05:06.480 --> 00:05:09.560
We'll do grab and let's just search for reverse.

69
00:05:10.630 --> 00:05:14.970
And here we can see that our payload is created within our current directory.

70
00:05:15.490 --> 00:05:16.323
Excellent.

71
00:05:17.390 --> 00:05:21.330
I'm simply gonna copy the IP address of my Carly machine once more.

72
00:05:22.370 --> 00:05:26.790
And now let us start a Metasploit

73
00:05:27.360 --> 00:05:31.390
multi handler. To accept any sort of inbound connections,

74
00:05:32.840 --> 00:05:36.990
I'll type metas like Sue actually

75
00:05:37.850 --> 00:05:41.070
MSF console and it enter to start Metasploit.

76
00:05:44.300 --> 00:05:46.690
Great. To start the multi handler,

77
00:05:46.900 --> 00:05:51.830
let's use exploit multi handler

78
00:05:52.100 --> 00:05:54.750
like Sue and hit enter.

79
00:05:55.870 --> 00:05:58.010
Now we need to specify the same payload,

80
00:05:58.300 --> 00:06:02.730
so type set payload like so

81
00:06:03.470 --> 00:06:07.920
those specify windows slash interpreter

82
00:06:10.250 --> 00:06:14.860
slash reverse underscore tcp underscore

83
00:06:15.320 --> 00:06:17.780
all ports. Simply enter.

84
00:06:19.230 --> 00:06:22.200
Next we'll set our L host,

85
00:06:23.300 --> 00:06:27.770
which is a IP address of our Carly Lennox wheelchair machine at the moment.

86
00:06:28.440 --> 00:06:32.570
Next we'll set ports, which is 44 44.

87
00:06:33.070 --> 00:06:36.850
An enter. Simply run to start a listener.

88
00:06:37.670 --> 00:06:42.450
So now we need to transfer the payload from our Carly Lux virtual machine

89
00:06:43.110 --> 00:06:47.730
to our victim machine to execute it. I'm going to open it in YouTube like so,

90
00:06:54.200 --> 00:06:56.620
and I'm going to run the Python three

91
00:06:58.530 --> 00:07:02.670
HT D P server on port 80. 80. Great.

92
00:07:04.110 --> 00:07:07.290
I'm going to head over back to my Windows 10 virtual machine.

93
00:07:07.510 --> 00:07:08.610
To download a payload,

94
00:07:10.290 --> 00:07:15.170
I'm gonna simply open edge and then connect to

95
00:07:15.310 --> 00:07:17.410
my Carly Lang virtual machine.

96
00:07:17.960 --> 00:07:22.730
I'll do H G D P call slash slash specify the IP address

97
00:07:24.260 --> 00:07:26.320
of the Carly Lang machine like so.

98
00:07:31.800 --> 00:07:34.180
And here you can see the entire directory list.

99
00:07:35.800 --> 00:07:39.400
I will simply look for the reverse onco file,

100
00:07:40.560 --> 00:07:44.260
and here it is, reverse onco shall 30 xc.

101
00:07:44.940 --> 00:07:48.830
I will right click and I'm going to do save linkers.

102
00:07:49.960 --> 00:07:54.320
This should allow me to download a file. I'm gonna click save.

103
00:07:55.310 --> 00:07:56.143
Great.

104
00:07:58.030 --> 00:08:01.570
I'm going to add a word to my downloads directory like so.

105
00:08:03.600 --> 00:08:07.100
And here we can see the file is downloaded. Excellent.

106
00:08:08.280 --> 00:08:13.240
I'm going to meet this window a little smaller so we can observe to see what is

107
00:08:13.240 --> 00:08:18.000
happening on the multi handler side and the virtual

108
00:08:18.030 --> 00:08:18.863
machine.

109
00:08:23.200 --> 00:08:25.490
However, before I do that,

110
00:08:25.950 --> 00:08:30.850
I'm going to configure an IP table to redirect any sort of in

111
00:08:30.850 --> 00:08:35.370
common traffic from this Victor machine to ports

112
00:08:35.380 --> 00:08:38.890
44 44 on meta exploitable.

113
00:08:40.640 --> 00:08:44.580
To do this, I'm going to use the second terminal like soup.

114
00:08:44.920 --> 00:08:49.070
I'm going to stop my H T D P server and let's use this command

115
00:08:50.510 --> 00:08:55.050
to redirect all in common traffic between ports 44 40

116
00:08:55.580 --> 00:09:00.160
and 5 56 to be redirected to port 4, 4 44.

117
00:09:00.710 --> 00:09:02.800
Therefore, when we execute a pude,

118
00:09:02.940 --> 00:09:07.800
the P will attempt to connect to various TCB ports and

119
00:09:07.800 --> 00:09:12.600
all the traffic will be redirected specifically to or

120
00:09:12.600 --> 00:09:15.160
multi handler. Let's press enter.

121
00:09:15.990 --> 00:09:20.820
Let's enter or password for Carly Lenox and it enter Andre.

122
00:09:21.560 --> 00:09:25.590
Once this executes perfectly, you will get a new prompt. Great.

123
00:09:26.630 --> 00:09:31.380
Going to minimize this and I'm going to open my Windows virtual machine

124
00:09:31.640 --> 00:09:32.473
on the side.

125
00:09:33.510 --> 00:09:38.050
I'm simply going to double click to execute this and we are going to run it.

126
00:09:38.660 --> 00:09:42.460
Let's take a look at what is happening here. And if you notice,

127
00:09:43.520 --> 00:09:46.060
we actually have a interpreter shell.

128
00:09:46.890 --> 00:09:51.670
We can type cifo and we can see we now have a reverse connection

129
00:09:52.140 --> 00:09:56.630
that was simply able to bypass a firewall and still we are able

130
00:09:57.330 --> 00:10:01.870
to retrieve traffic or retrieve a connection from the victim machine.

131
00:10:02.940 --> 00:10:04.280
During the course of this video,

132
00:10:04.540 --> 00:10:09.320
you have learned how to bypass network-based firewalls using Meta Exploit.

133
00:10:10.630 --> 00:10:15.050
In the next video, we will take a look at each G D P tunneling.

134
00:10:15.370 --> 00:10:17.330
I hope this video has been informative for you,

135
00:10:17.390 --> 00:10:18.970
and I'll see you in the next one.
