    
- 帖子
- 3852
- 积分
- 13044
- 威望
- 16780
- 金钱
- 36761
- 在线时间
- 1139 小时
         
|
文章首发:[3.A.S.T]http://www.3ast.com.cn/
3 ]2 k h! R4 D) O! d原文作者:柔肠寸断[3.A.S.T]8 Z p% U$ M7 F5 Q! A6 z! T
. P Q6 j1 P @9 v8 W* F' a
=========================================
8 X5 \3 h; V2 K9 d) g8 w首先给点基础的代码,然后再说障碍2 P" u4 K- a3 ?" [$ E
=========================================
0 u+ I; ^5 I$ E4 Y/ b2000生成3389bat代码- echo Windows Registry Editor Version 5.00 >2000.reg
- echo. >>2000.reg
- echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\netcache] >>2000.reg
- echo "Enabled"="0" >>2000.reg
- echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >>2000.reg
- echo "ShutdownWithoutLogon"="0" >>2000.reg
- echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer] >>2000.reg
- echo "EnableAdminTSRemote"=dword:00000001 >>2000.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] >>2000.reg
- echo "TSEnabled"=dword:00000001 >>2000.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD] >>2000.reg
- echo "Start"=dword:00000002 >>2000.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService] >>2000.reg
- echo "Start"=dword:00000002 >>2000.reg
- echo [HKEY_USERS\.DEFAULT\Keyboard Layout\Toggle] >>2000.reg
- echo "Hotkey"="1" >>2000.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] >>2000.reg
- echo "PortNumber"=dword:00000D3D >>2000.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] >>2000.reg
- echo "PortNumber"=dword:00000D3D >>2000.reg
复制代码 Win XP&Win 2003生成3389bat代码- echo Windows Registry Editor Version 5.00 >3389.reg
- echo. >>3389.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] >>3389.reg
- echo "fDenyTSConnections"=dword:00000000 >>3389.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] >>3389.reg
- echo "PortNumber"=dword:00000d3d >>3389.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] >>3389.reg
- echo "PortNumber"=dword:00000d3d >>3389.reg
复制代码 其中PortNumber是端口号,00000d3d为3389
" \& F Q+ J) J$ E' i2 q; o9 [( \1 d7 B E
通过cmd下“ regedit /s "reg文件路径" ”进行reg文件导入' a! ~4 f2 Y5 Y
但是必须要重新启动,虽然已经表面上开启了
, |1 b+ J) e! t5 G给一段比较好的代码,从众多代码中遴选出来的,具有较高的成功率,基本上重启成功率达到100%+ A6 X- l0 k% ]) s1 t
/ l$ Q/ ?$ g( u: S8 `% n8 U
重启bat代码- @ECHO OFF & cd/d %temp% & echo [version] > restart.inf
- (set inf=InstallHinfSection DefaultInstall)
- echo signature=$chicago$ >> restart.inf
- echo [defaultinstall] >> restart.inf
- rundll32 setupapi,%inf% 1 %temp%\restart.inf
复制代码 如果安装有IIS,可以使用iisreset.exe 命令:iisreset /reboot5 {' E9 F' }+ ^. v9 c1 i+ H
重启之后就可以登陆了,而且不会出现错误* Y4 ]& O g( K0 n
- e& j/ {9 O# W6 s) {5 f====================================================
2 {( r& K1 f; L, ~" B下面听好了,开始说说障碍;6 C4 p, `+ a2 I' b2 v6 r/ K
面对很多的克隆版本操作系统,即使你成功开启了3389,但是你连接的时候会出现如图的情况
E7 \6 A m" Q$ F, { z9 p5 @# f, s' w) b8 i
这是为什么呢??其实答案很简单,就是在做系统封装的时候,为了减小程序的体积,有的程序就被删除或者忽略了,造成现在的无法连接3389(但是已经开启了),这要怎么办呢????
( Y, i7 n% \8 L( n C我们可以使用devcon程序,有的系统已经把他包含在自己的内部命令中,如果没有也没关系,微软官方网站都有下载,复制到system32目录,就可以当作内部命令使用了。我们为什么要用他???就是因为精简版的系统中,系统的终端服务器设备重定向器没有正确安装,我们用devcon的目的就是对终端服务器设备重定向器进行恢复。
1 S* S) K0 m; @& C4 M运行- devcon -r install %windir%\inf\machine.inf root\rdpdr
复制代码 成功执行,通过这种方法就可以解决上述问题
( h0 B/ X8 i2 a. V& p
0 w; Q- v. v+ d: p再说一种比较常见的方法,导入一个Reg文件-
- Windows Registry Editor Version 5.00
- [HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Enum\\Root\\RDPDR\\0000]
- "ClassGUID"="{4D36E97D-E325-11CE-BFC1-08002BE10318}"
- "Class"="System"
- "HardwareID"=hex(7):52,00,4f,00,4f,00,54,00,5c,00,52,00,44,00,50,00,44,00,52,\\
- 00,00,00,00,00
- "Driver"="{4D36E97D-E325-11CE-BFC1-08002BE10318}\\\\0030"
- "Mfg"="(标准系统设备)"
- "Service"="rdpdr"
- "DeviceDesc"="终端服务器设备重定向器"
- "ConfigFlags"=dword:00000000
- "Capabilities"=dword:00000000
复制代码 对系统进行导入,但是问题又来了
7 l- W2 r9 P* M- o3 P: j8 j进行注册表文件进行导入的时候就会出现问题4 V ] L( b. _/ R; k' s
; ` ]; K3 H" O0 u% G0 K8 m
进行reg的查看才知道,是因为相关的键值没有权限才会造成无法导入
% K% s0 Z" f6 i6 i1 W! C这里我推荐一个新的工具:Regini
# e7 B" y: ?9 E( ?& K相关的用法(regini /? 没有帮助):
6 G! }7 I, {8 G 9 y+ J" q- c! y/ _
Regini Data [Options...]
3 k7 ^! w& m4 U6 g0 d& K Useful Options:
- R" u( r0 b) l' F4 | 1 - Administrators Full Access
5 a y# A. V' Y6 |0 Y# n$ Z 2 - Administrators Read Access" y; M! x* v* S- j' h
3 - Administrators Read and Write Access8 j0 Y4 g! j2 G* e* l1 s; d2 Y4 g7 h
4 - Administrators Read, Write and Delete Access6 T! f1 H& k9 E) G& i
5 - Creator Full Access
4 X0 w A9 R( ~5 t- \5 X( m# J! ^% | 6 - Creator Read and Write Access
- e% L/ P" b4 Z9 y/ i& w 7 - World Full Access
9 |/ Q8 G! w+ T6 r Q& D9 w 8 - World Read Access! M6 Z, X9 L6 k! [
9 - World Read and Write Access' R9 r u+ A8 v+ g1 ^
10 - World Read, Write and Delete Access7 T( a- |' n+ i. V- |
11 - Power Users Full Access8 U+ a5 F3 ]5 z$ l- ]- q& ~
12 - Power Users Read and Write Access
& l4 T5 D, o. [6 i; S 13 - Power Users Read, Write and Delete Access: x) |' `( z2 a4 V5 F$ \
14 - System Operators Full Access
. z/ ~* t; o8 y9 G% @4 H 15 - System Operators Read and Write Access) O7 ]( ^, t; M& S( z4 r
16 - System Operators Read, Write and Delete Access
- N* W# O, R; Q; w7 p2 F+ \ 17 - System Full Access6 C. C! v0 E( e+ n# N) b
18 - System Read and Write Access
0 J4 S/ e/ {+ i( W- Z 19 - System Read Access
' L }( Q) r( T8 e. V m; [5 X 20 - Administrators Read, Write and Execute Access
4 Z) `5 C3 U- w: B+ v 21 - Interactive User Full Access
7 c7 x' _3 r5 m" h2 `( y. w 22 - Interactive User Read and Write Access# W& `4 H$ K- U5 n# p& {+ {$ d
23 - Interactive User Read, Write and Delete Access
7 q0 B' k- Q5 m' U, |) Q: c0 Y; g7 G* g, W# U9 _
& N* {+ o) K. J1 |4 A; h4 y- }
/ b* W1 O t }4 W! l
; y* g$ l4 \. F4 P5 @' H) C8 ^data中为注册表的键值,通过这样的方法就可以提升键值为相关的权限,从而成功导入reg文件% [& B- h7 p6 s" n4 A
|
附件: 您需要登录才可以下载或查看附件。没有帐号?注册
|