WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.100 --> 00:00:11.000
In this video, you will learn how to perform privilege escalation talks

1
00:00:10.500 --> 00:00:13.400
 and also gain a solid understanding on

2
00:00:13.400 --> 00:00:15.600
 importance of privilege escalation.

3
00:00:16.400 --> 00:00:19.100
I hope you're excited as me. So let's dive on in.

4
00:00:21.300 --> 00:00:24.200
What exactly is privilege escalation or why

5
00:00:24.200 --> 00:00:28.300
 do we even need it to put simply after exploiting a

6
00:00:27.300 --> 00:00:30.700
 security flow? I'm gaining either a

7
00:00:30.700 --> 00:00:33.100
 reverse or a bind shell you may not

8
00:00:33.100 --> 00:00:36.800
 be able to perform administrative actions or task on

9
00:00:36.800 --> 00:00:39.700
 the compromise system due to Simply operating

10
00:00:39.700 --> 00:00:42.400
 as a low privilege user on a Target

11
00:00:42.400 --> 00:00:42.800
 system.

12
00:00:43.800 --> 00:00:46.300
Therefore it's important to understand the need

13
00:00:46.300 --> 00:00:49.700
 to escalate your user privileges to high

14
00:00:49.700 --> 00:00:52.400
 level privileges on a

15
00:00:52.400 --> 00:00:56.300
 Target system such as local administrator a

16
00:00:55.300 --> 00:00:58.200
 domain administrator or even

17
00:00:58.200 --> 00:00:59.500
 system level access.

18
00:01:00.500 --> 00:01:03.600
Escalating your user privileges on a compromised

19
00:01:03.600 --> 00:01:07.000
 system simply allows you to modify. The system's configurations

20
00:01:06.100 --> 00:01:09.600
 aren't perform administrative functions

21
00:01:09.600 --> 00:01:11.300
 on the victim system.

22
00:01:12.100 --> 00:01:15.300
Penetration testers can also use metsuperter to

23
00:01:15.300 --> 00:01:18.400
 easily escalate their user privileges or on

24
00:01:18.400 --> 00:01:21.100
 the compromise system and to get started we can simply

25
00:01:21.100 --> 00:01:24.400
 gain image to purchase shell on the victim system

26
00:01:24.400 --> 00:01:26.300
 as you have seen on the screen.

27
00:01:27.200 --> 00:01:31.000
firstly we can simply use the gapped uid

28
00:01:30.900 --> 00:01:32.200
 command like so

29
00:01:33.600 --> 00:01:36.000
And the purpose of this command simply allows us

30
00:01:36.400 --> 00:01:39.400
 to verify our current user privileges on the

31
00:01:39.400 --> 00:01:42.700
 target system as you can see we are currently operating

32
00:01:42.700 --> 00:01:45.200
 as the system user which is

33
00:01:45.200 --> 00:01:48.500
 great. But let's see we will not operating as

34
00:01:48.500 --> 00:01:51.400
 system. What could we do? Well, we

35
00:01:51.400 --> 00:01:55.000
 can simply use the command use proof

36
00:01:54.100 --> 00:01:55.300
 like so

37
00:01:56.200 --> 00:01:57.100
and hit enter

38
00:01:57.600 --> 00:02:00.700
this command will simply allow us

39
00:02:00.700 --> 00:02:03.500
 to load the privilege extensions if it

40
00:02:03.500 --> 00:02:07.000
 is not already loaded Within metuperter.

41
00:02:08.300 --> 00:02:11.500
Next if we will operating with a low privilege user

42
00:02:11.500 --> 00:02:15.100
 we can simply type get system like so and

43
00:02:14.100 --> 00:02:18.100
 this would escalate our privileges directly to

44
00:02:17.100 --> 00:02:20.900
 the highest possible privilege within

45
00:02:20.900 --> 00:02:23.700
 the system, which is the system

46
00:02:23.700 --> 00:02:24.100
 user.

47
00:02:25.100 --> 00:02:28.600
Are additional method is simply doing something called to

48
00:02:28.600 --> 00:02:32.000
 concealing unemploitation with implication

49
00:02:31.400 --> 00:02:34.800
 is simply allows a penetration tester to

50
00:02:34.800 --> 00:02:37.600
 Simply pretend to be another user

51
00:02:37.600 --> 00:02:41.200
 on a system or on the network without knowing

52
00:02:40.200 --> 00:02:44.300
 the implicitated users credentials. So

53
00:02:44.300 --> 00:02:47.500
 in other words, you don't need to know their username or a

54
00:02:47.500 --> 00:02:50.400
 password or even their password hashes for

55
00:02:50.400 --> 00:02:53.300
 the account. Let's see margin if a doom in

56
00:02:53.300 --> 00:02:56.400
 administrator has locked into a whose system on a

57
00:02:56.400 --> 00:02:59.500
 network and let's say this two minute administrator is

58
00:02:59.500 --> 00:03:02.700
 performing some type of administrative task. Then the

59
00:03:02.700 --> 00:03:05.900
 user me logged off after completing our

60
00:03:05.900 --> 00:03:08.500
 task. Well, the thing is once you

61
00:03:08.500 --> 00:03:11.300
 use logged in which is let's say Do Me

62
00:03:11.300 --> 00:03:14.700
 administrator a toolk on is temporarily created

63
00:03:14.700 --> 00:03:17.500
 on the system that was being used by

64
00:03:17.500 --> 00:03:20.600
 that particular Doom without administrator. If this

65
00:03:20.600 --> 00:03:23.900
 seems to some is compromise by let's say a

66
00:03:23.900 --> 00:03:24.400
 painter.

67
00:03:25.100 --> 00:03:28.400
One ethical hacker then the penetration tester will

68
00:03:28.400 --> 00:03:31.500
 be able to steal anyone p**** need

69
00:03:31.500 --> 00:03:34.800
 the domain administrator stubon simply allowing

70
00:03:34.800 --> 00:03:37.700
 the penetration tester to log into any system within

71
00:03:37.700 --> 00:03:40.600
 the entire domain as the actual

72
00:03:40.600 --> 00:03:43.000
 two mid administrator. So in other words,

73
00:03:43.300 --> 00:03:46.100
 we are sealing the token and even please anything the user.

74
00:03:47.200 --> 00:03:49.900
to see a list of let's say

75
00:03:50.700 --> 00:03:53.300
All the users we need to be able to get

76
00:03:53.300 --> 00:03:56.800
 a meterpreter shell on the target system. We will

77
00:03:56.800 --> 00:03:59.600
 need to load Incognito module like

78
00:03:59.600 --> 00:04:03.800
 so we can simply say use Incognito and

79
00:04:02.800 --> 00:04:05.300
 press enter. This will

80
00:04:05.300 --> 00:04:06.400
 simply allow us to

81
00:04:07.200 --> 00:04:10.200
Impersonate someone else but who could we

82
00:04:10.200 --> 00:04:10.800
 personally?

83
00:04:11.900 --> 00:04:14.300
To view the tokens. We can simply type

84
00:04:14.300 --> 00:04:18.000
 use Incognito like so to load Incognito

85
00:04:17.400 --> 00:04:20.000
 module. Let's type list.

86
00:04:20.900 --> 00:04:23.300
Underscore tokens Dash U

87
00:04:23.300 --> 00:04:26.300
 to view a list of possible tokens on

88
00:04:26.300 --> 00:04:26.800
 the system.

89
00:04:27.700 --> 00:04:30.300
Currently we can see there's this particular

90
00:04:30.300 --> 00:04:31.300
 user token.

91
00:04:31.900 --> 00:04:34.000
This is a valid user on a Target

92
00:04:34.400 --> 00:04:37.200
 system, which is administrator. But why does this tool can

93
00:04:37.200 --> 00:04:41.200
 exist this took on is simply validating that

94
00:04:41.200 --> 00:04:44.500
 hey this uses currently logged in or has when recently

95
00:04:44.500 --> 00:04:44.900
 logged in.

96
00:04:45.500 --> 00:04:48.500
Notice that there are two types of tokens. There's a

97
00:04:48.500 --> 00:04:51.100
 delegation token, which is simply created on a system

98
00:04:51.100 --> 00:04:54.500
 when a user logs in and this 2

99
00:04:54.500 --> 00:04:57.600
 can simply provide that user with the necessary privileges to

100
00:04:57.600 --> 00:05:00.600
 perform any particular task. The input

101
00:05:00.600 --> 00:05:03.800
 Extinction took on is simply categories toon that

102
00:05:03.800 --> 00:05:06.200
 simply allows the user to access a remote service.

103
00:05:06.900 --> 00:05:09.600
So currently we have the administrator

104
00:05:09.600 --> 00:05:12.400
 account is logged in now if you're not

105
00:05:12.400 --> 00:05:15.800
 seeing the administrator account simply log into

106
00:05:15.800 --> 00:05:18.600
 metasploitable tree virtual machine and

107
00:05:18.600 --> 00:05:21.600
 then perform the list tokens

108
00:05:21.600 --> 00:05:22.800
 Dashi U command

109
00:05:23.500 --> 00:05:26.400
to impersonators took on simply copy the two

110
00:05:26.400 --> 00:05:27.500
 con information like so

111
00:05:28.700 --> 00:05:31.800
we can type implicit like so on

112
00:05:31.800 --> 00:05:34.800
 the score took on followed by the

113
00:05:34.800 --> 00:05:37.500
 actual token itself. However, we need

114
00:05:37.500 --> 00:05:38.000
 to use.

115
00:05:39.600 --> 00:05:41.200
2 slashes like so

116
00:05:42.800 --> 00:05:43.600
on hit enter.

117
00:05:45.200 --> 00:05:48.800
Currently we can see delegation token is available. We

118
00:05:48.800 --> 00:05:51.200
 implementing this user. How do

119
00:05:51.200 --> 00:05:54.500
 we know whether we are implicating this user or whether we

120
00:05:54.500 --> 00:05:55.100
 are still system.

121
00:05:55.900 --> 00:05:58.600
Well, we can simply type get uid like

122
00:05:58.600 --> 00:06:02.200
 so we actually impersonating that Ministry

123
00:06:01.200 --> 00:06:04.500
 to account. If you recall a few

124
00:06:04.500 --> 00:06:07.600
 minutes ago. We will actually personating this

125
00:06:07.600 --> 00:06:10.500
 system user Let's see. We want to review it

126
00:06:10.500 --> 00:06:14.400
 back to the system user. You can simply type cat system

127
00:06:13.400 --> 00:06:16.100
 like so and press enter.

128
00:06:16.800 --> 00:06:19.400
currently we can see we got a message that says God

129
00:06:19.400 --> 00:06:20.900
 system via technique 1

130
00:06:21.600 --> 00:06:24.300
Well, did it work? Let's type get

131
00:06:24.300 --> 00:06:24.800
 uid.

132
00:06:25.600 --> 00:06:27.500
And we can see we are now system.

133
00:06:29.200 --> 00:06:32.800
As you can see, it's that simple to use my Jupiter as

134
00:06:32.800 --> 00:06:36.200
 create your privileges steel tokens. Impersonate

135
00:06:35.200 --> 00:06:37.000
 2 Guns.

136
00:06:37.800 --> 00:06:41.200
In this video you have learned how to perform privilege escalation

137
00:06:40.200 --> 00:06:43.200
 using my Twitter and you

138
00:06:43.200 --> 00:06:46.900
 have also seen how to identify anyone perform took on

139
00:06:46.900 --> 00:06:47.400
 impersonation.

140
00:06:48.900 --> 00:06:51.900
In the next video, we'll be starting section 7.

141
00:06:51.900 --> 00:06:54.500
 I hope this section has been informative for

142
00:06:54.500 --> 00:06:56.100
 you and I will see you in the next one.
