Port 3389 is the service port of Windows 2000 (2003) Server Remote Desktop. You can use the remote desktop and other connection tools to connect to the remote server, after you enter the user name and password of the system administrator, the remote computer can be operated like a local computer. Therefore, the remote server generally changes or closes the port.
Close port 3389:
Port 3389 is the port opened by the Remote Management Terminal of windows. It is not a Trojan program. Check whether the service is open by yourself.
If not, we recommend that you disable this service.
Start Win2000 Server --> program --> Administrative Tools --> locate the Terminal Services Service item in the service, select the property Option to change the Startup Type to manual, and stop the service.
Start Win2000 pro --> set --> control panel --> management tools --> locate the Terminal Services Service item in the service, select the property Option to change the Startup Type to manual, and stop the service.
How To Disable Windows XP: Right-click on my computer and select Properties --> remote, remove the check box for Remote Assistance and Remote Desktop.
We program to implement remote desktop login 3389.
# Include <windows. h> // # include <winuser. h> int _ stdcall winmain (hinstance, hinstance hprevinstance, lpstr lpcmdline, int nshowcmd) {hwnd messageboxhandle, role; point pt; char * mstsccommandline = "mstsc.exe C :\\ default. RDP \/W 1024 \/h 768 "; winexec (mstsccommandline, sw_show); // connect 3389for (INT I = 0; I <20; I ++) {// query window handle counts = findwindow ("tsshellwnd", null); messageboxhandle = find=wex (counts, 0, "tscaxhost", null); messageboxhandle = find=wex (messageboxhandle, 0, "ATL: Custom", null); messageboxhandle = find=wex (messageboxhandle, 0, "uimainclass", null); messageboxhandle = find=wex (messageboxhandle, 0, "uicontainerclass", null ); messageboxhandle = findjavaswex (messageboxhandle, 0, "opwindowclass", null); // messageboxhandle = find?wex (, 0, 0, "default-192.168.123.117-Remote Desktop"); If (messageboxhandle) {sleep (2000); // The code for sending the following message failed to be tested./* lresult returnvalue = sendmessage (messageboxhandle, wm_keydown, vk_f1, 1l); sendmessage (messageboxhandle, wm_char, 'I', 0); sleep (1000); sendmessage (messageboxhandle, wm_char, 'I', 1); sendmessage (messageboxhandle, wm_char, 13, null ); sendmessage (messageboxhandle, wm_keydown, vk_control, 1); */setforegroundwindow (SUCCESS); sendmessage (success, wm_syscommand, success, 0); sleep (1000); mouse_event (mouseeventf_leftdown | fail, 1000, 1000); sleep (); mouse_event (mouseeventf_rightdown | mouseeventf_rightup,); sleep (); getcursorpos (& pt); setcursorpos (pt. X + 20, PT. Y + 95); mouse_event (mouseeventf_leftdown | mouseeventf_leftup, 1000,); sleep (); getcursorpos (& pt); setcursorpos (pt. X + 164, PT. y); mouse_event (mouseeventf_leftdown | mouseeventf_leftup, 100,); break;} Sleep ();} return 0 ;}