misctools 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #-----------------------------------------------------------------------------
  2. # $File: misctools,v 1.20 2021/05/25 15:13:55 christos Exp $
  3. # misctools: file(1) magic for miscellaneous UNIX tools.
  4. #
  5. 0 search/1 %%!! X-Post-It-Note text
  6. 0 string/c BEGIN:VCALENDAR vCalendar calendar file
  7. !:mime text/calendar
  8. # updated by Joerg Jenderek at Apr 2015, May 2021
  9. # https://en.wikipedia.org/wiki/VCard
  10. # URL: http://fileformats.archiveteam.org/wiki/VCard
  11. # https://datatracker.ietf.org/doc/html/rfc6350
  12. # the value is case-insensitive
  13. 0 string/c begin:vcard
  14. # skip DROID fmt-395-signature-id-634.vcf
  15. >13 string !VERSION:END vCard visiting card
  16. # deprecated
  17. #!:mime text/x-vcard
  18. !:mime text/vcard
  19. !:apple ????vCrd
  20. !:ext vcf/vcard
  21. # VERSION must come right after BEGIN for 3.0 or 4.0 except in 2.1 , where it can be anywhere
  22. # Joerg_Jenderek_67.vcf
  23. >>12 search/0x113b4/c version:
  24. # VERSION 2.1 , 3.0 or 4.0
  25. >>>&0 string x \b, version %-.3s
  26. >>>&0 string !2.1
  27. >>>>13 string !VERSION: \b, 2nd line does not start with VERSION:
  28. # downcase violates RFC 6350, but some "bad" software produce such vcards
  29. >>0 string !BEGIN \b, not up case
  30. # http://ftp.mozilla.org/pub/thunderbird/candidates/
  31. # 78.10.1-candidates/build1/source/thunderbird-78.10.1.source.tar.xz
  32. # thunderbird-78.10.1/comm/mailnews/import/test/unit/resources/basic_vcard_addressbook.vcf
  33. >>11 beshort !0x0D0A \b, lines not separated by CRLF
  34. # Summary: Libtool library file
  35. # Extension: .la
  36. # Submitted by: Tomasz Trojanowski <tomek@uninet.com.pl>
  37. 0 search/80 .la\ -\ a\ libtool\ library\ file libtool library file
  38. # Summary: Libtool object file
  39. # Extension: .lo
  40. # Submitted by: Abel Cheung <abelcheung@gmail.com>
  41. 0 search/80 .lo\ -\ a\ libtool\ object\ file libtool object file
  42. # From: Daniel Novotny <dnovotny@redhat.com>
  43. # Update: Joerg Jenderek
  44. # URL: https://en.wikipedia.org/wiki/Core_dump#User-mode_memory_dumps
  45. # Reference: https://msdn.microsoft.com/en-us/library/ms680378%28VS.85%29.aspx
  46. #
  47. # "Windows Minidump" by TrID
  48. # ./misctools (version 5.25) labeled the entry as "MDMP crash report data"
  49. 0 string MDMP Mini DuMP crash report
  50. # https://filext.com/file-extension/DMP
  51. !:mime application/x-dmp
  52. !:ext dmp/mdmp
  53. # The high-order word is an internal value that is implementation specific.
  54. # The low-order word is MINIDUMP_VERSION 0xA793
  55. >4 ulelong&0x0000FFFF !0xA793 \b, version %#4.4x
  56. # NumberOfStreams 8,9,10,13
  57. >8 ulelong x \b, %d streams
  58. # StreamDirectoryRva 0x20
  59. >12 ulelong !0x20 \b, %#8.8x RVA
  60. # CheckSum 0
  61. >16 ulelong !0 \b, CheckSum %#8.8x
  62. # Reserved or TimeDateStamp
  63. >20 ledate x \b, %s
  64. # https://msdn.microsoft.com/en-us/library/windows/desktop/ms680519%28v=vs.85%29.aspx
  65. # Flags MINIDUMP_TYPE enumeration type 0 0x121 0x800
  66. >24 ulelong x \b, %#x type
  67. # >24 ulelong >0 \b; include
  68. # >>24 ulelong &0x00000001 \b data sections,
  69. # >>24 ulelong &0x00000020 \b list of unloaded modules,
  70. # >>24 ulelong &0x00000100 \b process and thread information,
  71. # >>24 ulelong &0x00000800 \b memory information,
  72. # Summary: abook addressbook file
  73. # Submitted by: Mark Schreiber <mark7@alumni.cmu.edu>
  74. 0 string #\x20abook\x20addressbook\x20file abook address book
  75. !:mime application/x-abook-addressbook