Advertisement
Guest User

Sanesecurity

a guest
May 26th, 2016
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.26 KB | None | 0 0
  1.  
  2.  
  3. %~d0
  4. cd %~dp0
  5.  
  6. goto wget
  7.  
  8.  
  9.  
  10. :ftp
  11. echo open ftp.swin.edu.au> ftp.txt
  12. echo anonymous>> ftp.txt
  13. echo anonymous@domain.com>> ftp.txt
  14. echo cd /sanesecurity>> ftp.txt
  15.  
  16. echo get foxhole_generic.cdb>> ftp.txt
  17. echo get foxhole_filename.cdb>> ftp.txt
  18. echo get foxhole_js.cdb>> ftp.txt
  19.  
  20. echo quit>> ftp.txt
  21.  
  22. ftp -s:ftp.txt
  23.  
  24. goto xcopy
  25.  
  26. :wget
  27.  
  28. ::debug
  29. ::del download\fox*.*
  30. ::del C:\ProgramData\.clamwin\db\fox*.*
  31.  
  32. ::Signatures
  33. C:\NET\Services\wget\wget.exe -P download -N http://ftp.swin.edu.au/sanesecurity/foxhole_generic.cdb
  34. C:\NET\Services\wget\wget.exe -P download -N http://ftp.swin.edu.au/sanesecurity/foxhole_filename.cdb
  35. C:\NET\Services\wget\wget.exe -P download -N http://ftp.swin.edu.au/sanesecurity/foxhole_js.cdb
  36.  
  37.  
  38. ::Virus databases
  39. C:\NET\Services\wget\wget.exe -P download -N http://database.clamav.net/main.cvd
  40. C:\NET\Services\wget\wget.exe -P download -N http://database.clamav.net/daily.cvd
  41. C:\NET\Services\wget\wget.exe -P download -N http://database.clamav.net/bytecode.cvd
  42.  
  43.  
  44. :xcopy
  45. xcopy download\*.*  C:\ProgramData\.clamwin\db /d /y > xcopy.log
  46. find "0 dosya" xcopy.log >nul && goto end
  47.  
  48.  
  49. :restart
  50. @echo Restarting clamd
  51. net stop clamd
  52. net start clamd
  53.  
  54. :end
  55. @echo Update finished!
  56. @ping -n 5 localhost > nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement