1
00:00:00,240 --> 00:00:01,740
Hello and welcome back.

2
00:00:02,310 --> 00:00:05,010
Are you ready to have your first target?

3
00:00:05,890 --> 00:00:12,700
Everything we learned up to here was building up to this moment, we are going to use all of our previous

4
00:00:12,700 --> 00:00:15,820
knowledge that we got to hack our target.

5
00:00:16,570 --> 00:00:20,740
Of course, this is just one of the many experts that we will cover in this course.

6
00:00:21,040 --> 00:00:23,920
But it is important because it is our first one.

7
00:00:25,070 --> 00:00:30,860
In this case, we're, of course, going to be attacking the anticipatable for our first exploit, so

8
00:00:30,860 --> 00:00:34,490
make sure you start it up, check out the IP address of Anticipatable.

9
00:00:34,490 --> 00:00:37,970
In my case, it is 192 of the 168, that one that five.

10
00:00:38,810 --> 00:00:42,440
And what I'm going to do is I'm going to open two terminals.

11
00:00:42,770 --> 00:00:49,760
In the first one, I will start my massive console and in the second one I will perform the end scan

12
00:00:49,910 --> 00:00:51,920
for the version of the service.

13
00:00:52,100 --> 00:00:57,260
So we already know the command and map Desh Suite and then the IP address.

14
00:00:57,260 --> 00:00:58,280
All my anticipatable.

15
00:00:59,970 --> 00:01:06,600
It will ask me for the password, I will put it right here and it will start the scan and you can open

16
00:01:06,600 --> 00:01:12,990
your metal framework once the scan is running and once you open it, just wait for the scan to finish.

17
00:01:14,640 --> 00:01:16,060
OK, so here it is.

18
00:01:16,440 --> 00:01:19,140
This is an output that we're already familiar with.

19
00:01:20,020 --> 00:01:24,510
Let's see whether we can explain the target and we're going to start in order.

20
00:01:24,990 --> 00:01:29,460
Let's go with the safety report first so we know is right here.

21
00:01:29,610 --> 00:01:36,540
Which version of service is it running in this case, VX, FTD, two point three point four.

22
00:01:37,350 --> 00:01:41,580
And also, keep in mind that there is really no plan once you do something like this.

23
00:01:42,130 --> 00:01:47,670
We only know that the goal for us is to find an exploit if this software is vulnerable.

24
00:01:48,680 --> 00:01:55,640
Now, even though we know that best search would be going on Internet and typing via FTP vulnerability,

25
00:01:56,090 --> 00:02:02,660
but I myself like to run the search tool first just to see whether we already have it right here on

26
00:02:02,660 --> 00:02:03,140
the machine.

27
00:02:03,560 --> 00:02:11,240
So I will open another terminal and I will copy the name of the version in this case via FTP two point

28
00:02:11,240 --> 00:02:19,100
three point four copied and type search deployed and then paste the Virgin name if I press enter right

29
00:02:19,100 --> 00:02:19,370
here.

30
00:02:20,330 --> 00:02:29,000
We get one result, we get back to command execution and in the right column, as you remember, we

31
00:02:29,000 --> 00:02:30,830
get the path to this expert.

32
00:02:31,640 --> 00:02:33,650
There is one thing that we should note is right here.

33
00:02:33,860 --> 00:02:35,540
This is not our beat.

34
00:02:36,020 --> 00:02:36,860
What does this mean?

35
00:02:37,190 --> 00:02:41,570
Well, this most likely means that this expert belongs to matters framework.

36
00:02:42,200 --> 00:02:44,980
And it also tells us that right here in the brackets.

37
00:02:45,560 --> 00:02:50,500
So it means that we will have it right here under one of these two thousand experts.

38
00:02:51,320 --> 00:02:52,550
So how we can find it.

39
00:02:52,790 --> 00:02:57,850
Of course, we are not going to be listing all the 2000 exploits and trying to find the correct one.

40
00:02:58,220 --> 00:03:00,380
But we can do is we can type search.

41
00:03:00,860 --> 00:03:03,830
And then this afternoon, so we have DPD.

42
00:03:05,750 --> 00:03:15,050
And here it this exploit Unix for the FTP, and it is DP's after two point three point four version

43
00:03:15,530 --> 00:03:18,650
vector, it came out in two thousand and 11.

44
00:03:19,160 --> 00:03:22,520
It is ranked excellent, which means this exploit works.

45
00:03:22,850 --> 00:03:24,650
And here is the description for it.

46
00:03:25,280 --> 00:03:26,780
Let's read more about it.

47
00:03:26,780 --> 00:03:28,610
But first we need to select it.

48
00:03:28,610 --> 00:03:36,260
So to do that we can type, use, exploit Unix FTP and then the name of the exploit.

49
00:03:37,520 --> 00:03:44,690
Press enter and we can see the payload is default configured to see in the universe interact, but we're

50
00:03:44,690 --> 00:03:46,430
going to check this out in just a second.

51
00:03:46,460 --> 00:03:53,180
Let us first clear the screen and type the command show info if we want to read more about the split.

52
00:03:53,780 --> 00:03:59,420
So it will tell us in the description, this module exploits a malicious backdoor that was added to

53
00:03:59,420 --> 00:04:01,280
DHBs FTP download.

54
00:04:02,510 --> 00:04:10,280
These backdoor was introduced in the zip file between June 30th, 2011 and July 1st, 2011.

55
00:04:10,460 --> 00:04:17,090
According to the most recent information available, this backdoor was removed on July 3rd, 2010 11.

56
00:04:18,060 --> 00:04:19,500
Hmm, interesting.

57
00:04:19,710 --> 00:04:22,160
Let's see whether we got the wrong rebel version.

58
00:04:23,110 --> 00:04:28,540
So if I clear the screen and type the next command, which is show options, we will see right here

59
00:04:28,780 --> 00:04:32,260
what are the things that we need to set up in order for this to work.

60
00:04:32,860 --> 00:04:35,800
So in this case, we only got two things.

61
00:04:36,130 --> 00:04:39,430
We got the our hosts and we got the airport.

62
00:04:40,330 --> 00:04:43,780
And this is the remote host, which is the IP address of our target.

63
00:04:44,260 --> 00:04:49,420
And the airport is the port number where the FTP is running on the target machine.

64
00:04:49,850 --> 00:04:54,540
If we go to my scan, we will see the port is set correctly, which is port twenty one.

65
00:04:54,760 --> 00:04:56,440
So this is something that we will not change.

66
00:04:56,830 --> 00:04:59,490
However, we need to set up a remote coast IP address.

67
00:04:59,830 --> 00:05:03,910
So let's set the IP address on Anticipatable set.

68
00:05:03,910 --> 00:05:07,510
Our hosts one attitude at 168 at one that five.

69
00:05:07,780 --> 00:05:13,780
In my case, the payload is set by default and if I type show payloads to see all of the available payloads

70
00:05:13,780 --> 00:05:18,610
that we have for this particular attack, we only get this single payload.

71
00:05:18,860 --> 00:05:20,650
So there is nothing really to change right here.

72
00:05:21,160 --> 00:05:27,090
We're going to use that one and we can see it doesn't require any additional options whatsoever.

73
00:05:27,430 --> 00:05:29,110
So the easier for us, the better.

74
00:05:29,620 --> 00:05:32,110
Under the description we can see it is a Unix command.

75
00:05:32,140 --> 00:05:34,710
We simply just interact with establish connection.

76
00:05:34,990 --> 00:05:39,340
So I expect that with this we're going to be able to execute commands on target machine.

77
00:05:39,460 --> 00:05:46,030
If we manage to exploit it under the targets, we can type show targets to see the available ones.

78
00:05:46,180 --> 00:05:50,380
And we got none because this is an actual exploit for the software.

79
00:05:50,380 --> 00:05:55,300
So in order to be able to exploit the target, the target has to be running this software version,

80
00:05:55,630 --> 00:05:57,370
which in our case it is running.

81
00:05:57,880 --> 00:05:59,310
So everything is set.

82
00:05:59,470 --> 00:06:01,600
Let us double check type show options.

83
00:06:02,170 --> 00:06:03,970
We got the IP address of the target.

84
00:06:03,970 --> 00:06:06,460
We got the port number for the software.

85
00:06:06,460 --> 00:06:14,020
It's running on the target machine and all we need to type to execute this is type exploit, press,

86
00:06:14,020 --> 00:06:14,500
enter.

87
00:06:17,160 --> 00:06:23,940
And here it is, we got the command session, one opened on the target system.

88
00:06:24,870 --> 00:06:25,770
How do I know this?

89
00:06:26,280 --> 00:06:33,300
Well, it doesn't give us any output right here, but if I type, for example, tell us, you will see

90
00:06:33,300 --> 00:06:34,680
we are getting an output.

91
00:06:35,160 --> 00:06:38,700
And this, alas, didn't execute on our clinic's machine.

92
00:06:39,210 --> 00:06:40,720
It executed on the.

93
00:06:42,240 --> 00:06:44,370
We are on that machine right now.

94
00:06:44,400 --> 00:06:45,840
We successfully exploited it.

95
00:06:46,290 --> 00:06:48,060
We can run any comments at once.

96
00:06:48,070 --> 00:06:49,290
If I type, who am I?

97
00:06:49,620 --> 00:06:51,810
It will tell us that we are different account.

98
00:06:52,470 --> 00:06:59,220
So not only did we manage to hack that machine, we also are fraud private account so we can do anything

99
00:06:59,220 --> 00:06:59,880
we want on it.

100
00:07:00,510 --> 00:07:07,800
If I type to check my current directory, I am going to slash the rectory and if I type, I have config.

101
00:07:08,220 --> 00:07:14,280
Just to prove to you that we are on the target machine, we can see the output is 192 of the 168 that

102
00:07:14,280 --> 00:07:14,970
fund that five.

103
00:07:15,600 --> 00:07:18,320
So that is the IP address of Anticipatable.

104
00:07:18,510 --> 00:07:23,520
As you can see right here inside of the directory that we are currently at.

105
00:07:23,730 --> 00:07:25,410
We can create files right now.

106
00:07:26,370 --> 00:07:32,400
Let's go to the anticipatable just to show you, and if we type Alesi, this directory, these are the

107
00:07:32,400 --> 00:07:37,500
current files inside of this directory, if I type now mkdir and then test.

108
00:07:39,130 --> 00:07:40,880
And they type less once again.

109
00:07:41,170 --> 00:07:46,600
Now you will see that we successfully created the test directory on the anticipatable machine and if

110
00:07:46,600 --> 00:07:48,460
we check it on the machine itself.

111
00:07:49,810 --> 00:07:56,560
Here it is, here is the test directory that we just created, so we successfully hacked the target.

112
00:07:57,190 --> 00:08:02,530
Now, the reason we are getting an output like this is because this is not really that good of a shell.

113
00:08:02,710 --> 00:08:08,880
This is not an interpreter so that we get a well organized output, but nonetheless, it is a shell.

114
00:08:08,890 --> 00:08:12,850
Indeed, we can execute the commands and we get the output of those comments back.

115
00:08:12,850 --> 00:08:18,390
And not only that, but we are able to count on the target system now to exit the shell.

116
00:08:18,400 --> 00:08:26,890
We can just type exit and it will tell us right here, Shell session one closed and it was that easy

117
00:08:27,190 --> 00:08:28,480
weekend food privilege.

118
00:08:28,590 --> 00:08:33,070
Count on the political machine and we could have done anything on it.

119
00:08:33,850 --> 00:08:39,670
This is as good as it can get and this is exactly what we are looking for once we try to exploit the

120
00:08:39,670 --> 00:08:40,140
target.

121
00:08:40,840 --> 00:08:44,980
Now, sometimes it is this easy, but sometimes it isn't.

122
00:08:45,160 --> 00:08:50,590
And we will see some complicated exploits later on and it will be even more complicated to exploit the

123
00:08:50,590 --> 00:08:53,040
target if it doesn't have any vulnerability.

124
00:08:53,680 --> 00:08:57,580
But for now, we are happy we managed to hack our first target.

125
00:08:58,120 --> 00:09:00,180
But this is just one of the vulnerabilities.

126
00:09:00,460 --> 00:09:06,400
Let's keep exploring and see in the next few videos if the Botibol has some other vulnerabilities as

127
00:09:06,400 --> 00:09:06,630
well.

128
00:09:06,970 --> 00:09:12,100
And then after we finish with Anticipatable, we're going to move on to some other harder targets.
