No need to restart or change the remote port of the server

Source: Internet
Author: User

The server permissions are successfully obtained through the bypass + elevation of permissions, and then the SQL command adds the USER ADMIN to enable 3389
After successfully logging on to the server, I thought about how to use the remote port of the server. After modification
From the very beginning, I found that I couldn't log on. At this time, I don't have to worry about opening the firewall.

So what should we do? Now only the Shell Permission is available ..

First, you accidentally discovered that you do not need to write the Registry to change the port.
1. Run:
Reg query "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal
Server"
You will find out what the service is in and decide what to do.
We found that "fDenyTSConnections REG_DWORD 0x0. This is now 3389 server enabled.
Service "0x0", which is the hexadecimal number 0. This is enabled, and 0x1 is disabled.
Suppose we have changed 3389 to 9, then delete the service first. After the change, you cannot connect from the start.
All I have to do is. It doesn't take effect from the port that is also called port 3389. I guess this article is the first one.
I googled BAIDU. There are no similar articles. I hope you can learn more. Old bird passed ..


2. Delete existing Terminal Services
Reg delete "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal
Server "/v fDenyTSConnections
Will you ask if "you want to delete the registry value fDenyTSConnections", Of course Yes, and then execute:

3. Now the terminal should be in the closed state. Let's try again. Well, I tried to close it. Wow

4. The new Service port is the port you changed. This method minus the Server start. Because sometimes
The $ administrator you set up will not be discovered from the beginning. (There are many ways to use this method. Hope you can advise)
Reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal
Server "/v fDenyTSConnections/t REG_DWORD/d 0
After executing the appeal command, you should have opened the port and the Service, which should be the port you changed. Try again

5. In execution
Reg query "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server.

Change the value of "fDenyTSConnections" to "0x? "0x0 on 0x1 off

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.