xref: /freebsd/contrib/file/magic/Magdir/flash (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1
2#------------------------------------------------------------------------------
3# $File: flash,v 1.15 2019/04/19 00:42:27 christos Exp $
4# flash:	file(1) magic for Macromedia Flash file format
5#
6# See
7#
8#	https://www.macromedia.com/software/flash/open/
9#	https://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/\
10#	en/devnet/swf/pdf/swf-file-format-spec.pdf page 27
11#
12
130   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
481	string		WS
49>4	ulelong		>14
50>>3	ubyte		!0
51>>>0	use		swf-details
52
53# From: Cal Peake <cp@absolutedigital.net>
540	string		FLV\x01		Macromedia Flash Video
55!:mime	video/x-flv
56
57#
58# Yosu Gomez
590	string	AGD2\xbe\xb8\xbb\xcd\x00	Macromedia Freehand 7 Document
600	string	AGD3\xbe\xb8\xbb\xcc\x00	Macromedia Freehand 8 Document
61# From Dave Wilson
620	string	AGD4\xbe\xb8\xbb\xcb\x00	Macromedia Freehand 9 Document
63