1*b6cee71dSXin LI 2*b6cee71dSXin LI#------------------------------------------------------------------------------ 3*b6cee71dSXin LI# $File: gnu,v 1.15 2014/02/06 14:21:02 christos Exp $ 4*b6cee71dSXin LI# gnu: file(1) magic for various GNU tools 5*b6cee71dSXin LI# 6*b6cee71dSXin LI# GNU nlsutils message catalog file format 7*b6cee71dSXin LI# 8*b6cee71dSXin LI# GNU message catalog (.mo and .gmo files) 9*b6cee71dSXin LI 10*b6cee71dSXin LI0 string \336\22\4\225 GNU message catalog (little endian), 11*b6cee71dSXin LI>6 leshort x revision %d. 12*b6cee71dSXin LI>4 leshort >0 \b%d, 13*b6cee71dSXin LI>>8 lelong x %d messages, 14*b6cee71dSXin LI>>36 lelong x %d sysdep messages 15*b6cee71dSXin LI>4 leshort =0 \b%d, 16*b6cee71dSXin LI>>8 lelong x %d messages 17*b6cee71dSXin LI 18*b6cee71dSXin LI0 string \225\4\22\336 GNU message catalog (big endian), 19*b6cee71dSXin LI>4 beshort x revision %d. 20*b6cee71dSXin LI>6 beshort >0 \b%d, 21*b6cee71dSXin LI>>8 belong x %d messages, 22*b6cee71dSXin LI>>36 belong x %d sysdep messages 23*b6cee71dSXin LI>6 beshort =0 \b%d, 24*b6cee71dSXin LI>>8 belong x %d messages 25*b6cee71dSXin LI 26*b6cee71dSXin LI 27*b6cee71dSXin LI# GnuPG 28*b6cee71dSXin LI# The format is very similar to pgp 29*b6cee71dSXin LI0 string \001gpg GPG key trust database 30*b6cee71dSXin LI>4 byte x version %d 31*b6cee71dSXin LI# Note: magic.mime had 0x8501 for the next line instead of 0x8502 32*b6cee71dSXin LI0 beshort 0x8502 GPG encrypted data 33*b6cee71dSXin LI!:mime text/PGP # encoding: data 34*b6cee71dSXin LI 35*b6cee71dSXin LI# This magic is not particularly good, as the keyrings don't have true 36*b6cee71dSXin LI# magic. Nevertheless, it covers many keyrings. 37*b6cee71dSXin LI0 beshort 0x9901 GPG key public ring 38*b6cee71dSXin LI!:mime application/x-gnupg-keyring 39*b6cee71dSXin LI 40*b6cee71dSXin LI# Symmetric encryption 41*b6cee71dSXin LI0 leshort 0x0d8c 42*b6cee71dSXin LI>4 leshort 0x0203 43*b6cee71dSXin LI>>2 leshort 0x0204 GPG symmetrically encrypted data (3DES cipher) 44*b6cee71dSXin LI>>2 leshort 0x0304 GPG symmetrically encrypted data (CAST5 cipher) 45*b6cee71dSXin LI>>2 leshort 0x0404 GPG symmetrically encrypted data (BLOWFISH cipher) 46*b6cee71dSXin LI>>2 leshort 0x0704 GPG symmetrically encrypted data (AES cipher) 47*b6cee71dSXin LI>>2 leshort 0x0804 GPG symmetrically encrypted data (AES192 cipher) 48*b6cee71dSXin LI>>2 leshort 0x0904 GPG symmetrically encrypted data (AES256 cipher) 49*b6cee71dSXin LI>>2 leshort 0x0a04 GPG symmetrically encrypted data (TWOFISH cipher) 50*b6cee71dSXin LI>>2 leshort 0x0b04 GPG symmetrically encrypted data (CAMELLIA128 cipher) 51*b6cee71dSXin LI>>2 leshort 0x0c04 GPG symmetrically encrypted data (CAMELLIA192 cipher) 52*b6cee71dSXin LI>>2 leshort 0x0d04 GPG symmetrically encrypted data (CAMELLIA256 cipher) 53*b6cee71dSXin LI 54*b6cee71dSXin LI 55*b6cee71dSXin LI# GnuPG Keybox file 56*b6cee71dSXin LI# <http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=kbx/keybox-blob.c;hb=HEAD> 57*b6cee71dSXin LI# From: Philipp Hahn <hahn@univention.de> 58*b6cee71dSXin LI0 belong 32 59*b6cee71dSXin LI>4 byte 1 60*b6cee71dSXin LI>>8 string KBXf GPG keybox database 61*b6cee71dSXin LI>>>5 byte 1 version %d 62*b6cee71dSXin LI>>>16 bedate x \b, created-at %s 63*b6cee71dSXin LI>>>20 bedate x \b, last-maintained %s 64*b6cee71dSXin LI 65*b6cee71dSXin LI 66*b6cee71dSXin LI# Gnumeric spreadsheet 67*b6cee71dSXin LI# This entry is only semi-helpful, as Gnumeric compresses its files, so 68*b6cee71dSXin LI# they will ordinarily reported as "compressed", but at least -z helps 69*b6cee71dSXin LI39 string =<gmr:Workbook Gnumeric spreadsheet 70*b6cee71dSXin LI 71*b6cee71dSXin LI# From: James Youngman <jay@gnu.org> 72*b6cee71dSXin LI# gnu find magic 73*b6cee71dSXin LI0 string \0LOCATE GNU findutils locate database data 74*b6cee71dSXin LI>7 string >\0 \b, format %s 75*b6cee71dSXin LI>7 string 02 \b (frcode) 76*b6cee71dSXin LI 77*b6cee71dSXin LI# Files produced by GNU gettext 78*b6cee71dSXin LI0 long 0xDE120495 GNU-format message catalog data 79*b6cee71dSXin LI0 long 0x950412DE GNU-format message catalog data 80*b6cee71dSXin LI 81*b6cee71dSXin LI# gettext message catalogue 82*b6cee71dSXin LI0 regex \^msgid\ GNU gettext message catalogue text 83*b6cee71dSXin LI!:mime text/x-po 84