Google
      
发新话题
打印

系统漏洞补丁Ver3

系统漏洞补丁Ver3

#include<ie.au3>
Opt('Wintitlematchmode',2)
$YahooSafe=_IECreate('http://cn.zs.yahoo.com/safe08.htm')
$Ls=_IELinkGetCollection($YahooSafe)
for $L in $Ls
if StringInStr($L.href,'http://download.microsoft.com/download')>0 then
  ;ConsoleWrite($L.href [email=&@crlf]&@crlf[/email] )
  runSp($L)
  endif
next
Func runSp($d)
$sz=InetGetSize($L.href)
$packName=StringRegExpReplace($L.href,'\S+/','')
[email=$packFullName=@TempDir&]$packFullName=@TempDir&'\'&$packName[/email]

InetGet($d.href,$packFullName,0,1)
While @InetGetActive
;TrayTip("Downloading", "Bytes = " & , 10, 16)
$d.innertext='下载进度:[email=]'&@InetGetBytesRead&'/'&$sz&'B'[/email]
Sleep(1000)
Wend
$d.href=''
$d.innertext='安装中...'
Run($packFullName)

While ProcessExists($packName)
Sleep(1000)
if WinActive('Setup Error','') then
  WinActivate('Setup Error','')
  WinWaitActive('Setup Error','')
  $d.innertext='安装失败'
  $d.title=WinGetText('Setup Error')
  send('{enter}')
  
elseif WinActive('安装程序错误','') then
  WinActivate('安装程序错误','')
  WinWaitActive('安装程序错误','')
  $d.innertext='安装失败!!!'
  $d.title=WinGetText('安装程序错误')
  send('{enter}')
ElseIf WinActive("安装向导","") Then
  WinActivate("安装向导","")
  WinWaitActive("安装向导","")
  Send("{ALTDOWN}n{ALTUP}{ALTDOWN}a{ALTUP}{ALTDOWN}n{ALTUP}")
  WinWaitActive("安装向导","您已成功完成")
  Send("!d{enter}")
  $d.innertext='OK'
  
ElseIf WinActive("Software Update Installation Wizard","") Then
  WinActivate("Software Update Installation Wizard","")
  WinWaitActive("Software Update Installation Wizard","")
  Send("{ALTDOWN}n{ALTUP}{ALTDOWN}a{ALTUP}{ALTDOWN}n{ALTUP}!n")
  WinWaitActive("Software Update Installation Wizard","") ;???
  Send("!d{enter}")
  $d.innertext='OK'
Else
endif
WEnd
if $d.innertext='OK' then FileDelete($packFullName)
EndFunc
好不容易忙完,现在总算有点时间了。不能及时回答大家的问题,还请大家多多包函。
勇于思考,敢于行动,不逃避问题。
业务联系:dvd制作,各种系统、软件光盘定制,平面广告设计、3D设计,电脑专业维修,网络组建,MTV个人像册、视频处理!
电话:15820835149

TOP

很想知道你用的是哪个版本,大部分的源码都错,发布前不知道你自己验证过没?

TOP

发新话题