[File] [PATCH] Add execline script detection
Kylie McClain
kylie at somas.is
Fri Jul 2 15:04:13 UTC 2021
execline is a non-interactive scripting language designed as a more
secure alternative to languages like `sh`.
https://skarnet.org/software/execline/
---
magic/Magdir/commands | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/magic/Magdir/commands b/magic/Magdir/commands
index a402159e..04112ad5 100644
--- a/magic/Magdir/commands
+++ b/magic/Magdir/commands
@@ -149,3 +149,19 @@
# From Danny Weldon
0 string \x0b\x13\x08\x00
>0x04 uleshort <4 ksh byte-code version %d
+
+# From: Kylie McClain <kylie at somas.is>
+# Type: execline scripts
+# URL: https://skarnet.org/software/execline/
+0 string/fwt #!\ /command/execlineb execline script text executable
+!:mime text/x-execline
+0 string/fwt #!\ /bin/execlineb execline script text executable
+!:mime text/x-execline
+0 string/fwt #!\ /usr/bin/execlineb execline script text executable
+!:mime text/x-execline
+0 string/fwt #!\ /usr/bin/env\ execlineb execline script text executable
+!:mime text/x-execline
+
+0 string #!
+>0 regex \^#!.*/bin/execlineb([[:space:]].*)*$ execline script text executable
+!:mime text/x-execline
--
2.32.0
More information about the File
mailing list