• mstsc改端口为33389


    windows 远程默认端口3389不太安全,改成33389防下小人

    把下面的2个文本存在后缀.reg的文件,双击导入注册表,"PortNumber"=dword:0000826d 这个就是33389对应的端口号的16进制值,要想自己改成其它的换下值即可

    1. Windows Registry Editor Version 5.00
    2. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]
    3. "InteractiveDelay"=dword:0000000a
    4. "OutBufCount"=dword:00000006
    5. "OutBufDelay"=dword:00000064
    6. "OutBufLength"=dword:00000212
    7. "PdClass"=dword:00000002
    8. "PdDLL"="tdtcp"
    9. "PdFlag"=dword:0000004e
    10. "PdName"="tcp"
    11. "PortNumber"=dword:0000826d
    12. "RequiredPds"=hex(7):74,00,73,00,73,00,65,00,63,00,73,00,72,00,76,00,00,00,00,\
    13. 00
    14. "ServiceName"="tcpip"
    1. Windows Registry Editor Version 5.00
    2. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
    3. "AudioEnumeratorDll"="rdpendp.dll"
    4. "Callback"=dword:00000000
    5. "CallbackNumber"=""
    6. "CdClass"=dword:00000000
    7. "CdDLL"=""
    8. "CdFlag"=dword:00000000
    9. "CdName"=""
    10. "CfgDll"="RDPCFGEX.DLL"
    11. "ColorDepth"=dword:00000005
    12. "Comment"=""
    13. "Domain"=""
    14. "DrawGdiplusSupportLevel"=dword:00000001
    15. "fAllowSecProtocolNegotiation"=dword:00000001
    16. "fAutoClientDrives"=dword:00000001
    17. "fAutoClientLpts"=dword:00000001
    18. "fDisableAudioCapture"=dword:00000000
    19. "fDisableCam"=dword:00000000
    20. "fDisableCcm"=dword:00000000
    21. "fDisableCdm"=dword:00000000
    22. "fDisableClip"=dword:00000000
    23. "fDisableCpm"=dword:00000000
    24. "fDisableEncryption"=dword:00000001
    25. "fDisableExe"=dword:00000000
    26. "fDisableLPT"=dword:00000000
    27. "fEnableWinStation"=dword:00000001
    28. "fForceClientLptDef"=dword:00000001
    29. "fHomeDirectoryMapRoot"=dword:00000000
    30. "fInheritAutoClient"=dword:00000001
    31. "fInheritAutoLogon"=dword:00000001
    32. "fInheritCallback"=dword:00000000
    33. "fInheritCallbackNumber"=dword:00000001
    34. "fInheritColorDepth"=dword:00000000
    35. "fInheritInitialProgram"=dword:00000001
    36. "fInheritMaxDisconnectionTime"=dword:00000001
    37. "fInheritMaxIdleTime"=dword:00000001
    38. "fInheritMaxSessionTime"=dword:00000001
    39. "fInheritReconnectSame"=dword:00000001
    40. "fInheritResetBroken"=dword:00000001
    41. "fInheritSecurity"=dword:00000000
    42. "fInheritShadow"=dword:00000001
    43. "fLogonDisabled"=dword:00000000
    44. "fPromptForPassword"=dword:00000000
    45. "fReconnectSame"=dword:00000000
    46. "fResetBroken"=dword:00000000
    47. "fUseDefaultGina"=dword:00000000
    48. "InitialProgram"=""
    49. "InputBufferLength"=dword:00000800
    50. "InteractiveDelay"=dword:00000032
    51. "KeepAliveTimeout"=dword:00000000
    52. "KeyboardLayout"=dword:00000000
    53. "LanAdapter"=dword:00000000
    54. "LoadableProtocol_Object"="{5828227c-20cf-4408-b73f-73ab70b8849f}"
    55. "MaxConnectionTime"=dword:00000000
    56. "MaxDisconnectionTime"=dword:00000000
    57. "MaxIdleTime"=dword:00000000
    58. "MaxInstanceCount"=dword:ffffffff
    59. "MinEncryptionLevel"=dword:00000002
    60. "NWLogonServer"=""
    61. "OutBufCount"=dword:00000006
    62. "OutBufDelay"=dword:00000064
    63. "OutBufLength"=dword:00000212
    64. "Password"=""
    65. "PdClass"=dword:00000002
    66. "PdClass1"=dword:0000000b
    67. "PdDLL"="tdtcp"
    68. "PdDLL1"="tssecsrv"
    69. "PdFlag"=dword:0000004e
    70. "PdFlag1"=dword:00000000
    71. "PdName"="tcp"
    72. "PdName1"="tssecsrv"
    73. "PortNumber"=dword:0000826d
    74. "SecurityLayer"=dword:00000002
    75. "SelectNetworkDetect"=dword:00000001
    76. "SelectTransport"=dword:00000002
    77. "Shadow"=dword:00000001
    78. "UserAuthentication"=dword:00000001
    79. "Username"=""
    80. "WdFlag"=dword:00000036
    81. "WdName"="Microsoft RDP 8.0"
    82. "WdPrefix"="RDP"
    83. "WebSocketListenerPort"=dword:00000d3b
    84. "WebSocketTlsListenerPort"=dword:00000d40
    85. "WFProfilePath"=""
    86. "WorkDirectory"=""
    87. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\TSMMRemotingAllowedApps]
    88. "ehshell.exe"=dword:00000002
    89. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\VideoRemotingWindowNames]
    90. "AGFullScreenWinClass"="*"
    91. "EVRVideoHandler"="*"
    92. "MacromediaFlashPlayerActiveX"="*"
    93. "MicrosoftSilverlight"="*"
    94. "ShockwaveFlashFullScreen"="*"

    另外改完端口后,要把windows防火墙中加入一个33389的入站规则。 

  • 相关阅读:
    《Terraform 101 从入门到实践》 Functions函数
    MySQL分组查询
    C# 发送邮件
    Java Class反射
    Havoc插件编写
    JavaEE进阶 - Spring Boot 日志文件 - 细节狂魔
    还不会用springboot写接口?快看这里,手把手操作,一发入魂~
    Android 11源码——预置无源码apk到Android系统(带so文件)
    UI组件库Kendo UI for Vue原生组件中文 - 按钮概述
    代码随想录算法训练营第六十天 | 单调栈 part 1 | 739. 每日温度、496.下一个更大元素 I
  • 原文地址:https://blog.csdn.net/babytiger/article/details/133952222