mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

- It's derived from the magic database of libmagic 5.14, but with most everything not related to mime types removed. - The custom database is always used by default for mime detection, but the more verbose file type detection will fall back on the default libmagic installation's database. The result is: mime type strings are now guaranteed to be consistent across platforms, but the verbose file type descriptions are not. - The custom database gets installed in $prefix/share/bro/magic, and should even be extensible if files with new patterns are added inside the directory. - The search path for the mime magic database can be controlled via BROMAGIC environment variable. - Remove mime_desc field from ftp.log. - Stop using the mime/file type canonifier with unit tests. - libmagic >= 5.04 is now a requirement.
82 lines
3.2 KiB
Text
82 lines
3.2 KiB
Text
# See COPYING file in this directory for original libmagic copyright.
|
|
#------------------------------------------------------------------------------
|
|
# $File: commands,v 1.44 2013/02/05 15:20:47 christos Exp $
|
|
# commands: file(1) magic for various shells and interpreters
|
|
#
|
|
#0 string/w : shell archive or script for antique kernel text
|
|
0 string/wt #!\ /bin/sh POSIX shell script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /bin/csh C shell script text executable
|
|
!:mime text/x-shellscript
|
|
# korn shell magic, sent by George Wu, gwu@clyde.att.com
|
|
0 string/wt #!\ /bin/ksh Korn shell script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /bin/tcsh Tenex C shell script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/bin/tcsh Tenex C shell script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/local/tcsh Tenex C shell script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/local/bin/tcsh Tenex C shell script text executable
|
|
!:mime text/x-shellscript
|
|
|
|
#
|
|
# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
|
|
0 string/wt #!\ /bin/zsh Paul Falstad's zsh script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/local/bin/ash Neil Brown's ash script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/local/bin/ae Neil Brown's ae script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /bin/nawk new awk script text executable
|
|
!:mime text/x-nawk
|
|
0 string/wt #!\ /usr/bin/nawk new awk script text executable
|
|
!:mime text/x-nawk
|
|
0 string/wt #!\ /usr/local/bin/nawk new awk script text executable
|
|
!:mime text/x-nawk
|
|
0 string/wt #!\ /bin/gawk GNU awk script text executable
|
|
!:mime text/x-gawk
|
|
0 string/wt #!\ /usr/bin/gawk GNU awk script text executable
|
|
!:mime text/x-gawk
|
|
0 string/wt #!\ /usr/local/bin/gawk GNU awk script text executable
|
|
!:mime text/x-gawk
|
|
#
|
|
0 string/wt #!\ /bin/awk awk script text executable
|
|
!:mime text/x-awk
|
|
0 string/wt #!\ /usr/bin/awk awk script text executable
|
|
!:mime text/x-awk
|
|
|
|
# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
|
|
0 string/wt #!\ /bin/bash Bourne-Again shell script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/bin/bash Bourne-Again shell script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/local/bash Bourne-Again shell script text executable
|
|
!:mime text/x-shellscript
|
|
0 string/wt #!\ /usr/local/bin/bash Bourne-Again shell script text executable
|
|
!:mime text/x-shellscript
|
|
|
|
# PHP scripts
|
|
# Ulf Harnhammar <ulfh@update.uu.se>
|
|
0 search/1/c =<?php PHP script text
|
|
!:strength + 10
|
|
!:mime text/x-php
|
|
0 search/1 =<?\n PHP script text
|
|
!:mime text/x-php
|
|
0 search/1 =<?\r PHP script text
|
|
!:mime text/x-php
|
|
0 search/1/w #!\ /usr/local/bin/php PHP script text executable
|
|
!:strength + 10
|
|
!:mime text/x-php
|
|
0 search/1/w #!\ /usr/bin/php PHP script text executable
|
|
!:strength + 10
|
|
!:mime text/x-php
|
|
# Smarty compiled template, http://www.smarty.net/
|
|
# Elan Ruusamae <glen@delfi.ee>
|
|
0 string =<?php\ /*\ Smarty\ version Smarty compiled template
|
|
>24 regex [0-9.]+ \b, version %s
|
|
!:mime text/x-php
|