fsav 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #------------------------------------------------------------------------------
  2. # fsav: file(1) magic for datafellows fsav virus definition files
  3. # Anthon van der Neut (anthon@mnt.org)
  4. # ftp://ftp.f-prot.com/pub/{macrdef2.zip,nomacro.def}
  5. 0 beshort 0x1575 fsav macro virus signatures
  6. >8 leshort >0 (%d-
  7. >11 byte >0 \b%02d-
  8. >10 byte >0 \b%02d)
  9. # ftp://ftp.f-prot.com/pub/sign.zip
  10. #10 ubyte <12
  11. #>9 ubyte <32
  12. #>>8 ubyte 0x0a
  13. #>>>12 ubyte 0x07
  14. #>>>>11 uleshort >0 fsav DOS/Windows virus signatures (%d-
  15. #>>>>10 byte 0 \b01-
  16. #>>>>10 byte 1 \b02-
  17. #>>>>10 byte 2 \b03-
  18. #>>>>10 byte 3 \b04-
  19. #>>>>10 byte 4 \b05-
  20. #>>>>10 byte 5 \b06-
  21. #>>>>10 byte 6 \b07-
  22. #>>>>10 byte 7 \b08-
  23. #>>>>10 byte 8 \b09-
  24. #>>>>10 byte 9 \b10-
  25. #>>>>10 byte 10 \b11-
  26. #>>>>10 byte 11 \b12-
  27. #>>>>9 ubyte >0 \b%02d)
  28. # ftp://ftp.f-prot.com/pub/sign2.zip
  29. #0 ubyte 0x62
  30. #>1 ubyte 0xF5
  31. #>>2 ubyte 0x1
  32. #>>>3 ubyte 0x1
  33. #>>>>4 ubyte 0x0e
  34. #>>>>>13 ubyte >0 fsav virus signatures
  35. #>>>>>>11 ubyte x size 0x%02x
  36. #>>>>>>12 ubyte x \b%02x
  37. #>>>>>>13 ubyte x \b%02x bytes
  38. # Joerg Jenderek: joerg dot jenderek at web dot de
  39. # http://www.clamav.net/doc/latest/html/node45.html
  40. # .cvd files start with a 512 bytes colon separated header
  41. # ClamAV-VDB:buildDate:version:signaturesNumbers:functionalityLevelRequired:MD5:Signature:builder:buildTime
  42. # + gzipped tarball files
  43. 0 string ClamAV-VDB:
  44. >11 string >\0 Clam AntiVirus database %-.23s
  45. >>34 string :
  46. >>>35 regex [^:]+ \b, version
  47. >>>>35 string x \b%-.1s
  48. >>>>>36 string !:
  49. >>>>>>36 string x \b%-.1s
  50. >>>>>>>37 string !:
  51. >>>>>>>>37 string x \b%-.1s
  52. >>>>>>>>>38 string !:
  53. >>>>>>>>>>38 string x \b%-.1s
  54. >>>>512 string \037\213 \b, gzipped
  55. >>>>769 string ustar\0 \b, tared
  56. >512 string \037\213 \b, gzipped
  57. >769 string ustar\0 \b, tared