There will be seeing how to enable the disable privileges forever user.
In the previous video we have seen how to retrieve are the privileges for the user.
So for this and you can see all of the privileges.
If you do not watch the previous video, I highly recommend for you to watch it.
So it will be a distinct that I can produce.
And also remember this function does not add a new privilege.
It only and it was what is disappeared.
And here we can see we have five privileges.
And only one is an error, remaining error that we saw in this video.
We are going to enable this or disable privileges for that.
We will be using this at this token with this function.
So let's see.
Uh, first one is the law, and we find this.
So I guess I already
defined this and run this before the recording of this video so I can just delete these parameters.
So the first one is the talking hand do.
And disable our privileges.
So the second parameter is whether we want to disable our privileges or not.
Of course we don't want to.
What are the purges?
That's why we are giving this parameter value false.
And the third one is a pointer to the token with structure.
So that is the news that we are refining our token, a new set of priorities whether we want to enable
or disable.
And this one is the buffer.
And so we have already seen the buffer size in bytes of the buffer pointer by the previous parameter.
So we don't want any of these previous state, uh, information.
We want to just.
Uh, said these values.
And now we get the rent of this structure.
So that's broken through the structure.
See, we have already seen the previous video.
First one is a privileged account in this.
What we're going to do is we are going to loop through all the privileges.
So for that case, we need to set this one.
So for every time we are looping over through these privileges, we are enabling each and every only
one at a time.
So that's why we need to set this privilege count as one.
And we are going to create a new structure that is almost similar to this structure.
And I have created this one that is broken, but we're just single.
So why I have created is we have, uh, another broken structure with the size constant is zero.
So that's why we are getting I'm getting some arrows.
So I have created a new structure that have this privilege account and only one edit.
So that means it can't be one.
And that's why we have only one error.
So we convert, we pass this to the end.
This is this.
So let's go and do this.
So let's first create a token.
Previous single structure DPS.
So I'm going to set this deep, dark political discourse to one.
And after that we want to create the right so privileges is equal to.
New broken privileges single.
So not this one that is ruined afterwards.
So if you go to these cruises and you can see these these either way that routes.
So a new route that routes.
So it be a start.
We need to set this rule that routes value.
So we have already got this huge structure from this are looping over these bridges.
So which is the root structure?
That is a layer to.
So here you can see the road we need to specify so that say TV is not privileges of zero.
Not really easy for us to do that.
Really.
So we are specifying the current fluid value which is in the current blue.
And DBS got privileges of zero not attributes because to do so the to use the value of enabling.
So I argue over this one.
So if you Google this and see I have got this Stack Overflow and here you can see the values of these.
I see pretty Nepalese values, too.
So now we have the look at this 2.0.
We can say first when you target get the.
And against some action that size of.
PBS.
And we need to convert this structure to one the martial arts structure to point to and the object piece.
PBS.
And the pointer is deep.
So I think we are good to go at this point pointing to this picture.
So let's call this function.
Yes.
And the talking handle.
And it's like going to our these forest because we don't want to be where our sort of our privileges.
And the third one is pointer pointer and the reference zero.
And the previous bear that 20 the eurozone that's.
You put them.
On this post zero.
And past there.
Good friends.
So we are good to go.
So it's pretty fun.
So still we did not enable our produce.
So this seizure call is not working when you run as a normal band.
So that's what I have done is I have imported all of this, which are called into PowerShell, so you
can load the Darknet assemblies.
So I have to copy this, this PowerShell script from the Internet.
So all you need to do is you need to.
Define every word that holds the sharp chord and you need to use the ad type.
The value to this variable.
So it will create like a assembly.
And from there you will be calling this testing function.
So I have already added this.
So only changes are these variable names.
And let's go and say PowerShell bypass.
And where are my privileges.
And that's good.
And especially as one.
And now we can see we got our privileges and.
So this also works for the administrator as well.
So you can see most of the properties are visible.
Now we can see we enable these privileges.