1 #------------------------------------------------------------------------------
2 # $File: zip,v 1.3 2019/07/06 19:25:06 christos Exp $
3 # zip: file(1) magic for zip files; this is not use
4 # Note the version of magic in archive is currently stronger, this is
5 # just an example until negative offsets are supported better
7 # Zip Central Cirectory record
9 >0 string PK\001\002 Zip archive data
10 >>4 leshort x \b, made by
12 >>6 leshort x \b, extract using at least
14 >>12 ledate x \b, last modified %s
15 >>24 lelong >0 \b, uncompressed size %d
16 >>10 leshort x \b, method=
17 >>10 use zipcompression
19 # Zip known compressions
22 >0 leshort 8 \bdeflate
23 >0 leshort 9 \bdeflate64
29 >0 leshort 97 \bWavPack
31 >0 leshort 99 \bAES Encrypted
55 # Zip End Of Central Directory record
57 #>4 leshort >1 \b, %d disks
58 #>6 leshort >1 \b, central directory disk %d
59 #>8 leshort >1 \b, %d central directories on this disk
60 #>10 leshort >1 \b, %d central directories
61 #>12 lelong x \b, %d central directory bytes
63 >>20 pstring/l >0 \b, %s