msdos 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #------------------------------------------------------------------------------
  2. # msdos: file(1) magic for MS-DOS files
  3. #
  4. # .BAT files (Daniel Quinlan, quinlan@yggdrasil.com)
  5. 0 string @echo\ off MS-DOS batch file text
  6. # .EXE formats (Greg Roelofs, newt@uchicago.edu)
  7. #
  8. 0 string MZ MS-DOS executable (EXE)
  9. >24 string @ \b, OS/2 or Windows
  10. >1638 string -lh5- \b, LHa SFX archive v2.13S
  11. >7195 string Rar! \b, RAR self-extracting archive
  12. #
  13. # [GRR 950118: file 3.15 has a buffer-size limitation; offsets bigger than
  14. # 8161 bytes are ignored. To make the following entries work, increase
  15. # HOWMANY in file.h to 32K at least, and maybe to 70K or more for OS/2,
  16. # NT/Win32 and VMS.]
  17. # [GRR: some company sells a self-extractor/displayer for image data(!)]
  18. #
  19. >11696 string PK\003\004 \b, PKZIP SFX archive v1.1
  20. >13297 string PK\003\004 \b, PKZIP SFX archive v1.93a
  21. >15588 string PK\003\004 \b, PKZIP2 SFX archive v1.09
  22. >15770 string PK\003\004 \b, PKZIP SFX archive v2.04g
  23. >28374 string PK\003\004 \b, PKZIP2 SFX archive v1.02
  24. #
  25. # Info-ZIP self-extractors
  26. # these are the DOS versions:
  27. >25115 string PK\003\004 \b, Info-ZIP SFX archive v5.12
  28. >26331 string PK\003\004 \b, Info-ZIP SFX archive v5.12 w/decryption
  29. # these are the OS/2 versions (OS/2 is flagged above):
  30. >47031 string PK\003\004 \b, Info-ZIP SFX archive v5.12
  31. >49845 string PK\003\004 \b, Info-ZIP SFX archive v5.12 w/decryption
  32. # this is the NT/Win32 version:
  33. >69120 string PK\003\004 \b, Info-ZIP NT SFX archive v5.12 w/decryption
  34. #
  35. # TELVOX Teleinformatica CODEC self-extractor for OS/2:
  36. >49801 string \x79\xff\x80\xff\x76\xff \b, CODEC archive v3.21
  37. >>49824 leshort =1 \b, 1 file
  38. >>49824 leshort >1 \b, %u files
  39. # .COM formats (Daniel Quinlan, quinlan@yggdrasil.com)
  40. # Uncommenting only the first two lines will cover about 2/3 of COM files,
  41. # but it isn't feasible to match all COM files since there must be at least
  42. # two dozen different one-byte "magics".
  43. #0 byte 0xe9 MS-DOS executable (COM)
  44. #0 byte 0x8c MS-DOS executable (COM)
  45. # 0xeb conflicts with "sequent" magic
  46. #0 byte 0xeb MS-DOS executable (COM)
  47. #0 byte 0xb8 MS-DOS executable (COM)
  48. # miscellaneous formats
  49. 0 string LZ MS-DOS executable (built-in)
  50. #0 byte 0xf0 MS-DOS program library data
  51. #
  52. # Popular applications
  53. 2080 string Microsoft\ Word\ 6.0\ Document Microsoft Word document data
  54. 2080 string Documento\ Microsoft\ Word\ 6 Spanish Microsoft Word 6 document data
  55. # Pawel Wiecek <coven@i17linuxb.ists.pwr.wroc.pl> (for polish Word)
  56. 2112 string MSWordDoc Microsoft Word document data
  57. #
  58. 0 belong 0x31be0000 Microsoft Word Document
  59. #
  60. 2080 string Microsoft\ Excel\ 5.0\ Worksheet %s
  61. # Pawel Wiecek <coven@i17linuxb.ists.pwr.wroc.pl> (for polish Excel)
  62. 2114 string Biff5 Microsoft Excel 5.0 Worksheet
  63. #
  64. 0 belong 0x00001a00 Lotus 1-2-3
  65. >4 belong 0x00100400 wk3 document data
  66. >4 belong 0x02100400 wk4 document data
  67. >4 belong 0x07800100 fm3 or fmb document data
  68. >4 belong 0x07800000 fm3 or fmb document data
  69. #
  70. 0 belong 0x00000200 Lotus 1-2-3
  71. >4 belong 0x06040600 wk1 document data
  72. >4 belong 0x06800200 fmt document data