]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - contrib/file/magic/Magdir/flash
Update file(1) to new version with security update. [EN-18:02.file]
[FreeBSD/releng/10.3.git] / contrib / file / magic / Magdir / flash
1
2 #------------------------------------------------------------------------------
3 # $File: flash,v 1.14 2017/05/25 20:09:55 christos Exp $
4 # flash:        file(1) magic for Macromedia Flash file format
5 #
6 # See
7 #
8 #       http://www.macromedia.com/software/flash/open/
9 #       http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/\
10 #       en/devnet/swf/pdf/swf-file-format-spec.pdf page 27
11 #
12
13 0   name        swf-details
14
15 >0      string          F
16 >>8     byte&0xfd       0x08            Macromedia Flash data
17 !:mime  application/x-shockwave-flash
18 >>>3    byte            x               \b, version %d
19 >>8     byte&0xfe       0x10            Macromedia Flash data
20 !:mime  application/x-shockwave-flash
21 >>>3    byte            x               \b, version %d
22 >>8     byte            0x18            Macromedia Flash data
23 !:mime  application/x-shockwave-flash
24 >>>3    byte            x               \b, version %d
25 >>8     beshort&0xff87  0x2000          Macromedia Flash data
26 !:mime  application/x-shockwave-flash
27 >>>3    byte            x               \b, version %d
28 >>8     beshort&0xffe0  0x3000          Macromedia Flash data
29 !:mime  application/x-shockwave-flash
30 >>>3    byte            x               \b, version %d
31 >>8     byte&0x7        0
32 >>>8    ubyte           >0x2f
33 >>>>9   ubyte           <0x20           Macromedia Flash data
34 !:mime  application/x-shockwave-flash
35 >>>>>3  byte            x               \b, version %d
36
37 >0      string          C
38 >>8     byte            0x78            Macromedia Flash data (compressed)
39 !:mime  application/x-shockwave-flash
40 >>>3    byte            x               \b, version %d
41
42 >0      string          Z
43 >>8     byte            0x5d            Macromedia Flash data (lzma compressed)
44 !:mime  application/x-shockwave-flash
45 >>>3    byte            x               \b, version %d
46
47
48 1       string          WS
49 >4      ulelong         >14
50 >>3     ubyte           !0
51 >>>0    use             swf-details
52
53 # From: Cal Peake <cp@absolutedigital.net>
54 0       string          FLV\x01         Macromedia Flash Video
55 !:mime  video/x-flv
56
57 #
58 # Yosu Gomez
59 0       string  AGD2\xbe\xb8\xbb\xcd\x00        Macromedia Freehand 7 Document
60 0       string  AGD3\xbe\xb8\xbb\xcc\x00        Macromedia Freehand 8 Document
61 # From Dave Wilson
62 0       string  AGD4\xbe\xb8\xbb\xcb\x00        Macromedia Freehand 9 Document