Jump to content
Sign in to follow this  

How to download the newest virus definitions

Recommended Posts


I hope automate download the symantec virus definitions(offline update),but the file name is varied.for example, 20070309-019-x86.exe,20070311-021-x86.exe,etc.

The url is <http://definitions.symantec.com/defs/>

I want to know how to get the varied url.

Please help me how to do it with the autoit,thanks.

Share this post

Link to post
Share on other sites


Below is code to go thru the names of files on the webpage. Basically I think you want to know what is the new updates and compare to those on your hard drive. You can compare the $oDoc.name from the page and if it doesnt exist on your harddrive use $oDoc.href to get the full link to download it.

Hope this helps

#include <IE.au3>
    _IEErrorHandlerRegister ("MyErrFunc1")
    $oIE = _IECreate("http://definitions.symantec.com/defs/")
    $oDocs = _IELinkGetCollection($oIE,-1)
           For $oDoc in $oDocs
                    $value = $oDoc.name

func MyErrFunc1()

Firefox's secret is the same as Jessica Simpson's: its effortless, glamorous style is the result of — shhh — extensions!

Share this post

Link to post
Share on other sites

#include <Inet.au3>
$sSource = _INetGetSource("http://definitions.symantec.com/defs/")
$aArray = StringRegExp($sSource, '(?s)(?i)\<A HREF\="(\d{8}-\d{3}-x86\.exe)"', 3)
If IsArray($aArray) Then MsgBox(64, 'Latest exe', 'http://definitions.symantec.com/defs/' & $aArray[UBound($aArray) - 1])

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this