WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.110 --> 00:00:07.943
In this video,

1
00:00:07.950 --> 00:00:12.690
you'll learn how to use Netcat to implement persistence on a compromise system.

2
00:00:14.260 --> 00:00:16.860
I hope you're excited as me. So let's dive on in.

3
00:00:19.890 --> 00:00:24.030
To get started setting up a persistent backdoor using netcat,

4
00:00:24.410 --> 00:00:29.270
we simply need to upload the Netcat Dotc file from Carli

5
00:00:29.390 --> 00:00:33.630
Lenox to the systems three two folder within the root

6
00:00:33.820 --> 00:00:37.910
directory of the target system. With our target system,

7
00:00:38.290 --> 00:00:39.710
if we type cifo,

8
00:00:39.970 --> 00:00:44.030
we can see it is the meta exploitable tree windows virtual machine.

9
00:00:44.370 --> 00:00:46.030
We can simply use this command,

10
00:00:46.030 --> 00:00:50.030
which is specifying to upload and ctc,

11
00:00:50.030 --> 00:00:54.790
which is a net cut executable from Carli Lenox to the

12
00:00:54.790 --> 00:00:58.110
system T two folder within the Windows victim system.

13
00:00:58.810 --> 00:01:01.550
Simply type the command, hit enter,

14
00:01:01.690 --> 00:01:06.510
and after a few seconds you will see it is being uploaded to the victim

15
00:01:06.610 --> 00:01:07.443
system.

16
00:01:07.940 --> 00:01:12.870
Next to get net cut to automatically run whenever the victim

17
00:01:12.970 --> 00:01:16.030
system reboots, we need to use a following command.

18
00:01:18.370 --> 00:01:22.620
This will simply make a modification within the registry of the Windows

19
00:01:23.000 --> 00:01:25.060
victim system. Next,

20
00:01:25.080 --> 00:01:29.500
we want to specify to execute netcat using the Windows

21
00:01:29.610 --> 00:01:33.820
command prompt, but run on port 1, 1 1 1.

22
00:01:34.560 --> 00:01:38.910
So therefore we'll use this command like Sue. And lastly,

23
00:01:39.480 --> 00:01:43.230
let's ensure that Netcat executes when the system reboots

24
00:01:45.990 --> 00:01:47.860
great. At this point,

25
00:01:48.940 --> 00:01:53.680
the registry information is configured on the victim system. Next,

26
00:01:53.940 --> 00:01:57.950
the last thing we need to do is simply open port

27
00:01:58.090 --> 00:02:02.190
1, 1 1, 1 on the victim system's firewall.

28
00:02:03.100 --> 00:02:08.070
So now let's create an interactive shell between the victim system and

29
00:02:08.070 --> 00:02:08.903
our machine.

30
00:02:09.580 --> 00:02:14.410
We'll use execute dash F C M D and I for

31
00:02:14.410 --> 00:02:15.243
interactive.

32
00:02:15.880 --> 00:02:20.690
Currently we have an interactive command prompt on our Carly

33
00:02:20.760 --> 00:02:22.730
virtual machine. Next,

34
00:02:22.940 --> 00:02:26.370
let's determine the firewall status on the victim machine.

35
00:02:26.950 --> 00:02:31.810
We can simply type net H firewalls, show up mode like so,

36
00:02:32.640 --> 00:02:37.180
and we can see the operational state of the firewall is disabled in a real

37
00:02:37.180 --> 00:02:40.140
environment. The operational mode will be enable.

38
00:02:41.500 --> 00:02:45.680
So let's assume the operational mode of the firewall is enable

39
00:02:46.300 --> 00:02:50.520
to open a port to speed specific to open port 1 1 11.

40
00:02:51.020 --> 00:02:54.680
We can simply use the following command like so and presenter.

41
00:02:55.850 --> 00:02:59.680
Once everything executes properly, we'll get an okay response.

42
00:03:02.560 --> 00:03:06.780
Lastly, we can verify that our port is open by using this command.

43
00:03:14.200 --> 00:03:18.720
Let's type exit. So now we have returned to our material.

44
00:03:18.930 --> 00:03:19.763
Shell,

45
00:03:19.850 --> 00:03:24.560
let's type reboot to reboot the metal exploitable tree windows

46
00:03:24.560 --> 00:03:25.440
virtual machine.

47
00:03:25.650 --> 00:03:29.400
Let's type reboot one more time and it seems as though the command is not

48
00:03:29.400 --> 00:03:34.180
working. Let's do it manually. Let's log in like,

49
00:03:34.200 --> 00:03:35.033
so

50
00:03:41.350 --> 00:03:45.690
let's click on start and now let's click on restart,

51
00:03:47.350 --> 00:03:52.100
select any option and click. Okay. Great.

52
00:03:52.350 --> 00:03:57.220
While that system is rebooting, I'm simply going to open a new terminal

53
00:04:00.480 --> 00:04:01.313
like so

54
00:04:04.070 --> 00:04:08.680
This time I'm gonna connect using the Netcat client to connect a Netcat listener

55
00:04:09.220 --> 00:04:10.480
on the compromise system.

56
00:04:11.430 --> 00:04:14.320
I'll type NC followed by dash V,

57
00:04:14.540 --> 00:04:19.360
the IP address of the victim system under destination port of one

58
00:04:19.540 --> 00:04:20.373
11.

59
00:04:21.690 --> 00:04:24.830
And currently we are seeing the connection is refused.

60
00:04:25.520 --> 00:04:27.470
Let's logged into the victim system

61
00:04:34.380 --> 00:04:38.560
and let's try it one more time. Uh, great. So what we have learned so far,

62
00:04:39.360 --> 00:04:44.060
for the net cut server run, a user must be logged into the victim system.

63
00:04:44.770 --> 00:04:47.300
Even though the victim system has rebooted,

64
00:04:48.310 --> 00:04:51.210
it doesn't mean to say that Netcat server is actually running.

65
00:04:51.950 --> 00:04:54.690
So until someone logs into the victim system,

66
00:04:55.240 --> 00:04:59.890
then we are able to actually connect from our Carli machine to a Netcat

67
00:04:59.910 --> 00:05:03.870
server on the victim system. If I type, who am I,

68
00:05:04.730 --> 00:05:09.710
I'm currently running as the administrator account create.

69
00:05:11.540 --> 00:05:12.373
In this video,

70
00:05:12.380 --> 00:05:16.960
you have learned how to use net card to set up a systems on a compromise system.

71
00:05:18.070 --> 00:05:22.810
In the next video, you'll learn how to perform pivoting using Metasploit.

72
00:05:23.450 --> 00:05:26.890
I hope this video has been informative for you and thank you for viewing.
