source: client/nfsexport/bin/testing/magic.mime @ 71825d1

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 71825d1 was cc728fe, checked in by adv <adv@…>, 15 years ago

nuevas herramientas para bin/testing

git-svn-id: https://opengnsys.es/svn/trunk@763 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 34.0 KB
Line 
1# Magic data for KMimeMagic (originally for file(1) command)
2#
3# Note on adding additional MIME types:
4#
5# [RFC2045,RFC2046] specifies that Content Types, Content Subtypes, Character
6# Sets, Access Types, and conversion values for MIME mail will be assigned and
7# listed by the IANA.
8# http://www.iana.org/assignments/media-types/
9#
10# Any unregistered file type should be listed with a preceding x-, as in
11# application/x-foo (RFC2045 5.1), or a x., as in application/x.foo (RFC4288
12# 4.3).  Any non x-prefixed type should be registered with IANA and listed at
13# the above address.  Any other behavior is a MIME standards violation!
14#
15# It is preferred that when a registered MIME type exists, that
16# the registered Content-Type and Subtype be used to refer to a file of
17# that type, so don't use application/x-zip when application/zip is
18# registered.
19#
20# If an active RFC suggests that a MIME registration for a new type is in
21# progress, make a note of it pointing to that RFC.
22#
23# The format is 4-5 columns:
24#    Column #1: byte number to begin checking from, ">" indicates continuation
25#    Column #2: type of data to match
26#    Column #3: contents of data to match
27#    Column #4: MIME type of result
28#    Column #5: MIME encoding of result (optional)
29
30#------------------------------------------------------------------------------
31# Localstuff:  file(1) magic for locally observed files
32# Add any locally observed files here.
33
34# Real Audio (Magic .ra\0375)
350       belong          0x2e7261fd      audio/x-pn-realaudio
360       string          .RMF            application/vnd.rn-realmedia
37
38#video/x-pn-realvideo
39#video/vnd.rn-realvideo
40#application/vnd.rn-realmedia
41#       sigh, there are many mimes for that but the above are the most common.
42
43# Taken from magic, converted to magic.mime
44# mime types according to http://www.geocities.com/nevilo/mod.htm:
45#       audio/it        .it
46#       audio/x-zipped-it       .itz
47#       audio/xm        fasttracker modules
48#       audio/x-s3m     screamtracker modules
49#       audio/s3m       screamtracker modules
50#       audio/x-zipped-mod      mdz
51#       audio/mod       mod
52#       audio/x-mod     All modules (mod, s3m, 669, mtm, med, xm, it, mdz, stm, itz, xmz, s3z)
53
54# Taken from loader code from mikmod version 2.14
55# by Steve McIntyre (stevem@chiark.greenend.org.uk)
56# <doj@cubic.org> added title printing on 2003-06-24
570       string  MAS_UTrack_V00
58>14     string  >/0             audio/x-mod
59#audio/x-tracker-module
60
61#0      string  UN05            MikMod UNI format module sound data
62
630       string  Extended\ Module: audio/x-mod
64#audio/x-tracker-module
65##>17   string  >\0             Title: "%s"
66
6721      string/c        \!SCREAM!       audio/x-mod
68#audio/x-screamtracker-module
6921      string  BMOD2STM        audio/x-mod
70#audio/x-screamtracker-module
711080    string  M.K.            audio/x-mod
72#audio/x-protracker-module
73#>0     string  >\0             Title: "%s"
741080    string  M!K!            audio/x-mod
75#audio/x-protracker-module
76#>0     string  >\0             Title: "%s"
771080    string  FLT4            audio/x-mod
78#audio/x-startracker-module
79#>0     string  >\0             Title: "%s"
801080    string  FLT8            audio/x-mod
81#audio/x-startracker-module
82#>0     string  >\0             Title: "%s"
831080    string  4CHN            audio/x-mod
84#audio/x-fasttracker-module
85#>0     string  >\0             Title: "%s"
861080    string  6CHN            audio/x-mod
87#audio/x-fasttracker-module
88#>0     string  >\0             Title: "%s"
891080    string  8CHN            audio/x-mod
90#audio/x-fasttracker-module
91#>0     string  >\0             Title: "%s"
921080    string  CD81            audio/x-mod
93#audio/x-oktalyzer-tracker-module
94#>0     string  >\0             Title: "%s"
951080    string  OKTA            audio/x-mod
96#audio/x-oktalyzer-tracker-module
97#>0     string  >\0             Title: "%s"
98# Not good enough.
99#1082   string  CH
100#>1080  string  >/0             %.2s-channel Fasttracker "oktalyzer" module sound data
1011080    string  16CN            audio/x-mod
102#audio/x-taketracker-module
103#>0     string  >\0             Title: "%s"
1041080    string  32CN            audio/x-mod
105#audio/x-taketracker-module
106#>0     string  >\0             Title: "%s"
107
108# Impuse tracker module (it)
1090       string          IMPM            audio/x-mod
110#>4     string          >\0             "%s"
111#>40    leshort         !0              compatible w/ITv%x
112#>42    leshort         !0              created w/ITv%x
113
114#------------------------------------------------------------------------------
115# end local stuff
116#------------------------------------------------------------------------------
117
118# xml based formats!
119
120# svg
121
12238      string          \<\!DOCTYPE\040svg      image/svg+xml
123
1240       belong          0xfeedfeed      application/x-java-keystore
125
1260       belong          0xcececece      application/x-java-jce-keystore
127
128
129# xml
1300       string          \<?xml                  text/xml
131
132
133#------------------------------------------------------------------------------
134# Java
135
1360       beshort         0xcafe
137>2      beshort         0xbabe          application/x-java-applet
138>2      beshort         0xd00d          application/x-java-pack200
139
140#------------------------------------------------------------------------------
141# audio:  file(1) magic for sound formats
142#
143# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
144#
145
146# Sun/NeXT audio data
1470       string          .snd
148>12     belong          1               audio/basic
149>12     belong          2               audio/basic
150>12     belong          3               audio/basic
151>12     belong          4               audio/basic
152>12     belong          5               audio/basic
153>12     belong          6               audio/basic
154>12     belong          7               audio/basic
155
156>12     belong          23              audio/x-adpcm
157
158# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
159# that uses little-endian encoding and has a different magic number
160# (0x0064732E in little-endian encoding).
1610       lelong          0x0064732E
162>12     lelong          1               audio/x-dec-basic
163>12     lelong          2               audio/x-dec-basic
164>12     lelong          3               audio/x-dec-basic
165>12     lelong          4               audio/x-dec-basic
166>12     lelong          5               audio/x-dec-basic
167>12     lelong          6               audio/x-dec-basic
168>12     lelong          7               audio/x-dec-basic
169#                                       compressed (G.721 ADPCM)
170>12     lelong          23              audio/x-dec-adpcm
171
172# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
173#                                       AIFF audio data
1748       string          AIFF            audio/x-aiff
175#                                       AIFF-C audio data
1768       string          AIFC            audio/x-aiff
177#                                       IFF/8SVX audio data
1788       string          8SVX            audio/x-aiff
179
180
181
182# Creative Labs AUDIO stuff
183#                                       Standard MIDI data
1840       string  MThd                    audio/x-midi
185#>9     byte    >0                      (format %d)
186#>11    byte    >1                      using %d channels
1870       string  MThd                    audio/midi
188#                                       Creative Music (CMF) data
1890       string  CTMF                    audio/x-unknown
190#                                       SoundBlaster instrument data
1910       string  SBI                     audio/x-unknown
192#                                       Creative Labs voice data
1930       string  Creative\ Voice\ File   audio/x-unknown
194## is this next line right?  it came this way...
195#>19    byte    0x1A
196#>23    byte    >0                      - version %d
197#>22    byte    >0                      \b.%d
198
199# [GRR 950115:  is this also Creative Labs?  Guessing that first line
200#  should be string instead of unknown-endian long...]
201#0      long            0x4e54524b      MultiTrack sound data
202#0      string          NTRK            MultiTrack sound data
203#>4     long            x               - version %ld
204
205# Microsoft WAVE format (*.wav)
206# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
207#                                       Microsoft RIFF
2080       string          RIFF
209#                                       - WAVE format
210>8      string          WAVE            audio/x-wav
211>8      string/B        AVI             video/x-msvideo
212#
213>8      string          CDRA            image/x-coreldraw
214
215# AAC (aka MPEG-2 NBC)
2160       beshort&0xfff6    0xfff0          audio/X-HX-AAC-ADTS
2170       string          ADIF            audio/X-HX-AAC-ADIF
2180       beshort&0xffe0  0x56e0          audio/MP4A-LATM
2190       beshort         0x4De1          audio/MP4A-LATM
220
221# MPEG Layer 3 sound files
222# modified by Joerg Jenderek
223# GRR the original test are too common for many DOS files
224# so test 1 <= kbits nibble <= E
2250       beshort         &0xffe0         
226>2      ubyte&0xF0      >0x0F           
227>>2     ubyte&0xF0      <0xE1           audio/mpeg
228#MP3 with ID3 tag
2290       string          ID3             audio/mpeg
230# Ogg/Vorbis
2310       string          OggS            application/ogg
232
233#------------------------------------------------------------------------------
234# c-lang:  file(1) magic for C programs or various scripts
235#
236
237# XPM icons (Greg Roelofs, newt@uchicago.edu)
238# ideally should go into "images", but entries below would tag XPM as C source
2390       string          /*\ XPM         image/x-xpmi
240
241# 3DS (3d Studio files) Conflicts with diff output 0x3d '='
242#16     beshort         0x3d3d          image/x-3ds
243
244# this first will upset you if you're a PL/1 shop... (are there any left?)
245# in which case rm it; ascmagic will catch real C programs
246#                                       C or REXX program text
247#0      string          /*              text/x-c
248#                                       C++ program text
249#0      string          //              text/x-c++
250
251#------------------------------------------------------------------------------
252# commands:  file(1) magic for various shells and interpreters
253#
254#0       string          :\ shell archive or commands for antique kernel text
2550       string          #!/bin/sh               application/x-shellscript
2560       string          #!\ /bin/sh             application/x-shellscript
2570       string          #!/bin/csh              application/x-shellscript
2580       string          #!\ /bin/csh            application/x-shellscript
259# korn shell magic, sent by George Wu, gwu@clyde.att.com
2600       string          #!/bin/ksh              application/x-shellscript
2610       string          #!\ /bin/ksh            application/x-shellscript
2620       string          #!/bin/tcsh             application/x-shellscript
2630       string          #!\ /bin/tcsh           application/x-shellscript
2640       string          #!/usr/local/tcsh       application/x-shellscript
2650       string          #!\ /usr/local/tcsh     application/x-shellscript
2660       string          #!/usr/local/bin/tcsh   application/x-shellscript
2670       string          #!\ /usr/local/bin/tcsh application/x-shellscript
268# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
2690       string          #!/bin/bash                     application/x-shellscript
2700       string          #!\ /bin/bash           application/x-shellscript
2710       string          #!/usr/local/bin/bash   application/x-shellscript
2720       string          #!\ /usr/local/bin/bash application/x-shellscript
273
274#
275# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
2760       string          #!/bin/zsh              application/x-shellscript
2770       string          #!/usr/bin/zsh          application/x-shellscript
2780       string          #!/usr/local/bin/zsh    application/x-shellscript
2790       string          #!\ /usr/local/bin/zsh  application/x-shellscript
2800       string          #!/usr/local/bin/ash    application/x-shellscript
2810       string          #!\ /usr/local/bin/ash  application/x-shellscript
282#0       string          #!/usr/local/bin/ae     Neil Brown's ae
283#0       string          #!\ /usr/local/bin/ae   Neil Brown's ae
2840       string          #!/bin/nawk             application/x-nawk
2850       string          #!\ /bin/nawk           application/x-nawk
2860       string          #!/usr/bin/nawk         application/x-nawk
2870       string          #!\ /usr/bin/nawk       application/x-nawk
2880       string          #!/usr/local/bin/nawk   application/x-nawk
2890       string          #!\ /usr/local/bin/nawk application/x-nawk
2900       string          #!/bin/gawk             application/x-gawk
2910       string          #!\ /bin/gawk           application/x-gawk
2920       string          #!/usr/bin/gawk         application/x-gawk
2930       string          #!\ /usr/bin/gawk       application/x-gawk
2940       string          #!/usr/local/bin/gawk   application/x-gawk
2950       string          #!\ /usr/local/bin/gawk application/x-gawk
296#
2970       string          #!/bin/awk              application/x-awk
2980       string          #!\ /bin/awk            application/x-awk
2990       string          #!/usr/bin/awk          application/x-awk
3000       string          #!\ /usr/bin/awk        application/x-awk
301# update to distinguish from *.vcf files by Joerg Jenderek: joerg dot jenderek at web dot de
302# Too general, \EBEGIN matches in postscript
303#0      regex           BEGIN[[:space:]]*[{]    application/x-awk
304
305# For Larry Wall's perl language.  The ``eval'' line recognizes an
306# outrageously clever hack for USG systems.
307#                               Keith Waclena <keith@cerberus.uchicago.edu>
3080       string          #!/bin/perl                     application/x-perl
3090       string          #!\ /bin/perl                   application/x-perl
3100       string          eval\ "exec\ /bin/perl          application/x-perl
3110       string          #!/usr/bin/perl                 application/x-perl
3120       string          #!\ /usr/bin/perl               application/x-perl
3130       string          eval\ "exec\ /usr/bin/perl      application/x-perl
3140       string          #!/usr/local/bin/perl           application/x-perl
3150       string          #!\ /usr/local/bin/perl         application/x-perl
3160       string          eval\ "exec\ /usr/local/bin/perl application/x-perl
317
318# Type: Lua scripting language
319# URL:  http://www.lua.org/
320# From: Reuben Thomas <rrt@sc3d.org>
3210       string/B        #!\ /usr/bin/lua        application/x-lua
3220       string/B        #!\ /usr/local/bin/lua  application/x-lua
3230       string          #!/usr/bin/env\ lua     application/x-lua
3240       string          #!\ /usr/bin/env\ lua   application/x-lua
325
326#------------------------------------------------------------------------------
327# compress:  file(1) magic for pure-compression formats (no archives)
328#
329# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
330#
331# Formats for various forms of compressed data
332# Formats for "compress" proper have been moved into "compress.c",
333# because it tries to uncompress it to figure out what's inside.
334
335# standard unix compress
336#0      string          \037\235        application/x-compress
337
338# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
3390       string          \037\213        application/x-gzip
340
3410               string                  PK\003\004              application/zip
342
343# RAR archiver (Greg Roelofs, newt@uchicago.edu)
3440       string          Rar!            application/x-rar
345
346# According to gzip.h, this is the correct byte order for packed data.
3470       string          \037\036        application/octet-stream
348#
349# This magic number is byte-order-independent.
350#
3510       short           017437          application/octet-stream
352
353# XXX - why *two* entries for "compacted data", one of which is
354# byte-order independent, and one of which is byte-order dependent?
355#
356# compacted data
3570       short           0x1fff          application/octet-stream
3580       string          \377\037        application/octet-stream
359# huf output
3600       short           0145405         application/octet-stream
361
362# Squeeze and Crunch...
363# These numbers were gleaned from the Unix versions of the programs to
364# handle these formats.  Note that I can only uncrunch, not crunch, and
365# I didn't have a crunched file handy, so the crunch number is untested.
366#                               Keith Waclena <keith@cerberus.uchicago.edu>
367#0      leshort         0x76FF          squeezed data (CP/M, DOS)
368#0      leshort         0x76FE          crunched data (CP/M, DOS)
369
370# Freeze
371#0      string          \037\237        Frozen file 2.1
372#0      string          \037\236        Frozen file 1.0 (or gzip 0.5)
373
374# lzh?
375#0      string          \037\240        LZH compressed data
376
377257     string          ustar\0         application/x-tar       posix
378257     string          ustar\040\040\0         application/x-tar       gnu
379
3800       short           070707          application/x-cpio
3810       short           0143561         application/x-cpio      swapped
382
3830       string          =<ar>           application/x-archive
3840       string          \!<arch>        application/x-archive
385>8      string          debian          application/x-debian-package
386
387#------------------------------------------------------------------------------
388#
389# RPM: file(1) magic for Red Hat Packages   Erik Troan (ewt@redhat.com)
390#
3910       beshort         0xedab
392>2      beshort         0xeedb          application/x-rpm
393
3940       lelong&0x8080ffff       0x0000081a      application/x-arc       lzw
3950       lelong&0x8080ffff       0x0000091a      application/x-arc       squashed
3960       lelong&0x8080ffff       0x0000021a      application/x-arc       uncompressed
3970       lelong&0x8080ffff       0x0000031a      application/x-arc       packed
3980       lelong&0x8080ffff       0x0000041a      application/x-arc       squeezed
3990       lelong&0x8080ffff       0x0000061a      application/x-arc       crunched
400
4010       leshort 0xea60  application/x-arj
402
403# LHARC/LHA archiver (Greg Roelofs, newt@uchicago.edu)
4042       string  -lh0-   application/x-lharc     lh0
4052       string  -lh1-   application/x-lharc     lh1
4062       string  -lz4-   application/x-lharc     lz4
4072       string  -lz5-   application/x-lharc     lz5
408#       [never seen any but the last; -lh4- reported in comp.compression:]
4092       string  -lzs-   application/x-lha       lzs
4102       string  -lh\ -  application/x-lha       lh
4112       string  -lhd-   application/x-lha       lhd
4122       string  -lh2-   application/x-lha       lh2
4132       string  -lh3-   application/x-lha       lh3
4142       string  -lh4-   application/x-lha       lh4
4152       string  -lh5-   application/x-lha       lh5
4162       string  -lh6-   application/x-lha       lh6
4172       string  -lh7-   application/x-lha       lh7
418# Shell archives
41910      string  #\ This\ is\ a\ shell\ archive  application/octet-stream        x-shell
420
421#------------------------------------------------------------------------------
422# frame:  file(1) magic for FrameMaker files
423#
424# This stuff came on a FrameMaker demo tape, most of which is
425# copyright, but this file is "published" as witness the following:
426#
427# Note that this is the Framemaker Maker Interchange Format, not the
428# Normal format which would be application/vnd.framemaker.
429#
4300       string          \<MakerFile     application/x-mif
4310       string          \<MIFFile       application/x-mif
4320       string          \<MakerDictionary       application/x-mif
4330       string          \<MakerScreenFon        application/x-mif
4340       string          \<MML           application/x-mif
4350       string          \<Book          application/x-mif
4360       string          \<Maker         application/x-mif
437
438#------------------------------------------------------------------------------
439# html:  file(1) magic for HTML (HyperText Markup Language) docs
440#
441# from Michael Piefel <piefel@debian.org>
442#
4430       string/cB       \<!DOCTYPE\ html        text/html
4440       string/cb       \<head                  text/html
4450       string/cb       \<title                 text/html
4460       string/bc       \<html                  text/html
4470       string          \<!--                   text/html
4480       string/c        \<h1                    text/html
449
450#------------------------------------------------------------------------------
451# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
452#
453# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
454# additions by janl@ifi.uio.no as well as others. Jan also suggested
455# merging several one- and two-line files into here.
456#
457# XXX - byte order for GIF and TIFF fields?
458# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
459#
460
461# [GRR:  what the hell is this doing in here?]
462#0      string          xbtoa           btoa'd file
463
464# PBMPLUS
465#                                       PBM file
4660       string          P1              image/x-portable-bitmap
467#                                       PGM file
4680       string          P2              image/x-portable-greymap
469#                                       PPM file
4700       string          P3              image/x-portable-pixmap
471#                                       PBM "rawbits" file
4720       string          P4              image/x-portable-bitmap
473#                                       PGM "rawbits" file
4740       string          P5              image/x-portable-greymap
475#                                       PPM "rawbits" file
4760       string          P6              image/x-portable-pixmap
477
478# NIFF (Navy Interchange File Format, a modification of TIFF)
479# [GRR:  this *must* go before TIFF]
4800       string          IIN1            image/x-niff
481
482# TIFF and friends
483#                                       TIFF file, big-endian
4840       string          MM              image/tiff
485#                                       TIFF file, little-endian
4860       string          II              image/tiff
487
488# possible GIF replacements; none yet released!
489# (Greg Roelofs, newt@uchicago.edu)
490#
491# GRR 950115:  this was mine ("Zip GIF"):
492#                                       ZIF image (GIF+deflate alpha)
4930       string          GIF94z          image/x-unknown
494#
495# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
496#                                       FGF image (GIF+deflate beta)
4970       string          FGF95a          image/x-unknown
498#
499# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
500# (best; not yet implemented):
501#                                       PBF image (deflate compression)
5020       string          PBF             image/x-unknown
503
504# GIF
5050       string          GIF             image/gif
506
507# JPEG images
5080       beshort         0xffd8          image/jpeg
509
510# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
5110       string          BM              image/x-ms-bmp
512#>14    byte            12              (OS/2 1.x format)
513#>14    byte            64              (OS/2 2.x format)
514#>14    byte            40              (Windows 3.x format)
515#0      string          IC              icon
516#0      string          PI              pointer
517#0      string          CI              color icon
518#0      string          CP              color pointer
519#0      string          BA              bitmap array
520
521# CDROM Filesystems
52232769    string    CD001     application/x-iso9660-image
523
524# Newer StuffIt archives (grant@netbsd.org)
5250       string          StuffIt                 application/x-stuffit
526#>162   string          >0                      : %s
527
528# BinHex is the Macintosh ASCII-encoded file format (see also "apple")
529# Daniel Quinlan, quinlan@yggdrasil.com
53011      string  must\ be\ converted\ with\ BinHex\ 4    application/mac-binhex40
531##>41   string  x                                       \b, version %.3s
532
533
534#------------------------------------------------------------------------------
535# lisp:  file(1) magic for lisp programs
536#
537# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
5380       string  ;;                      text/plain
539# Emacs 18 - this is always correct, but not very magical.
5400       string  \012(                   application/x-elc
541# Emacs 19
5420       string  ;ELC\023\000\000\000    application/x-elc
543
544#------------------------------------------------------------------------------
545# mail.news:  file(1) magic for mail and news
546#
547# There are tests to ascmagic.c to cope with mail and news.
5480       string          Relay-Version:  message/rfc822
5490       string          #!\ rnews       message/rfc822
5500       string          N#!\ rnews      message/rfc822
5510       string          Forward\ to     message/rfc822
5520       string          Pipe\ to        message/rfc822
5530       string          Return-Path:    message/rfc822
5540       string          Received:       message/rfc822
5550       string          Path:           message/news
5560       string          Xref:           message/news
5570       string          From:           message/rfc822
5580       string          Article         message/news
559#------------------------------------------------------------------------------
560# msword: file(1) magic for MS Word files
561#
562# Contributor claims:
563# Reversed-engineered MS Word magic numbers
564#
565
5660       string          \376\067\0\043                  application/msword
567# disable this one because it applies also to other
568# Office/OLE documents for which msword is not correct. See PR#2608.
569# from magic file of the apache
570#0      string          \320\317\021\340\241\261        application/msword
571512     string          \354\245\301                    application/msword
5720       string          \333\245-\0\0\0                 application/msword
573
574
575
576#------------------------------------------------------------------------------
577# printer:  file(1) magic for printer-formatted files
578#
579
580# PostScript
5810       string          %!              application/postscript
5820       string          \004%!          application/postscript
583
584# Acrobat
585# (due to clamen@cs.cmu.edu)
5860       string          %PDF-           application/pdf
587
588#------------------------------------------------------------------------------
589# sc:  file(1) magic for "sc" spreadsheet
590#
59138      string          Spreadsheet     application/x-sc
592
593#------------------------------------------------------------------------------
594# tex:  file(1) magic for TeX files
595#
596# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
597#
598# From <conklin@talisman.kaleida.com>
599
600# Although we may know the offset of certain text fields in TeX DVI
601# and font files, we can't use them reliably because they are not
602# zero terminated. [but we do anyway, christos]
6030       string          \367\002        application/x-dvi
604#0      string          \367\203        TeX generic font data
605#0      string          \367\131        TeX packed font data
606#0      string          \367\312        TeX virtual font data
607#0      string          This\ is\ TeX,  TeX transcript text
608#0      string          This\ is\ METAFONT,     METAFONT transcript text
609
610# There is no way to detect TeX Font Metric (*.tfm) files without
611# breaking them apart and reading the data.  The following patterns
612# match most *.tfm files generated by METAFONT or afm2tfm.
6132       string          \000\021        application/x-tex-tfm
6142       string          \000\022        application/x-tex-tfm
615#>34    string          >\0             (%s)
616
617# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
6180       string          \\input\ texinfo                text/x-texinfo
6190       string          This\ is\ Info\ file    text/x-info
620
621# correct TeX magic for Linux (and maybe more)
622# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
623#
6240       leshort         0x02f7          application/x-dvi
625
626# RTF - Rich Text Format
6270       string          {\\rtf          text/rtf
628
629# TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
6300       search/400      \\input         text/x-tex
6310       search/400      \\section       text/x-tex
6320       search/400      \\setlength     text/x-tex
6330       search/400      \\documentstyle text/x-tex
6340       search/400      \\chapter       text/x-tex
6350       search/400      \\documentclass text/x-tex
636
637# Type: Inform interactive fiction language
638# URL:  http://www.inform-fiction.org/
639# From: Reuben Thomas <rrt@sc3d.org>
6400       regex           [Cc]onstant[[:space:]]+[Ss]tory text/x-inform
641
642#------------------------------------------------------------------------------
643# animation:  file(1) magic for animation/movie formats
644#
645# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
646#                                               MPEG file
647# MPEG sequences
6480       belong             0x000001BA
649>4      byte               &0x40          video/mp2p
650>4      byte               ^0x40          video/mpeg
6510       belong             0x000001BB     video/mpeg
6520       belong             0x000001B0     video/mp4v-es
6530       belong             0x000001B5     video/mp4v-es
6540       belong             0x000001B3     video/mpv
6550       belong&0xFF5FFF1F  0x47400010     video/mp2t
6560       belong             0x00000001
657>4      byte&0x1F          0x07           video/h264
658
659# FLI animation format
6600       leshort         0xAF11                          video/x-fli
661# FLC animation format
6620       leshort         0xAF12                          video/x-flc
663#
664# SGI and Apple formats
665# Added ISO mimes
6660       string          MOVI          video/x-sgi-movie
6674       string          moov          video/quicktime
6684       string          mdat          video/quicktime
6694       string          wide          video/quicktime
6704       string          skip          video/quicktime
6714       string          free          video/quicktime
6724       string          idsc          image/x-quicktime
6734       string          idat          image/x-quicktime
6744       string          pckg          application/x-quicktime-player
6754       string/B        jP            image/jp2
6764       string          ftyp
677>8      string          isom          video/mp4
678>8      string          mp41          video/mp4
679>8      string          mp42          video/mp4
680>8      string/B        jp2           image/jp2
681>8      string          3gp           video/3gpp
682>8      string          avc1          video/3gpp
683>8      string          mmp4          video/mp4
684>8      string/B        M4A           audio/mp4
685>8      string/B        M4V           video/mp4
686>8      string/B        qt            video/quicktime
687# The contributor claims:
688#   I couldn't find a real magic number for these, however, this
689#   -appears- to work.  Note that it might catch other files, too,
690#   so BE CAREFUL!
691#
692# Note that title and author appear in the two 20-byte chunks
693# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
694# 255 (hex FF)! DL format SUCKS BIG ROCKS.
695#
696#                                               DL file version 1 , medium format (160x100, 4 images/screen)
6970       byte            1                       video/x-unknown
6980       byte            2                       video/x-unknown
699#
700# Databases
701#
702# GDBM magic numbers
703#  Will be maintained as part of the GDBM distribution in the future.
704#  <downsj@teeny.org>
7050       belong  0x13579ace      application/x-gdbm
7060       lelong  0x13579ace      application/x-gdbm
7070       string  GDBM            application/x-gdbm
708#
7090       belong  0x061561        application/x-dbm
710#
711# Executables
712#
7130       string          \177ELF
714>16     leshort         0               application/octet-stream
715>16     leshort         1               application/x-object
716>16     leshort         2               application/x-executable
717>16     leshort         3               application/x-sharedlib
718>16     leshort         4               application/x-coredump
719>16     beshort         0               application/octet-stream
720>16     beshort         1               application/x-object
721>16     beshort         2               application/x-executable
722>16     beshort         3               application/x-sharedlib
723>16     beshort         4               application/x-coredump
724#
725# DOS
7260               string                  MZ                              application/x-dosexec
727#
728# KDE
7290               string  [KDE\ Desktop\ Entry]   application/x-kdelnk
7300               string  #\ KDE\ Config\ File    application/x-kdelnk
731# xmcd database file for kscd
7320               string  #\ xmcd                text/x-xmcd
733
734#------------------------------------------------------------------------------
735# pkgadd:  file(1) magic for SysV R4 PKG Datastreams
736#
7370       string          #\ PaCkAgE\ DaTaStReAm  application/x-svr4-package
738
739#PNG Image Format
7400       string          \x89PNG                 image/png
741
742# MNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/>
7430       string          \x8aMNG                 video/x-mng
7440       string          \x8aJNG                 video/x-jng
745
746#------------------------------------------------------------------------------
747# Hierarchical Data Format, used to facilitate scientific data exchange
748# specifications at http://hdf.ncsa.uiuc.edu/
749#Hierarchical Data Format (version 4) data
7500       belong          0x0e031301              application/x-hdf
751#Hierarchical Data Format (version 5) data
7520       string          \211HDF\r\n\032         application/x-hdf
753
754# Adobe Photoshop
7550       string          8BPS                    image/vnd.adobe.photoshop
756
757# Felix von Leitner <felix-file@fefe.de>
7580       string          d8:announce             application/x-bittorrent
759
760
761# lotus 1-2-3 document
7620       belong  0x00001a00      application/x-123
7630       belong  0x00000200      application/x-123
764
765# MS Access database
7664       string  Standard\ Jet\ DB       application/x-msaccess
767
768## magic for XBase files
769#0      byte       0x02
770#>8     leshort   >0
771#>>12   leshort    0    application/x-dbf
772#
773#0      byte       0x03
774#>8     leshort   >0
775#>>12   leshort    0    application/x-dbf
776#
777#0      byte       0x04
778#>8     leshort   >0
779#>>12   leshort    0    application/x-dbf
780#
781#0      byte       0x05
782#>8     leshort   >0
783#>>12   leshort    0    application/x-dbf
784#
785#0      byte       0x30
786#>8     leshort   >0
787#>>12   leshort    0    application/x-dbf
788#
789#0      byte       0x43
790#>8     leshort   >0
791#>>12   leshort    0    application/x-dbf
792#
793#0      byte       0x7b
794#>8     leshort   >0
795#>>12   leshort    0    application/x-dbf
796#
797#0      byte       0x83
798#>8     leshort   >0
799#>>12   leshort    0    application/x-dbf
800#
801#0      byte       0x8b
802#>8     leshort   >0
803#>>12   leshort    0    application/x-dbf
804#
805#0      byte       0x8e
806#>8     leshort   >0
807#>>12   leshort    0    application/x-dbf
808#
809#0      byte       0xb3
810#>8     leshort   >0
811#>>12   leshort    0    application/x-dbf
812#
813#0      byte       0xf5
814#>8     leshort   >0
815#>>12   leshort    0    application/x-dbf
816#
817#0      leshort         0x0006          application/x-dbt
818
819# Debian has entries for the old PGP formats:
820# pgp:  file(1) magic for Pretty Good Privacy
821# see http://lists.gnupg.org/pipermail/gnupg-devel/1999-September/016052.html
822#0       beshort         0x9900                  application/x-pgp-keyring
823#0       beshort         0x9501                  application/x-pgp-keyring
824#0       beshort         0x9500                  application/x-pgp-keyring
825#0       beshort         0xa600                  application/pgp-encrypted
826#0       string          -----BEGIN\040PGP       text/PGP armored data
827#>15     string          PUBLIC\040KEY\040BLOCK- public key block
828#>15     string          MESSAGE-                message
829#>15     string          SIGNED\040MESSAGE-      signed message
830#>15     string          PGP\040SIGNATURE-       signature
831#0       beshort         0x8501                  data
832#text/PGP key public ring
8330       beshort         0x9900          application/pgp
834#text/PGP key security ring
8350       beshort         0x9501          application/pgp
836#text/PGP key security ring
8370       beshort         0x9500          application/pgp
838#text/PGP encrypted data
8390       beshort         0xa600          application/pgp-encrypted
840#text/PGP armored data
841##public key block
8422       string  ---BEGIN\ PGP\ PUBLIC\ KEY\ BLOCK-      application/pgp-keys
8430       string  -----BEGIN\040PGP\40MESSAGE-            application/pgp
8440       string  -----BEGIN\040PGP\40SIGNATURE-          application/pgp-signature
845
846#
847# GnuPG Magic:
848#
849#0       beshort         0x9901                  application/x-gnupg-keyring
850#0       beshort         0x8501                  text/OpenPGP data
851#text/GnuPG key public ring
8520       beshort         0x9901          application/pgp
853#text/OpenPGP data
8540       beshort         0x8501          application/pgp-encrypted
855
856# flash:        file(1) magic for Macromedia Flash file format
857#
858# See
859#
860#       http://www.macromedia.com/software/flash/open/
861#
8620       string          FWS
863>3      byte            x                       application/x-shockwave-flash
864# Flash Video
8650       string          FLV                     video/x-flv
866
867
868# The following paramaters are created for Namazu.
869# <http://www.namazu.org/>
870#
871# 1999/08/13
872#0      string          \<!--\ MHonArc          text/html; x-type=mhonarc
8730       string          BZh                     application/x-bzip2
874
875# 1999/09/09
876# VRML (suggested by Masao Takaku)
8770       string          #VRML\ V1.0\ ascii      model/vrml
8780       string          #VRML\ V2.0\ utf8       model/vrml
879
880#------------------------------------------------------------------------------
881# ichitaro456: file(1) magic for Just System Word Processor Ichitaro
882#
883# Contributor kenzo-:
884# Reversed-engineered JS Ichitaro magic numbers
885#
886
8870       string          DOC
888>43     byte            0x14            application/x-ichitaro4
889>144    string  JDASH           application/x-ichitaro4
890
8910       string          DOC
892>43     byte            0x15            application/x-ichitaro5
893
8940       string          DOC
895>43     byte            0x16            application/x-ichitaro6
896
897#------------------------------------------------------------------------------
898# office97: file(1) magic for MicroSoft Office files
899#
900# Contributor kenzo-:
901# Reversed-engineered MS Office magic numbers
902#
903
904#0       string          \320\317\021\340\241\261\032\341
905#>48     byte            0x1B            application/excel
906
9072080    string  Microsoft\ Excel\ 5.0\ Worksheet        application/vnd.ms-excel
9082114    string  Biff5                                   application/vnd.ms-excel
909
9100       string  \224\246\056            application/msword
911
9120       belong  0x31be0000              application/msword
913
9140       string  PO^Q`                   application/msword
915
9160       string  \320\317\021\340\241\261\032\341
917>546    string  bjbj                    application/msword
918>546    string  jbjb                    application/msword
919
920512     string  R\0o\0o\0t\0\ \0E\0n\0t\0r\0y   application/msword
921
9222080    string  Microsoft\ Word\ 6.0\ Document  application/msword
9232080    string  Documento\ Microsoft\ Word\ 6   application/msword
9242112    string  MSWordDoc                       application/msword
925
926#0      string  \320\317\021\340\241\261\032\341        application/powerpoint
9270       string  \320\317\021\340\241\261\032\341        application/msword
928
9290       string  #\ PaCkAgE\ DaTaStReAm  application/x-svr4-package
930
931
932# WinNT/WinCE PE files (Warner Losh, imp@village.org)
933#
934128             string  PE\000\000      application/octet-stream
9350               string  PE\000\000      application/octet-stream
936
937# miscellaneous formats
9380               string  LZ              application/octet-stream
939
940# DOS device drivers by Joerg Jenderek
9410       belong          0xffffffff      application/octet-stream
942
943# .EXE formats (Greg Roelofs, newt@uchicago.edu)
944#
9450               string  MZ
946>24             string  @               application/octet-stream
947
9480               string  MZ
949>30             string  Copyright\ 1989-1990\ PKWARE\ Inc.      application/zip
950
9510               string  MZ
952>30             string  PKLITE\ Copr.   application/zip
953
9540               string  MZ
955>36             string  LHa's\ SFX      application/x-lha
956
9570               string  MZ              application/octet-stream
958
959# LHA archiver
9602               string  -lh
961>6              string  -               application/x-lha
962
963
964# Zoo archiver
96520              lelong  0xfdc4a7dc      application/x-zoo
966
967# ARC archiver
9680               lelong&0x8080ffff       0x0000081a      application/x-arc
9690               lelong&0x8080ffff       0x0000091a      application/x-arc
9700               lelong&0x8080ffff       0x0000021a      application/x-arc
9710               lelong&0x8080ffff       0x0000031a      application/x-arc
9720               lelong&0x8080ffff       0x0000041a      application/x-arc
9730               lelong&0x8080ffff       0x0000061a      application/x-arc
974
975# Microsoft Outlook's Transport Neutral Encapsulation Format (TNEF)
9760               lelong  0x223e9f78      application/vnd.ms-tnef
977
978# From: stephane.loeuillet@tiscali.f
979# http://www.djvuzone.org/
9800       string          AT&TFORM        image/vnd.djvu
981
982# Danny Milosavljevic <danny.milo@gmx.net>
983# this are adrift (adventure game standard) game files, extension .taf
984# depending on version magic continues with 0x93453E6139FA (V 4.0)
985# 0x9445376139FA (V 3.90)
986# 0x9445366139FA (V 3.80)
987# this is from source (http://www.adrift.org.uk/) and I have some taf
988# files, and checked them.
989#0      belong  0x3C423FC9
990#>4     belong  0x6A87C2CF      application/x-adrift
991#0      string  \000\000\001\000        image/x-ico
992
993# Quark Xpress 3 Files:
994# (made the mimetype up)
9950       string  \0\0MMXPR3\0    application/x-quark-xpress-3
996
997# EET archive
998# From: Tilman Sauerbeck <tilman@code-monkey.de>
9990       belong  0x1ee7ff00      application/x-eet
1000
1001# From: Denis Knauf, via gentoo.
10020       string  fLaC            audio/x-flac
10030       string  CWS             application/x-shockwave-flash
1004
1005# Hangul Document Files:
1006# Reversed-engineered HWP magic numbers
1007# From: Won-Kyu Park <wkpark@kldp.org>
1008512     string          R\0o\0o\0t\0    application/x-hwp
1009
10100       string/c        BEGIN:VCARD     text/x-vcard
10110       string          WordPro\0       application/vnd.lotus-wordpro
10120       string          WordPro\r\373   application/vnd.lotus-wordpro
10130       string          CPC\262         image/x-cpi
1014
1015#
1016128     string          DICM            application/dicom
1017
1018# Symbian installation files
10198       lelong  0x10000419      application/vnd.symbian.install
10200       lelong  0x10201A7A      x-epoc/x-sisx-app
1021# FORTRAN source
10220       string/c        c\              text/x-fortran
1023
1024# Gnumeric spreadsheet
1025# This entry is only semi-helpful, as Gnumeric compresses its files, so
1026# they will ordinarily reported as "compressed", but at least -z helps
102739      string  =<gmr:Workbook  application/x-gnumeric
Note: See TracBrowser for help on using the repository browser.