Penetration_Testing_POC/tools/cmd下查询3389远程桌面端口.md
2019-10-02 23:54:24 +08:00

15 lines
520 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

在命令行下执行:
```shell
REG query HKLM\SYSTEM\CurrentControlSet\Control\Terminal" "Server\WinStations\RDP-Tcp /v PortNumber
```
返回:
```shell
PortNumber REG_DWORD 0x4cfe
```
随后拿出来`0x4cfe`转换成10进制Windows下可以用计算器的程序员模式
选择`HEX`输入`4cfe`即可得到10进制的端口号`19710`
![](../img/47.png)
当然你也可以使用其他软件(小葵多功能转换工具)或在线的进制转换工具,怎么方便怎么来