ole2compounddocs 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. #------------------------------------------------------------------------------
  2. # $File: ole2compounddocs,v 1.22 2022/12/09 15:56:56 christos Exp $
  3. # Microsoft OLE 2 Compound Documents : file(1) magic for Microsoft Structured
  4. # storage (https://en.wikipedia.org/wiki/Compound_File_Binary_Format)
  5. # Additional tests for OLE 2 Compound Documents should be under this recipe.
  6. # reference: https://www.openoffice.org/sc/compdocfileformat.pdf
  7. 0 string \320\317\021\340\241\261\032\341
  8. # https://digital-preservation.github.io/droid/
  9. # skip droid skeleton like fmt-39-signature-id-128.doc by valid version
  10. >0x1A ushort !0xABAB OLE 2 Compound Document
  11. #>0x1C uleshort x \b, endnian %#4.4x
  12. # big endian not tested
  13. >>0x1C ubeshort =0xfffe \b, big-endian
  14. >>>546 string jbjb : Microsoft Word Document
  15. !:mime application/msword
  16. !:apple MSWDWDBN
  17. !:ext doc
  18. # Byte Order 0xFFFE means little-endian found in real world applications
  19. #>>0x1C uleshort =0xfffe \b, little-endian
  20. >>0x1C uleshort =0xfffe
  21. # From: Joerg Jenderek
  22. # Major Version 3 or 4
  23. >>>0x1A uleshort x \b, v%u
  24. # Minor Version 32h=50 3Bh=59 3Eh=62
  25. >>>0x18 uleshort x \b.%u
  26. # SecID of first sector of the directory stream is often 1 but high like 3144h
  27. >>>48 ulelong x \b, SecID %#x
  28. # Sector Shift Exponent in short-stream container stream: 6~64 bytes
  29. >>>32 uleshort !6 \b, exponent of short stream %u
  30. # total number of sectors used for the FAT
  31. >>>44 ulelong >1 \b, %u FAT sectors
  32. # SecID of first sector of the short-sector allocation table (Mini FAT)
  33. # or -2 (End Of ChainSecID) if not extant
  34. >>>60 ulelong !0xffFFffFE \b, Mini FAT start sector %#x
  35. # total number of sectors used for the short-sector allocation table
  36. >>>64 ulelong !1 \b, %u Mini FAT sector
  37. # plural s
  38. >>>>64 ulelong >1 \bs
  39. # SecID of first sector of the master sector allocation table (DIFAT)
  40. # or -2 (End Of Chain SecID) if no additional sectors used
  41. >>>68 ulelong !0xffFFffFE \b, DIFAT start sector %#x
  42. # total number of sectors used for the master sector allocation table (DIFAT)
  43. >>>72 ulelong >0 \b, %u DIFAT sectors
  44. # First part of the master sector allocation table (DIFAT) containing 109 SecIDs
  45. #>>>76 ubequad x \b, DIFAT=%#16.16llx
  46. #>>>84 ubequad x \b%16.16llx...
  47. # pointer to root entry only works with standard configuration for SecID ~< 800h
  48. # Red-Carpet-presentation-1.0-1.sdd sg10.sdv 2000_GA_Annual_Review_Data.xls
  49. # "ORLEN Factbook 2017.xls" XnView_metadata.doc
  50. # "Barham, Lisa - Die Shopping-Prinzessinnen.doc" then not recognized
  51. >>>48 ulelong >0x800 too big for FILE_BYTES_MAX = 1 MiB
  52. # Sector Shift Exponent 9~512 for major version 3 or C~4096 for major version 4
  53. >>>0x1E uleshort 0xc \b, blocksize 4096
  54. # jump to one block (4096 bytes per block) before root storage block
  55. >>>>(48.l*4096) ubyte x
  56. >>>>>&4095 use ole2-directory
  57. #>>>0x1E uleshort 9 \b, blocksize 512
  58. >>>0x1E uleshort 9
  59. # jump to one block (512 bytes per block) before root storage block
  60. # in 5.37 only true for offset ~< FILE_BYTES_MAX=7 MiB defined in ../../src/file.h
  61. >>>>(48.l*512) ubyte x
  62. >>>>>&511 use ole2-directory
  63. # check directory entry structure and display types by GUID
  64. 0 name ole2-directory
  65. # directory entry name like "Root Entry"
  66. #>0 lestring16 x \b, 1st %.10s
  67. # type of the entry; 5~Root storage
  68. #>66 ubyte x \b, type %x
  69. # node colour of the entry: 00H ~ Red 01H ~ Black
  70. #>67 ubyte x \b, color %x
  71. # the DirIDs of the child nodes. Should both be -1 in the root storage entry
  72. #>68 bequad !0xffffffffffffffff \b, DirIDs %llx
  73. # NEXT lines for DEBUGGING
  74. # second directory entry name like VisioDocument Control000
  75. #>128 lestring16 x \b, 2nd %.20s
  76. # third directory entry like WordDocument
  77. #>256 lestring16 x \b, 3rd %.20s
  78. # forth
  79. #>384 lestring16 x \b, 4th %.10s
  80. # 5th
  81. #>512 lestring16 x \b, 5th %.10s
  82. # 6th
  83. #>640 lestring16 x \b, 6th %.10s
  84. # 7th
  85. #>768 lestring16 x \b, 7th %.10s
  86. # https://wikileaks.org/ciav7p1/cms/page_13762814.html
  87. # https://m.blog.naver.com/superman4u/40047693679
  88. # https://misc.daniel-marschall.de/projects/guid_analysis/guid.txt
  89. # https://toolslick.com/conversion/data/guid
  90. #>80 ubequad !0 \b, clsid %#16.16llx
  91. #>>88 ubequad x \b%16.16llx
  92. # test for "Root Entry" inside directory by type 5 value
  93. >66 ubyte 5
  94. # look for CLSID GUID 0
  95. >>88 ubequad 0x0
  96. >>>80 ubequad 0x0
  97. # - Microstation V8 DGN files (www.bentley.com)
  98. # URL: https://en.wikipedia.org/wiki/MicroStation
  99. # Last update on 10/23/2006 by Lester Hightower
  100. # 07/24/2019 by Joerg Jenderek
  101. # Second directory entry name like Dgn~H Dgn~S
  102. >>>>128 lestring16 Dgn~ : Microstation V8 CAD
  103. #!:mime application/x-ole-storage
  104. !:mime application/x-bentley-dgn
  105. # http://www.q-cad.com/files/samples_cad_files/1344468165.dgn
  106. !:ext dgn
  107. #
  108. # URL: http://fileformats.archiveteam.org/wiki/WordPerfect
  109. # Second directory entry name PerfectOffice_
  110. >>>>128 lestring16 PerfectOffice_ : WordPerfect 7-X3 presentations Master, Document or Graphic
  111. !:mime application/vnd.wordperfect
  112. # https://www.macdisk.com/macsigen.php "WPC2" for Wordperfect 2 *.wpd
  113. !:apple ????WPC7
  114. !:ext mst/wpd/wpg
  115. #
  116. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
  117. # Second directory entry name MatOST_
  118. >>>>128 lestring16 MatOST : Microsoft Works 3.0 document
  119. !:mime application/vnd.ms-works
  120. !:apple ????AWWP
  121. !:ext wps
  122. #
  123. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Spreadsheet
  124. # 3rd directory entry name WksSSWorkBook
  125. >>>>256 lestring16 WksSSWorkBook : Microsoft Works 6-9 spreadsheet
  126. !:mime application/vnd.ms-works
  127. !:apple ????AWSS
  128. !:ext xlr
  129. #
  130. # URL: http://fileformats.archiveteam.org/wiki/XLS
  131. # what is the difference to {00020820-0000-0000-c000-000000000046} ?
  132. # Second directory entry name Workbook
  133. >>>>128 lestring16 Workbook
  134. >>>>>256 lestring16 !WksSSWorkBook : Microsoft Excel 97-2003 worksheet 0 clsid
  135. !:mime application/vnd.ms-excel
  136. # https://www.macdisk.com/macsigen.php XLS5 for Excel 5
  137. !:apple ????XLS9
  138. !:ext xls
  139. #
  140. # URL: http://fileformats.archiveteam.org/wiki/PPT
  141. # Second directory entry name Object1 Object12 Object35
  142. >>>>128 lestring16 Object : Microsoft PowerPoint 4 presentation
  143. !:mime application/vnd.ms-powerpoint
  144. # https://www.macdisk.com/macsigen.php
  145. !:apple ????PPT3
  146. !:ext ppt
  147. #
  148. # URL: https://www.msoutlook.info/question/164
  149. # Second directory entry name __CollDataStm
  150. >>>>128 lestring16 __CollDataStm : Microsoft Outlook Send Receive Settings
  151. #!:mime application/vnd.ms-outlook
  152. !:mime application/x-ms-srs
  153. # %APPDATA%\Microsoft\Outlook\Outlook.srs
  154. !:ext srs
  155. #
  156. # URL: https://www.file-extensions.org/cag-file-extension
  157. # Second directory entry name Category
  158. >>>>128 lestring16 Category : Microsoft Clip Art Gallery
  159. #!:mime application/x-ole-storage
  160. !:mime application/x-ms-cag
  161. !:apple MScgCGdb
  162. !:ext cag/
  163. #
  164. # URL: https://www.filesuffix.com/de/extension/rra
  165. # 3rd directory entry name StrIndex_StringTable
  166. >>>>256 lestring16 StrIndex_StringTable : Windows temporarily installer
  167. #!:mime application/x-ole-storage
  168. !:mime application/x-ms-rra
  169. !:ext rra
  170. #
  171. # URL: https://www.forensicswiki.org/wiki/Jump_Lists
  172. # 3rd directory entry name DestList
  173. >>>>256 lestring16 DestList : Windows jump list
  174. #!:mime application/x-ole-storage
  175. !:mime application/x-ms-jumplist
  176. # %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*.automaticDestinations-ms
  177. !:ext automaticDestinations-ms
  178. #
  179. # URL: https://en.wikipedia.org/wiki/Windows_thumbnail_cache
  180. # Second directory entry name 256_
  181. >>>>128 lestring16 256_ : Windows thumbnail database 256
  182. #!:mime application/x-ole-storage
  183. !:mime application/x-ms-thumbnail
  184. # Thumbs.db
  185. !:ext db
  186. >>>>128 lestring16 96_ : Windows thumbnail database 96
  187. !:mime application/x-ms-thumbnail
  188. !:ext db
  189. # 3rd directory entry name Catalog_
  190. >>>>256 lestring16 Catalog : Windows thumbnail database
  191. !:mime application/x-ms-thumbnail
  192. !:ext db
  193. #
  194. # URL: https://support.microsoft.com/en-us/help/300887/how-to-use-system-information-msinfo32-command-line-tool-switches
  195. # Note: older Microsoft Systeminfo (MSInfo Configuration File of msinfo32); newer use xml based
  196. # Second directory entry name Control000
  197. >>>>128 lestring16 Control000 : Microsoft old Systeminfo
  198. #!:mime application/x-ole-storage
  199. !:mime application/x-ms-info
  200. !:ext nfo
  201. #
  202. # From: Joerg Jenderek
  203. # URL: https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns
  204. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/a/arn-autoruns-v14.trid.xml
  205. # Note: older versions til 13 about middle 2021 handled by ./windows
  206. # called "Sysinternals Autoruns data (v14)" by TrID
  207. # second, third and fourth directory entry name like Header Items 0
  208. >>>>128 lestring16 Header : Microsoft sysinternals AutoRuns data, version 14
  209. #!:mime application/x-ole-storage
  210. !:mime application/x-ms-arn
  211. # like: MyHOSTNAME.arn
  212. !:ext arn
  213. #
  214. # From: Joerg Jenderek
  215. # URL: https://en.wikipedia.org/wiki/Microsoft_Access
  216. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/m/mdz.trid.xml
  217. # http://fileformats.archiveteam.org/wiki/Microsoft_Compound_File
  218. # Note: only version foo tested and called "Microsoft Access Wizard template" by TrID
  219. # Fourth directory entry name TemplateID
  220. >>>>384 lestring16 TemplateID : Microsoft Access wizard template
  221. # Second directory entry name like \005SummaryInformation and 3rd name like \005DocumentSummaryInformation
  222. #!:mime application/x-ole-storage
  223. #!:mime application/vnd.ms-office
  224. #!:mime application/vnd.ms-access
  225. #!:mime application/msaccess
  226. !:mime application/x-ms-mdz
  227. # http://extension.nirsoft.net/mdz
  228. !:ext mdz
  229. #
  230. # URL: http://fileformats.archiveteam.org/wiki/Corel_Print_House
  231. # Second directory entry name Thumbnail
  232. >>>>128 lestring16 Thumbnail : Corel PrintHouse image
  233. #!:mime application/x-ole-storage
  234. !:mime application/x-corel-cph
  235. !:ext cph
  236. # 3rd directory entry name Thumbnail
  237. >>>>256 lestring16 Thumbnail : Corel PrintHouse image
  238. !:mime application/x-corel-cph
  239. !:ext cph
  240. # URL: http://fileformats.archiveteam.org/wiki/Corel_Gallery
  241. # Note: format since Gallery 2; sometimes called Corel Multimedia Manager Album
  242. # third directory entry name _INFO_
  243. >>>>256 lestring16 _INFO_ : Corel Gallery
  244. # second directory entry name _ITEM_ or _DATA_
  245. # later directory entry names: _ALBUM_ _THUMBNAIL_
  246. #!:mime application/x-ole-storage
  247. !:mime application/x-corel-gal
  248. !:ext gal
  249. #
  250. # From: Joerg Jenderek
  251. # URL: https://archive.org/details/iPhoto-Plus-4
  252. # https://filext.com/file-extension/TPL
  253. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/t/tpl-ulead.trid.xml
  254. # Note: found in Template sub directory in program directory of software iPhoto Plus version 4
  255. # second, third and fourth directory entry name like TplHeader TplMainImage TplPreview
  256. >>>>128 lestring16 TplHeader : Ulead iPhoto Template
  257. #!:mime application/x-ole-storage
  258. !:mime image/x-ulead-tpl
  259. # https://www.file-extensions.org/tpl-file-extension-ulead-photo-express-template
  260. !:ext tpl
  261. #
  262. # URL: https://en.wikipedia.org/wiki/Hangul_(word_processor)
  263. # Note: "HWP Document File" signature found in FileHeader
  264. # Second directory entry name FileHeader hint for Thinkfree Office document
  265. >>>>128 lestring16 FileHeader : Hangul (Korean) 5.0 Word Processor File
  266. #!:mime application/haansofthwp
  267. !:mime application/x-hwp
  268. # https://example-files.online-convert.com/document/hwp/example.hwp
  269. !:ext hwp
  270. #
  271. # URL: https://ask.libreoffice.org/en/question/26303/creating-new-themes-for-the-gallery-not-functioning/
  272. # Second directory entry name like dd2000 dd2001 dd2036 dd2060 dd2083
  273. >>>>128 lestring16 dd2 : StarOffice Gallery view
  274. #!:mime application/x-ole-storage
  275. !:mime application/x-star-sdv
  276. !:ext sdv
  277. # URL: https://en.wikipedia.org/wiki/SoftMaker_Office
  278. # second directory entry name Current User
  279. >>>>128 lestring16 Current\ User : SoftMaker
  280. # third directory entry name SMNativeObjData
  281. >>>>>256 lestring16 SMNativeObjData
  282. # 5th directory entry name PowerPoint
  283. >>>>>>512 lestring16 PowerPoint PowerPoint presentation or template
  284. !:mime application/vnd.ms-powerpoint
  285. !:ext ppt/pps/pot
  286. # 4th directory entry name PowerPoint
  287. >>>>>384 lestring16 PowerPoint Presentations or template
  288. # http://extension.nirsoft.net/prv
  289. !:mime application/vnd.softmaker.presentations
  290. !:ext prd/prv
  291. # third directory entry name like Current User
  292. >>>>256 lestring16 Current\ User : SoftMaker
  293. # 5th directory entry name PowerPoint
  294. >>>>>512 lestring16 PowerPoint Presentations or template
  295. # http://extension.nirsoft.net/prd
  296. !:mime application/vnd.softmaker.presentations
  297. !:ext prd/prv
  298. # 2nd directory entry name Pictures
  299. >>>>>>128 lestring16 Pictures with pictures
  300. #
  301. # URL: http://fileformats.archiveteam.org/wiki/PageMaker
  302. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/p
  303. # pagemaker-generic.trid.xml
  304. # pagemaker-pm6.trid.xml
  305. # pagemaker-pm65.trid.xml
  306. # pmd-pm7.trid.xml
  307. # From: Joerg Jenderek
  308. # Note: since version 6 embedd as stream with PageMaker name the "old" format handled by ./wordprocessors
  309. # verified by Michal Mutl Structured Storage Viewer `SSView.exe brochus.pt6`
  310. # Second directory entry name PageMaker
  311. >>>>128 lestring16 PageMaker :
  312. # look for magic of "old" PageMaker like in 02TEMPLT.T65
  313. >>>>>0 search/0xa900/s \0\0\0\0\0\0\xff\x99
  314. # GRR: jump to PageMaker stream and inspect it by sub routine PageMaker of ./wordprocessors failed with wrong version!
  315. #>>>>>>&0 use PageMaker
  316. # THIS WORKS PARTLY!
  317. >>>>>>&0 indirect x
  318. # remaining null clsid
  319. >>>>128 default x
  320. >>>>>0 use ole2-unknown
  321. # look for known clsid GUID
  322. # - Visio documents
  323. # URL: http://fileformats.archiveteam.org/wiki/Visio
  324. # Last update on 10/23/2006 by Lester Hightower, 07/20/2019 by Joerg Jenderek
  325. >>88 ubequad 0xc000000000000046
  326. >>>80 ubequad 0x131a020000000000 : Microsoft Visio 2000-2002 Document, stencil or template
  327. !:mime application/vnd.visio
  328. # VSD~Drawing VSS~Stencil VST~Template
  329. !:ext vsd/vss/vst
  330. >>>80 ubequad 0x141a020000000000 : Microsoft Visio 2003-2010 Document, stencil or template
  331. !:mime application/vnd.visio
  332. !:ext vsd/vss/vst
  333. #
  334. # URL: http://fileformats.archiveteam.org/wiki/Windows_Installer
  335. # https://en.wikipedia.org/wiki/Windows_Installer#ICE_validation
  336. # Update: Joerg Jenderek
  337. # Windows Installer Package *.MSI or validation module *.CUB
  338. >>>80 ubequad 0x84100c0000000000 : Microsoft Windows Installer Package or validation module
  339. !:mime application/x-msi
  340. #!:mime application/x-ms-win-installer
  341. # https://learn.microsoft.com/en-us/windows/win32/msi/internal-consistency-evaluators-ices
  342. # cub is used for validation module like: Vstalogo.cub XPlogo.cub darice.cub logo.cub mergemod.cub
  343. #!:mime application/x-ms-cub
  344. !:ext msi/cub
  345. >>>80 ubequad 0x86100c0000000000 : Microsoft Windows Installer Patch
  346. # ??
  347. !:mime application/x-wine-extension-msp
  348. #!:mime application/x-ms-msp
  349. !:ext msp
  350. #
  351. # URL: http://fileformats.archiveteam.org/wiki/DOC
  352. >>>80 ubequad 0x0009020000000000 : Microsoft Word 6-95 document or template
  353. !:mime application/msword
  354. # for template MSWDW8TN
  355. !:apple MSWDWDBN
  356. !:ext doc/dot
  357. >>>80 ubequad 0x0609020000000000 : Microsoft Word 97-2003 document or template
  358. !:mime application/msword
  359. !:apple MSWDWDBN
  360. # dot for template; no extension on Macintosh
  361. !:ext doc/dot/
  362. #
  363. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
  364. >>>80 ubequad 0x0213020000000000 : Microsoft Works 3-4 document or template
  365. !:mime application/vnd.ms-works
  366. !:apple ????AWWP
  367. # ps for template https://filext.com/file-extension/PS bps for backup
  368. !:ext wps/ps/bps
  369. #
  370. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Database
  371. >>>80 ubequad 0x0313020000000000 : Microsoft Works 3-4 database or template
  372. !:mime application/vnd.ms-works-db
  373. # https://www.macdisk.com/macsigen.php
  374. !:apple ????AWDB
  375. # db for template www.file-extensions.org/db-file-extension-microsoft-works-data bdb for backup
  376. !:ext wdb/db/bdb
  377. #
  378. # URL: https://en.wikipedia.org/wiki/Microsoft_Excel
  379. >>>80 ubequad 0x1008020000000000 : Microsoft Excel 5-95 worksheet, addin or template
  380. !:mime application/vnd.ms-excel
  381. # https://www.macdisk.com/macsigen.php
  382. !:apple ????XLS5
  383. # worksheet/addin/template/no extension on Macintosh
  384. !:ext xls/xla/xlt/
  385. #
  386. >>>80 ubequad 0x2008020000000000 : Microsoft Excel 97-2003
  387. !:mime application/vnd.ms-excel
  388. # https://www.macdisk.com/macsigen.php XLS5 for Excel 5
  389. !:apple ????XLS9
  390. # 3rd directory entry name
  391. >>>>256 lestring16 _VBA_PROJECT_CUR addin
  392. !:ext xla/
  393. # 4th directory entry name
  394. >>>>384 lestring16 _VBA_PROJECT_CUR addin
  395. !:ext xla
  396. #!:ext xla/
  397. >>>>256 default x worksheet or template
  398. !:ext xls/xlt
  399. #!:ext xls/xlt/
  400. #
  401. # URL: http://fileformats.archiveteam.org/wiki/OLE2
  402. >>>80 ubequad 0x0b0d020000000000 : Microsoft Outlook 97-2003 item
  403. #>>>80 ubequad 0x0b0d020000000000 : Microsoft Outlook 97-2003 Message
  404. #!:mime application/vnd.ms-outlook
  405. !:mime application/x-ms-msg
  406. !:ext msg
  407. # URL: https://wiki.fileformat.com/email/oft/
  408. >>>80 ubequad 0x46f0060000000000 : Microsoft Outlook 97-2003 item template
  409. #!:mime application/vnd.ms-outlook
  410. !:mime application/x-ms-oft
  411. !:ext oft
  412. #
  413. # URL: http://fileformats.archiveteam.org/wiki/PPT
  414. >>>80 ubequad 0x5148040000000000 : Microsoft PowerPoint 4.0 presentation
  415. !:mime application/vnd.ms-powerpoint
  416. # https://www.macdisk.com/macsigen.php
  417. !:apple ????PPT3
  418. !:ext ppt
  419. # Summary: "newer" Greenstreet Art drawing
  420. # From: Joerg Jenderek
  421. # URL: http://fileformats.archiveteam.org/wiki/GST_ART
  422. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/a/art-gst-docfile.trid.xml
  423. # Note: called like "Greenstreet Art drawing" by TrID
  424. # Note: CONTENT stream contains binary part of older versions with phrase GST:ART at offset 16
  425. # verified by Michal Mutl Structured Storage Viewer `SSView.exe BCARD2.ART`
  426. >>>80 ubequad 0x602c020000000000 : Greenstreet Art drawing
  427. #!:mime application/x-ole-storage
  428. !:mime image/x-greenstreet-art
  429. !:ext art
  430. >>>80 default x
  431. >>>>0 use ole2-unknown
  432. #??
  433. # URL: http://www.checkfilename.com/view-details/Microsoft-Works/RespageIndex/0/sTab/2/
  434. >>88 ubequad 0xa29a00aa004a1a72 : Microsoft
  435. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
  436. >>>80 ubequad 0xc2dbcd28e20ace11 Works 4 document
  437. !:mime application/vnd.ms-works
  438. !:apple ????AWWP
  439. !:ext wps
  440. #
  441. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Database
  442. >>>80 ubequad 0xc3dbcd28e20ace11 Works 4 database
  443. !:mime application/vnd.ms-works-db
  444. !:apple ????AWDB
  445. !:ext wdb/bdb
  446. #??
  447. >>88 ubequad 0xa40700c04fb932ba : Microsoft
  448. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
  449. >>>80 ubequad 0xb25aa40e0a9ed111 Works 5-6 document
  450. !:mime application/vnd.ms-works
  451. !:apple ????AWWP
  452. !:ext wps
  453. # From: Joerg Jenderek
  454. # URL: https://en.wikipedia.org/wiki/Microsoft_Works
  455. # Reference: http://fileformats.archiveteam.org/wiki/Microsoft_Compound_File
  456. # Note: probably version 6 and 7
  457. # organize pictures like JPFG images in streams __cf1 with names like
  458. # 001.JPG, 002.JPG ... in streams __fname
  459. >>88 ubequad 0xa1c800c04f612452 : Microsoft
  460. >>>80 ubequad 0xc0c7266eb98cd311 Works portfolio
  461. # 2nd directory entry name PfOrder, 3rd __LastID and 4th __SizeUsed
  462. #!:mime application/x-ole-storage
  463. # https://www.iana.org/assignments/media-types/application/vnd.ms-works
  464. !:mime application/vnd.ms-works
  465. # https://extension.nirsoft.net/wsb
  466. # like: wsbsamp.wsb WORKS2003_CD:\MSWorks\Common\Sammlung.wsb
  467. !:ext wsb
  468. #??
  469. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Publisher
  470. >>88 ubequad 0x00c0000000000046 : Microsoft
  471. >>>80 ubequad 0x0112020000000000 Publisher
  472. !:mime application/vnd.ms-publisher
  473. !:ext pub
  474. #
  475. # URL: http://fileformats.archiveteam.org/wiki/PPT
  476. #??
  477. >>88 ubequad 0xa90300aa00510ea3 : Microsoft
  478. >>>80 ubequad 0x70ae7bea3bfbcd11 PowerPoint 95 presentation
  479. !:mime application/vnd.ms-powerpoint
  480. # https://www.macdisk.com/macsigen.php
  481. !:apple ????PPT3
  482. !:ext ppt/pot
  483. #??
  484. >>88 ubequad 0x86ea00aa00b929e8 : Microsoft
  485. >>>80 ubequad 0x108d81649b4fcf11 PowerPoint 97-2003 presentation or template
  486. !:mime application/vnd.ms-powerpoint
  487. !:apple ????PPT3
  488. # /autostart/template
  489. !:ext ppt/pps/pot
  490. # From: Joerg Jenderek
  491. # URL: https://www.file-extensions.org/ppa-file-extension
  492. # https://en.wikipedia.org/wiki/Microsoft_PowerPoint#cite_note-231
  493. # Reference: http://fileformats.archiveteam.org/wiki/Microsoft_Compound_File
  494. >>88 ubequad 0x871800aa0060263b : Microsoft
  495. # only version 8 (97) tested; PowerPoint 4.0 to 11.0 (2004) (Wikipedia); 97 to 2003 (file-extensions.org)
  496. >>>80 ubequad 0xf04672810a72cf11 PowerPoint Addin or Wizard
  497. # second, third and fourth directory entry name like VBA PROJECT PROJECTwm
  498. # http://extension.nirsoft.net/pwz
  499. !:mime application/vnd.ms-powerpoint
  500. # like: BSHPPT97.PPA "AutoContent Wizard.pwz"
  501. !:ext ppa/pwz
  502. #
  503. # From: Joerg Jenderek
  504. # URL: http://fileformats.archiveteam.org/wiki/AWD_(At_Work_Document)
  505. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/a/awd-fax.trid.xml
  506. # Note: called "Microsoft At Work Fax document" by TrID
  507. >>88 ubequad 0xb29400dd010f2bf9 : Microsoft
  508. >>>80 ubequad 0x801cb0023de01a10 At Work fax Document
  509. #!:mime application/x-ole-storage
  510. !:mime image/x-ms-awd
  511. !:ext awd
  512. #
  513. # URL: https://en.wikipedia.org/wiki/Microsoft_Project
  514. #??
  515. >>88 ubequad 0xbe1100c04fb6faf1 : Microsoft
  516. >>>80 ubequad 0x3a8fb774c8c8d111 Project
  517. !:mime application/vnd.ms-project
  518. !:ext mpp
  519. # From: Joerg Jenderek
  520. # URL: https://en.wikipedia.org/wiki/Microsoft_Office_shared_tools#Binder
  521. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/o/obd.trid.xml
  522. # http://fileformats.archiveteam.org/wiki/Microsoft_Compound_File
  523. # Note: only version 8 tested and called "Office Binder Document" by TrID and
  524. # "Microsoft Office Binder File for Windows" version 97-2000 by DROID fmt/240
  525. >>88 ubequad 0xb21c00aa004ba90b : Microsoft
  526. >>>80 ubequad 0x0004855964661b10 Office Binder Document, Template or wizard
  527. # second directory entry name like Binder
  528. # https://www.file-extensions.org/obd-file-extension
  529. #!:mime application/vnd.ms-binder
  530. !:mime application/x-msbinder
  531. # obt for template; obz for Microsoft Office Binder wizard
  532. !:ext obd/obt/obz
  533. #
  534. # URL: http://fileformats.archiveteam.org/wiki/WordPerfect
  535. # Reference: http://fileformats.archiveteam.org/wiki/Microsoft_Compound_File
  536. # https://github.com/OneWingedShark/WordPerfect/
  537. # blob/master/doc/SDK_Help/FileFormats/WPFF_DocumentStructure.htm
  538. # From: Joerg Jenderek
  539. # Note: internal version x.2 or 2.2 like in embedded ole6-PerfectOffice_MAIN.wpd
  540. # 3rd directory entry name PerfectOffice_OBJECT and 2nd PerfectOffice_MAIN,
  541. # which contains WordPerfect document \xffWPC signature handled by ./wordprocessors
  542. >>88 ubequad 0x19370000929679cd : WordPerfect 7
  543. >>>80 ubequad 0xff739851ad2d2002 Document
  544. !:mime application/vnd.wordperfect
  545. #!:apple ????WPC?
  546. # https://fossies.org/linux/wp2latex/test/ole6.wpd
  547. !:ext wpd
  548. #>>>>0 search/0xc01/s \xffWPC \b, WPC SIGNATURE
  549. # inspect embedded WordPerfect document by ./wordprocessors with 1 space at end
  550. #>>>>>&0 indirect x \b; contains
  551. # GRR: the above expression does not work correctly
  552. #
  553. # URL: http://fileformats.archiveteam.org/wiki/SHW_(Corel)
  554. #???
  555. >>88 ubequad 0x99ae04021c007002 : WordPerfect
  556. >>>80 ubequad 0x62fe2e4099191b10 7-X3 presentation
  557. !:mime application/x-corelpresentations
  558. #!:mime application/x-shw-viewer
  559. #!:mime image/x-presentations
  560. !:ext shw
  561. #
  562. # URL: http://www.checkfilename.com/view-details/WordPerfect-Office-X3/RespageIndex/0/sTab/2/
  563. >>>80 ubequad 0x60fe2e4099191b10 9 Graphic
  564. #!:mime application/x-wpg
  565. #!:mime image/x-wordperfect-graphics
  566. !:mime image/x-wpg
  567. # https://www.macdisk.com/macsigen.php "WPC2" for Wordperfect 2 *.wpd
  568. !:apple ????WPC9
  569. !:ext wpg
  570. #
  571. # URL: http://fileformats.archiveteam.org/wiki/StarOffice_binary_formats
  572. >>88 ubequad 0x996104021c007002 : StarOffice
  573. >>>80 ubequad 0x407e5cdc5cb31b10 StarWriter 3.0 document or template
  574. # https://www.openoffice.org/framework/documentation/mimetypes/mimetypes.html
  575. !:mime application/x-starwriter
  576. !:ext sdw/vor
  577. #
  578. >>>80 ubequad 0xa03f543fa6b61b10 StarCalc 3.0 spreadsheet or template
  579. !:mime application/x-starcalc
  580. !:ext sdc/vor
  581. #
  582. >>>80 ubequad 0xe0aa10af6db31b10 StarDraw 3.0 drawing or template
  583. !:mime application/x-starimpress
  584. #!:mime application/x-stardraw
  585. # sda ??
  586. !:ext sdd/sda/vor
  587. #??
  588. >>88 ubequad 0x89cb008029e4b0b1 : StarOffice
  589. >>>80 ubequad 0x41d461633542d011 StarCalc 4.0 spreadsheet or template
  590. !:mime application/x-starcalc
  591. !:ext sdc/vor
  592. #
  593. >>>80 ubequad 0x61b8a5c6d685d111 StarCalc 5.0 spreadsheet or template
  594. !:mime application/vnd.stardivision.cal
  595. !:ext sdc/vor
  596. #
  597. >>>80 ubequad 0xc03c2d011642d011 StarImpress 4.0 presentation or template
  598. !:mime application/x-starimpress
  599. !:ext sdd/vor
  600. #??
  601. >>88 ubequad 0xb12a04021c007002 : StarOffice
  602. >>>80 ubequad 0x600459d4fd351c10 StarMath 3.0
  603. !:mime application/x-starmath
  604. !:ext smf
  605. #??
  606. >>88 ubequad 0x8e2c00001b4cc711 : StarOffice
  607. >>>80 ubequad 0xe0999cfb6d2c1c10 StarChart 3.0
  608. !:mime application/x-starchart
  609. !:ext sds
  610. #??
  611. >>88 ubequad 0xa45e00a0249d57b1 : StarOffice
  612. >>>80 ubequad 0xb0e9048b0e42d011 StarWriter 4.0 document or template
  613. !:mime application/x-starwriter
  614. !:ext sdw/vor
  615. #??
  616. >>88 ubequad 0x89ca008029e4b0b1 : StarOffice
  617. >>>80 ubequad 0xe1b7b3022542d011 StarMath 4.0
  618. !:mime application/x-starmath
  619. !:ext smf
  620. #
  621. >>>80 ubequad 0xe0b7b3022542d011 StarChart 4.0
  622. !:mime application/x-starchart
  623. !:ext sds
  624. #??
  625. >>88 ubequad 0xa53f00a0249d57b1 : StarOffice
  626. >>>80 ubequad 0x70c90a340de3d011 Master 4.0 document
  627. !:mime application/x-starwriter-global
  628. !:ext sgl
  629. #??
  630. >>88 ubequad 0x89d0008029e4b0b1 : StarOffice
  631. >>>80 ubequad 0x40e6b5ffde85d111 StarMath 5.0
  632. !:mime application/vnd.stardivision.math
  633. !:ext smf
  634. #
  635. >>>80 ubequad 0xa005892ebd85d111 StarDraw 5.0 drawing or template
  636. !:mime application/vnd.stardivision.draw
  637. !:ext sda/vor
  638. #
  639. >>>80 ubequad 0x21725c56bc85d111 StarImpress 5.0 presentation or template
  640. !:mime application/vnd.stardivision.impress
  641. # sda is used for what?
  642. !:ext sdd/vor/sda
  643. #
  644. >>>80 ubequad 0x214388bfdd85d111 StarChart 5.0
  645. !:mime application/vnd.stardivision.chart
  646. !:ext sds
  647. # ??
  648. >>88 ubequad 0xaab4006097da561a : StarOffice
  649. >>>80 ubequad 0xd1f90cc2ae85d111 StarWriter 5.0 document or template
  650. !:mime application/vnd.stardivision.writer
  651. !:ext sdw/vor
  652. #
  653. >>>80 ubequad 0xd3f90cc2ae85d111 Master 5.0 document
  654. !:mime application/vnd.stardivision.writer-global
  655. !:ext sgl
  656. #??
  657. # URL: http://fileformats.archiveteam.org/wiki/FlashPix
  658. >>88 ubequad 0x855300aa00a1f95b : Kodak
  659. >>>80 ubequad 0x0067615654c1ce11 FlashPIX Image
  660. !:mime image/vnd.fpx
  661. !:apple ????FPix
  662. !:ext fpx
  663. # URL: https://en.wikipedia.org/wiki/SoftMaker_Office
  664. >>88 ubequad 0x95f600a0cc3cca14 : PlanMaker
  665. >>>80 ubequad 0x9174088a6452d411 document or template
  666. !:mime application/vnd.softmaker.planmaker
  667. # pmv for template https://www.file-extensions.org/pmv-file-extension
  668. !:ext pmd/pmv
  669. # URL: http://fileformats.archiveteam.org/wiki/MAX_(3ds_Max)
  670. # https://en.wikipedia.org/wiki/Autodesk_3ds_Max
  671. # Reference: http://fileformats.archiveteam.org/wiki/Microsoft_Compound_File
  672. # Note: called "3D Studio Max Scene" by TrID and "3DS Max" by DROID and
  673. # "3DSMax thumbnail" by XnView and verfied by `nconvert -info A380.max`
  674. # applies only to "newer" versions (about 2008-2020)
  675. >>88 ubequad 0x9fed04143144cc1e : Autodesk
  676. >>>80 ubequad 0x7b8cdd1cc081a045 3ds Max
  677. #!:mime application/x-ole-storage
  678. !:mime model/x-autodesk-max
  679. # like: https://static.free3d.com/models/dropbox/dropbox/sq/A380.7z/A380.max
  680. !:ext max
  681. # also chr for character file according to DROID https://www.nationalarchives.gov.uk/PRONOM/fmt/978
  682. #!:ext max/chr
  683. # remaining non null clsid
  684. >>88 default x
  685. >>>0 use ole2-unknown
  686. # display information about directory for not detected CDF files
  687. 0 name ole2-unknown
  688. >80 ubequad x : UNKNOWN
  689. # https://reposcope.com/mimetype/application/x-ole-storage
  690. !:mime application/x-ole-storage
  691. # according to file version 5.41 with -e soft option
  692. #!:mime application/CDFV2
  693. #!:ext ???
  694. >80 ubequad !0 \b, clsid %#16.16llx
  695. >>88 ubequad x \b%16.16llx
  696. # converted hexadecimal format to standard GUUID notation
  697. >>80 guid x {%s}
  698. # second directory entry name like VisioDocument Control000
  699. >128 lestring16 x with names %.20s
  700. # third directory entry like WordDocument Preview.dib
  701. >256 lestring16 x %.20s
  702. # forth like \005SummaryInformation
  703. >384 lestring16 x %.25s
  704. # 5th
  705. >512 lestring16 x %.10s
  706. # 6th
  707. >640 lestring16 x %.10s
  708. # 7th
  709. >768 lestring16 x %.10s