黑基网 首页 学院 系统管理 查看内容

自己写的3389批处理

2009-1-7 10:11| 投稿: net

摘要:   批处理最好的是,它不被杀毒软件查杀。纯绿色!!================================================================ =========...
  批处理最好的是,它不被杀毒软件查杀。纯绿色!!================================================================ =[email protected]echo offcls:indextitle 开启3389批处理工具     color Bclsecho               ╭─────────────────╮echo   ╭────────┤       ℡黑社幽默专用版       ├────────╮echo   │           ╰─────────────────╯           │echo   │                   ≮开启系统终端≯                 │echo   │                                               │echo   │   A.查看当前系统 B.开启XP,2003终端服务 C.开启window 2000终端服务 │echo   │                                               │echo   │   D.终端端口修改     R.重新启动计算机     Q.退出批处理       │echo   │                                               │echo   │                                               │echo   │           交流技术QQ:918851 (没事不要骚扰)             │echo   ╰───────────────────────────────────╯echo.set start=set /p start=   请选择:if "%start%"=="a" goto ckif "%start%"=="b" goto xpif "%start%"=="c" goto 20if "%start%"=="d" goto xgif "%start%"=="e" goto cqif /i "%start%"=="q" goto endgoto index:ckset a="XP" set b="server 2003" set d="WINNT"type c:\boot.ini|findstr %a%>nul&&echo 当前操作为XP系统type c:\boot.ini|findstr %b%>nul&&echo 当前操作为2003系统dir c:\|find %d%>nul&&echo 当前操作为2000系统pausegoto index:xpif exist "c:\shit.reg" (del c:\shit.regecho Windows Registry Editor Version 5.00>>c:\shit.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>c:\shit.reg echo "fDenyTSConnections"=dword:00000000>>c:\shit.regregedit /s c:\shit.regsc config TermService start= demandsc start TermServicedel c:\shit.reg)echo Windows Registry Editor Version 5.00>>c:\shit.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>c:\shit.reg echo "fDenyTSConnections"=dword:00000000>>c:\shit.regregedit /s c:\shit.regsc config TermService start= demandsc start TermServicedel c:\shit.regpausegoto index:20if exist "c:\shift.reg" (del c:\shift.regecho Windows Registry Editor Version 5.00 >>c:\shift.regecho [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\netcache] >>c:\shift.regecho "Enabled"="0" >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>>c:\shift.reg echo "ShutdownWithoutLogon"="0" >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer] >>c:\shift.reg echo "EnableAdminTSRemote"=dword:00000001 >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] >>c:\shift.reg echo "TSEnabled"=dword:00000001 >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD] >>c:\shift.reg echo "Start"=dword:00000002 >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService] >>c:\shift.reg echo "Start"=dword:00000002 >>c:\shift.reg echo [HKEY_USERS\.DEFAULT\Keyboard Layout\Toggle] >>c:\shift.reg echo "Hotkey"="1" >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] >>c:\shift.reg echo "PortNumber"=dword:00000D3D >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] >>c:\shift.reg echo "PortNumber"=dword:00000D3D >>c:\shift.reg regedit /s c:\shift.regsc config TermService start= demandsc start TermService)echo Windows Registry Editor Version 5.00 >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\netcache] >>c:\shift.reg echo "Enabled"="0" >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >>c:\shift.reg echo "ShutdownWithoutLogon"="0" >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer] >>c:\shift.reg echo "EnableAdminTSRemote"=dword:00000001 >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] >>c:\shift.reg echo "TSEnabled"=dword:00000001 >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD] >>c:\shift.reg echo "Start"=dword:00000002 >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService] >>c:\shift.reg echo "Start"=dword:00000002 >>c:\shift.reg echo [HKEY_USERS\.DEFAULT\Keyboard Layout\Toggle] >>c:\shift.reg echo "Hotkey"="1" >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] >>c:\shift.reg echo "PortNumber"=dword:00000D3D >>c:\shift.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] >>c:\shift.reg echo "PortNumber"=dword:00000D3D >>c:\shift.reg regedit /s c:\shift.regsc config TermService start= demandsc start TermServicedel c:\shift.regpausegoto index:xgset /p 源数=   修改终端端口号为:set /a 源数=%源数% || goto :eof:dosomethingset /a 余数 = %源数% %% 16set /a 源数 /= 16call :转换 %余数% set 余数=%ret%set 计算结果=%余数%%计算结果%if %源数% lss 16 goto endgoto dosomething:转换set ret=if "%1" == "10" set ret=Aif "%1" == "11" set ret=Bif "%1" == "12" set ret=Cif "%1" == "13" set ret=Dif "%1" == "14" set ret=Eif "%1" == "15" set ret=Fif %1 lss 10 set ret=%1goto :eof:endcall :转换 %源数%set 源数=%ret%if "%源数%" == "0" set 源数=echo 0x%源数%%计算结果% >%windir%\temp\shift.txtset ret=set 源数=set 余数=set 计算结果= for /f "delims=" %%a in ('type %windir%\temp\shift.txt') do (set j=%%a)set jd=%j:~3%if exist "%windir%\temp\window.reg" (del %windir%\temp\window.reg echo Windows Registry Editor Version 5.00>%windir%\temp\window.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]>>%windir%\temp\window.reg echo "PortNumber"=dword:00000%jd%>>%windir%\temp\window.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]>>%windir%\temp\window.reg echo "PortNumber"=dword:00000%jd%>>%windir%\temp\window.reg regedit /s %windir%\temp\window.reg)echo Windows Registry Editor Version 5.00>%windir%\temp\window.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]>>%windir%\temp\window.reg echo "PortNumber"=dword:00000%jd%>>%windir%\temp\window.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]>>%windir%\temp\window.reg echo "PortNumber"=dword:00000%jd%>>%windir%\temp\window.reg regedit /s %windir%\temp\window.regdel %windir%\temp\window.[email protected]               修改终端端口成功pausegoto index:cqshutdown /r /t 0   大家把上面的全部复制一下然后粘贴进记事本把后面的txt改成bat就可以使用了。师傅教的,然后自己写的。嘿嘿!!!写的不好,请高手指点!
小编推荐:欲学习电脑技术、系统维护、网络管理、编程开发和安全攻防等高端IT技术,请 点击这里 注册黑基账号,公开课频道价值万元IT培训教程免费学,让您少走弯路、事半功倍,好工作升职加薪!



免责声明:本文由投稿者转载自互联网,版权归原作者所有,文中所述不代表本站观点,若有侵权或转载等不当之处请联系我们处理,让我们一起为维护良好的互联网秩序而努力!联系方式见网站首页右下角。


鲜花

握手

雷人

路过

鸡蛋

相关阅读

最新评论


新出炉

返回顶部