windows 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. #------------------------------------------------------------------------------
  2. # $File: windows,v 1.5 2012/04/03 22:25:07 christos Exp $
  3. # windows: file(1) magic for Microsoft Windows
  4. #
  5. # This file is mainly reserved for files where programs
  6. # using them are run almost always on MS Windows 3.x or
  7. # above, or files only used exclusively in Windows OS,
  8. # where there is no better category to allocate for.
  9. # For example, even though WinZIP almost run on Windows
  10. # only, it is better to treat them as "archive" instead.
  11. # For format usable in DOS, such as generic executable
  12. # format, please specify under "msdos" file.
  13. #
  14. # Summary: Outlook Express DBX file
  15. # Extension: .dbx
  16. # Created by: Christophe Monniez
  17. 0 string \xCF\xAD\x12\xFE MS Outlook Express DBX file
  18. >4 byte =0xC5 \b, message database
  19. >4 byte =0xC6 \b, folder database
  20. >4 byte =0xC7 \b, account information
  21. >4 byte =0x30 \b, offline database
  22. # Summary: Windows crash dump
  23. # Extension: .dmp
  24. # Created by: Andreas Schuster (http://computer.forensikblog.de/)
  25. # Reference (1): http://computer.forensikblog.de/en/2008/02/64bit_magic.html
  26. # Modified by (1): Abel Cheung (Avoid match with first 4 bytes only)
  27. 0 string PAGE
  28. >4 string DUMP MS Windows 32bit crash dump
  29. >>0x05c byte 0 \b, no PAE
  30. >>0x05c byte 1 \b, PAE
  31. >>0xf88 lelong 1 \b, full dump
  32. >>0xf88 lelong 2 \b, kernel dump
  33. >>0xf88 lelong 3 \b, small dump
  34. >>0x068 lelong x \b, %ld pages
  35. >4 string DU64 MS Windows 64bit crash dump
  36. >>0xf98 lelong 1 \b, full dump
  37. >>0xf98 lelong 2 \b, kernel dump
  38. >>0xf98 lelong 3 \b, small dump
  39. >>0x090 lequad x \b, %lld pages
  40. # Summary: Vista Event Log
  41. # Extension: .evtx
  42. # Created by: Andreas Schuster (http://computer.forensikblog.de/)
  43. # Reference (1): http://computer.forensikblog.de/en/2007/05/some_magic.html
  44. 0 string ElfFile\0 MS Windows Vista Event Log
  45. >0x2a leshort x \b, %d chunks
  46. >>0x10 lelong x \b (no. %d in use)
  47. >0x18 lelong >1 \b, next record no. %d
  48. >0x18 lelong =1 \b, empty
  49. >0x78 lelong &1 \b, DIRTY
  50. >0x78 lelong &2 \b, FULL
  51. # Summary: Windows 3.1 group files
  52. # Extension: .grp
  53. # Created by: unknown
  54. 0 string \120\115\103\103 MS Windows 3.1 group files
  55. # Summary: Old format help files
  56. # Extension: .hlp
  57. # Created by: Dirk Jagdmann <doj@cubic.org>
  58. 0 lelong 0x00035f3f MS Windows 3.x help file
  59. # Summary: Hyper terminal
  60. # Extension: .ht
  61. # Created by: unknown
  62. 0 string HyperTerminal\
  63. >15 string 1.0\ --\ HyperTerminal\ data\ file MS Windows HyperTerminal profile
  64. # http://ithreats.files.wordpress.com/2009/05/\
  65. # lnk_the_windows_shortcut_file_format.pdf
  66. # Summary: Windows shortcut
  67. # Extension: .lnk
  68. # Created by: unknown
  69. # 'L' + GUUID
  70. 0 string \114\0\0\0\001\024\002\0\0\0\0\0\300\0\0\0\0\0\0\106 MS Windows shortcut
  71. >20 lelong&1 1 \b, Item id list present
  72. >20 lelong&2 2 \b, Points to a file or directory
  73. >20 lelong&4 4 \b, Has Description string
  74. >20 lelong&8 8 \b, Has Relative path
  75. >20 lelong&16 16 \b, Has Working directory
  76. >20 lelong&32 32 \b, Has command line arguments
  77. >20 lelong&64 64 \b, Icon
  78. >>56 lelong \b number=%d
  79. >24 lelong&1 1 \b, Read-Only
  80. >24 lelong&2 2 \b, Hidden
  81. >24 lelong&4 4 \b, System
  82. >24 lelong&8 8 \b, Volume Label
  83. >24 lelong&16 16 \b, Directory
  84. >24 lelong&32 32 \b, Archive
  85. >24 lelong&64 64 \b, Encrypted
  86. >24 lelong&128 128 \b, Normal
  87. >24 lelong&256 256 \b, Temporary
  88. >24 lelong&512 512 \b, Sparse
  89. >24 lelong&1024 1024 \b, Reparse point
  90. >24 lelong&2048 2048 \b, Compressed
  91. >24 lelong&4096 4096 \b, Offline
  92. >28 leqwdate x \b, ctime=%s
  93. >36 leqwdate x \b, mtime=%s
  94. >44 leqwdate x \b, atime=%s
  95. >52 lelong x \b, length=%u, window=
  96. >60 lelong&1 1 \bhide
  97. >60 lelong&2 2 \bnormal
  98. >60 lelong&4 4 \bshowminimized
  99. >60 lelong&8 8 \bshowmaximized
  100. >60 lelong&16 16 \bshownoactivate
  101. >60 lelong&32 32 \bminimize
  102. >60 lelong&64 64 \bshowminnoactive
  103. >60 lelong&128 128 \bshowna
  104. >60 lelong&256 256 \brestore
  105. >60 lelong&512 512 \bshowdefault
  106. #>20 lelong&1 0
  107. #>>20 lelong&2 2
  108. #>>>(72.l-64) pstring/h x \b [%s]
  109. #>20 lelong&1 1
  110. #>>20 lelong&2 2
  111. #>>>(72.s) leshort x
  112. #>>>&75 pstring/h x \b [%s]
  113. # Summary: Outlook Personal Folders
  114. # Created by: unknown
  115. 0 lelong 0x4E444221 Microsoft Outlook email folder
  116. >10 leshort 0x0e (<=2002)
  117. >10 leshort 0x17 (>=2003)
  118. # Summary: Windows help cache
  119. # Created by: unknown
  120. 0 string \164\146\115\122\012\000\000\000\001\000\000\000 MS Windows help cache
  121. # Summary: IE cache file
  122. # Created by: Christophe Monniez
  123. 0 string Client\ UrlCache\ MMF Internet Explorer cache file
  124. >20 string >\0 version %s
  125. # Summary: Registry files
  126. # Created by: unknown
  127. # Modified by (1): Joerg Jenderek
  128. 0 string regf MS Windows registry file, NT/2000 or above
  129. 0 string CREG MS Windows 95/98/ME registry file
  130. 0 string SHCC3 MS Windows 3.1 registry file
  131. # Summary: Windows Registry text
  132. # Extension: .reg
  133. # Submitted by: Abel Cheung <abelcheung@gmail.com>
  134. 0 string REGEDIT4\r\n\r\n Windows Registry text (Win95 or above)
  135. 0 string Windows\ Registry\ Editor\
  136. >&0 string Version\ 5.00\r\n\r\n Windows Registry text (Win2K or above)
  137. # From: Pal Tamas <folti@balabit.hu>
  138. # Autorun File
  139. 0 string/c [autorun]\r\n Microsoft Windows Autorun file.
  140. !:mime application/x-setupscript.