1995-03-26 01:35:28 +03:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# linux: file(1) magic for Linux files
|
|
|
|
#
|
1995-04-28 23:23:38 +04:00
|
|
|
# Values for Linux/i386 binaries, from Daniel Quinlan <quinlan@yggdrasil.com>
|
|
|
|
# The following basic Linux magic is useful for reference, but using
|
|
|
|
# "long" magic is a better practice in order to avoid collisions.
|
|
|
|
#
|
|
|
|
# 2 leshort 100 Linux/i386
|
|
|
|
# >0 leshort 0407 impure executable (OMAGIC)
|
|
|
|
# >0 leshort 0410 pure executable (NMAGIC)
|
|
|
|
# >0 leshort 0413 demand-paged executable (ZMAGIC)
|
|
|
|
# >0 leshort 0314 demand-paged executable (QMAGIC)
|
|
|
|
#
|
|
|
|
0 lelong 0x00640107 Linux/i386 impure executable (OMAGIC)
|
1995-10-28 02:33:14 +03:00
|
|
|
>16 lelong 0 \b, stripped
|
1995-04-28 23:23:38 +04:00
|
|
|
0 lelong 0x00640108 Linux/i386 pure executable (NMAGIC)
|
1995-10-28 02:33:14 +03:00
|
|
|
>16 lelong 0 \b, stripped
|
1995-04-28 23:23:38 +04:00
|
|
|
0 lelong 0x0064010b Linux/i386 demand-paged executable (ZMAGIC)
|
1995-10-28 02:33:14 +03:00
|
|
|
>16 lelong 0 \b, stripped
|
1995-04-28 23:23:38 +04:00
|
|
|
0 lelong 0x006400cc Linux/i386 demand-paged executable (QMAGIC)
|
1995-10-28 02:33:14 +03:00
|
|
|
>16 lelong 0 \b, stripped
|
1995-03-26 01:35:28 +03:00
|
|
|
#
|
|
|
|
0 string \007\001\000 Linux/i386 object file
|
1995-10-28 02:33:14 +03:00
|
|
|
>20 lelong >0x1020 \b, DLL library
|
1995-03-26 01:35:28 +03:00
|
|
|
# message catalogs, from Mitchum DSouza <m.dsouza@mrc-apu.cam.ac.uk>
|
|
|
|
0 string *nazgul* compiled message catalog
|
1995-10-28 02:33:14 +03:00
|
|
|
>8 lelong >0 \b, version %ld
|
1995-03-26 01:35:28 +03:00
|
|
|
# core dump file, from Bill Reynolds <bill@goshawk.lanl.gov>
|
|
|
|
216 lelong 0421 Linux/i386 core file
|
|
|
|
>220 string >\0 of '%s'
|
1995-04-28 23:23:38 +04:00
|
|
|
>200 lelong >0 (signal %d)
|
1995-03-26 01:35:28 +03:00
|
|
|
#
|
|
|
|
# LILO boot/chain loaders, from Daniel Quinlan <quinlan@yggdrasil.com>
|
|
|
|
# this can be overridden by the DOS executable (COM) entry
|
1995-04-28 23:23:38 +04:00
|
|
|
2 string LILO Linux/i386 LILO boot/chain loader
|
|
|
|
#
|
1995-03-26 01:35:28 +03:00
|
|
|
# Debian Packages, from Peter Tobias <tobias@server.et-inf.fho-emden.de>
|
|
|
|
0 string 0.9
|
1995-10-28 02:33:14 +03:00
|
|
|
>8 byte 0x0a Debian Binary Package
|
|
|
|
>>3 byte >0 \b, created by dpkg 0.9%c
|
1995-03-26 01:35:28 +03:00
|
|
|
>>4 byte >0 pl%c
|
|
|
|
# PSF fonts, from H. Peter Anvin <hpa@yggdrasil.com>
|
1995-10-28 02:33:14 +03:00
|
|
|
0 leshort 0x0436 Linux/i386 PC Screen Font data,
|
|
|
|
>2 byte 0 256 characters, no directory,
|
|
|
|
>2 byte 1 512 characters, no directory,
|
|
|
|
>2 byte 2 256 characters, Unicode directory,
|
|
|
|
>2 byte 3 512 characters, Unicode directory,
|
1995-04-28 23:23:38 +04:00
|
|
|
>3 byte >0 8x%d
|
1995-03-26 01:35:28 +03:00
|
|
|
# Linux swap file, from Daniel Quinlan <quinlan@yggdrasil.com>
|
|
|
|
4086 string SWAP-SPACE Linux/i386 swap file
|
1995-10-28 02:33:14 +03:00
|
|
|
# From: Erik Troan <ewt@redhat.com>
|
|
|
|
0 leshort 0x00070183 ECOFF (Linux/OSF) Alpha binary
|
|
|
|
>10 leshort 0x0001 not stripped
|
|
|
|
>10 leshort 0x0000 stripped
|