Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %~d0
- cd %~dp0
- goto wget
- :ftp
- echo open ftp.swin.edu.au> ftp.txt
- echo anonymous>> ftp.txt
- echo anonymous@domain.com>> ftp.txt
- echo cd /sanesecurity>> ftp.txt
- echo get foxhole_generic.cdb>> ftp.txt
- echo get foxhole_filename.cdb>> ftp.txt
- echo get foxhole_js.cdb>> ftp.txt
- echo quit>> ftp.txt
- ftp -s:ftp.txt
- goto xcopy
- :wget
- ::debug
- ::del download\fox*.*
- ::del C:\ProgramData\.clamwin\db\fox*.*
- ::Signatures
- C:\NET\Services\wget\wget.exe -P download -N http://ftp.swin.edu.au/sanesecurity/foxhole_generic.cdb
- C:\NET\Services\wget\wget.exe -P download -N http://ftp.swin.edu.au/sanesecurity/foxhole_filename.cdb
- C:\NET\Services\wget\wget.exe -P download -N http://ftp.swin.edu.au/sanesecurity/foxhole_js.cdb
- ::Virus databases
- C:\NET\Services\wget\wget.exe -P download -N http://database.clamav.net/main.cvd
- C:\NET\Services\wget\wget.exe -P download -N http://database.clamav.net/daily.cvd
- C:\NET\Services\wget\wget.exe -P download -N http://database.clamav.net/bytecode.cvd
- :xcopy
- xcopy download\*.* C:\ProgramData\.clamwin\db /d /y > xcopy.log
- find "0 dosya" xcopy.log >nul && goto end
- :restart
- @echo Restarting clamd
- net stop clamd
- net start clamd
- :end
- @echo Update finished!
- @ping -n 5 localhost > nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement