cmd or shell under the Read terminal of the port-bug warning-the black bar safety net

ID MYHACK58:62200715401
Type myhack58
Reporter 佚名
Modified 2007-05-11T00:00:00


  1. General method regedit /e c:\3389.reg "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" type c:\3389.reg | find "PortNumber" del c:\3389.reg

  2. xp and 2 0 0 3 Under reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp"

  3. Script echo Dim ReadComputerName > c:\3389.vbs echo Set ReadComputerName=WScript. CreateObject(^"WScript. Shell^") >> c:\3389.vbs echo Dim TSName,TSRegPath >> c:\3389.vbs echo TSRegPath=^"HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber^" >> c:\3389.vbs echo TSName=ReadComputerName. RegRead(TSRegPath) >> c:\3389.vbs echo WScript. Echo(^"Termservice Port is:^"^&TSName) >> c:\3389.vbs

cscript 3 3 8 9. vbs