|
如题,以下是偶360自动安装的代码,大大们给点建议,已经测试通过
注册表操作是我改的漏洞存放地址
Run("setup.exe")
WinWaitActive(" 360安全卫士 5.0.0.1032 安装")
Send("!n")
WinWaitActive(" 360安全卫士 5.0.0.1032 安装","最终用户授权协议")
Send("!i")
WinWaitActive(" 360安全卫士 5.0.0.1032 安装","请选择安装位置")
Send("!i")
WinWaitActive(" 360安全卫士 5.0.0.1032 安装","360安全卫士实时保护设置")
Send("!n")
WinWaitActive(" 360安全卫士 5.0.0.1032 安装","360安全卫士保险箱安装设置")
Send("{SPACE}")
Send("!n")
WinWaitActive(" 360安全卫士 5.0.0.1032 安装","正在完成“360安全卫士”安装向导")
Send("!r")
Send("{TAB}")
Send("{SPACE}")
Send("!f")
RegWrite ( "HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\Leak", "P2PIsOpen", "REG_DWORD", 1 )
RegWrite ( "HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\Leak", "MSto360", "REG_DWORD", 1 )
RegWrite ( "HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\Leak", "SaveFile", "REG_DWORD", 1 )
RegWrite ( "HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\Leak", "SavePath", "REG_SZ", "D:\系统补丁" )
RegWrite ( "HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\Leak", "CloseUpdate", "REG_DWORD", 1 )
RegWrite ( "HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\Leak", "UpdateLevel", "REG_DWORD", 2 )
RegWrite ( "HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\Leak\DownAndInstall", "DownAndInstall", "REG_DWORD", 1 )
RegWrite ( "HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\Leak\IsDownFrom360", "IsDownFrom360", "REG_DWORD", 1 )
FileDelete("C:\Documents and Settings\Administrator\桌面\360软件管理.lnk")
FileDelete("C:\Documents and Settings\Administrator\桌面\修复360安全卫士.lnk")
Run("C:\Program Files\360\360Safe\360hotfix.exe")
到这里后来我就不自动怎么搞了。。AU3的窗口信息工具获取不到漏洞修复的任何信息!~
闷闷!~ |
|