Enabling Rdp Windows Lab

Video Activity

This lesson is about getting a list of useful files to download and copy. The commands are the same from machine to machine. This lesson focuses on the Remote Desktop Protocol, which is a Graphics User Interface (GUI) based tool. RDP is a relatively straightforward protocol. Participants learn step by step instructions in setting up the Windows Fir...

Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *

Already have an account? Sign In »

7 hours 47 minutes
Video Description

This lesson is about getting a list of useful files to download and copy. The commands are the same from machine to machine. This lesson focuses on the Remote Desktop Protocol, which is a Graphics User Interface (GUI) based tool. RDP is a relatively straightforward protocol. Participants learn step by step instructions in setting up the Windows Firewall and registry by using the netsh advanced firewall and sets it for group remote desktop. Participants learn step-by-step screen by screen programming instructions in turning on RDP and gathering information.

Video Transcription
Hello and welcome to this latest class and the persistence and continued access course. It's the post exploitation hacking
this class. We're going to start in on the back adoring and persistence portion of this class. It'll be a very interesting part. I think it's the part that a lot of people
enjoy. Um, it's the part that really makes you feel like a hacker. Gathering information is mostly just getting a list of useful files to download and copy, and it's the sort of thing that could be done pretty easily by anyone who knows where to look. Most of what we ran through in the actual information gathering was looking at specific commands rather than specific wiles.
There was a
method to that madness.
Specifically, the commands are typically going to be the same from machine to machine. Whereas the files were very off to be changed, it's easy to change a file name and hide. It
commands less so less commonly down. Anyway, This tool, this first we're going to discuss, is actually going to be the remote desktop protocol.
It's the best back door in my personal and not so humble opinion because it's a gooey and gooey is nice, Gooey lets us to a whole bunch of extra stuff. It's not uncommon for people to assume as they get access to a machine, and they're certain that it's not currently in use to set up a Road desktop listener
and then to connect from the outside and start doing gooey work because it really is just wonderful, practically impossible to. Well, not impossible, but it's actually very easy. Tell someone's doing it, but there's practically nothing that could be completely hidden when someone's got a remote desktop
is much easier for them to search through your files and go through and change things.
They really just owned your computer at that point.
Already, he's a pretty straightforward protocol. It's very least simple protocol, but it is still one that
the commands for setting it up by the command lander kind of tricky.
So again, we're starting from the assumption that we've already exploited our way in with
medicine Floyd or with some new O'Day or whatever it might be that we're using. We've broken into the machine, and now we're just sitting in a command prompt. Our next step is going to be to configure the Windows firewall to let us go through and then set up the registry,
which will allow us to actually do things or specifically, you know, do the r e p. But the registry in general just lets us do anything on a machine.
Ah, the first command we're going to use and I kind of cheated entered them earlier so that I could more easily
get it done is going to be the Net S H advanced firewall
A TV firewall. Fire will sit ruled.
Group equals remote desktop new enable equals, Yes, we're gonna go ahead and break this down. Ned s H is just the program that contains all this information. Advanced Firewall Tell that you're looking at the actual Windows advance fire will win those special firewall. This says your
setting a new firewall rule the firewall set rule and you're setting it specifically for group remote desktop. Which is, as you may remember from when we were doing our other information gathering. Remote desktop is a group on this machine
which is necessary for this to work. So after that, we just do new enable which says new connections are allowed. And yes,
we're gonna run it. Now, this command is sort of tricky, so I'll give you a second. So you composite copy it yourself,
all right. And this command is very persnickety. Any mistakes will pretty well just turn it off and not let it work, right? It could set weird rules. Create about group. There's all sorts of crazy things that could go wrong. It's always make sure you've entered this command correctly, and only on a machine that will actually allow it.
takes a little bit, and then it updates a rule, and that's the whole output of it.
But it says it updated a rule. Correct. It says, Okay, updated the rule.
So hopefully the firewall is now allowing
new connections.
After that, we're gonna go to this monstrosity of a command.
Now Reggie Bad deals with the registry haIf. If you don't know about the registries and Windows, it's something really, really want to learn.
Um, we didn't really dig into it too heavily in any of the other videos, because
while the registry can give you an amazing amount of information, it's also very commonly logged,
and it's also sort of difficult for a new person to use. The registry is kind of a higher level gaining all of the information, but it's a stone. It's for people who were actually
have been doing this for a long time and have familiarity with the simpler tools that we've covered. In this course.
The Reg add function is a really handy one. It lets us change a registry key, modify one, or even just create a new one.
So we're gonna go ahead, type Reg RG ad on this name right here, which again you can pause the video at any time and copy over yourself H key local machine system, current control, set control terminal server. And there's a space between terminal and server.
Make sure that's all wrapped in quotes so that it resolves properly.
And then we're gonna use the Tak V option f deny T s connections. The tax T Reg D word
slash D zero slash f
and well, actually, in just a moment, go through these options because Reggie Dad can be very handy. But I wanted you to see the command itself first. Run it and it has completed successfully.
So we're gonna go ahead and do Reg ad
so I see the first head of V is the value name. It's the value under that key that we're creating or editing or whatever.
Ah, the slash t is the data type inside the registry.
I'm in this case. It's Reg D word. The slash D is the data. So the way keys work is you actually have a value and a data. Ah, data field that's assigned to it
and the value tells it what
it's actually doing. What is it affecting? And then the value field.
The data field, rather,
is the actual information. So very often a register key is used is a 1,000,000,000 which the value field says something is true or something exists. And then the data fields a zero for balls or one for true.
Um, redshirt keys could be used for all sorts of other things. But what we're doing right now is basically that so we're changing the f. D N I. T s connections, which is the field that controls and basically turns off
terminal servers or remote desktop, as it's more commonly known.
And then we're setting that data field to zero. We're saying that's pulse, and they're using the slash After say, we're forcing this over, right?
No prompt. Don't ask me if I want to do it. Just do it.
And so with that command, we've actually turned on our DP
and we are ready to go.
One important detail. The note before we go is that our DP is not enabled in. It's not possible with every single Windows machine.
Ah, Windows eight. If it's a non pro machine or and on enterprise machine actually doesn't have already, p enable doesn't have it capable of being enabled.
Um, so that is something you're gonna want to keep an eye out for it, but it always make sure that your target is a machine that has the capability of doing whatever you're trying to do to it.
That's really all we have for the Rdp video. It's a pretty straightforward process. Just a couple of commands your own and then got full access.
We won't really be going through and actually using already pee because frankly,
you don't need it. Gooey is pretty straightforward, and I think everyone watching this videos more than equipped to point and click
eso with that, we're gonna go ahead and then this one. I hope you've enjoyed learning how to use already P,
and I hope it's ser jewel
Up Next