summaryrefslogtreecommitdiffstats
path: root/magic/Magdir/web
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--magic/Magdir/web18
-rw-r--r--magic/Magdir/webassembly17
2 files changed, 35 insertions, 0 deletions
diff --git a/magic/Magdir/web b/magic/Magdir/web
new file mode 100644
index 0000000..a0d26e6
--- /dev/null
+++ b/magic/Magdir/web
@@ -0,0 +1,18 @@
+
+#------------------------------------------------------------------------------
+# $File: web,v 1.2 2022/10/29 16:02:37 christos Exp $
+
+# http://www.rdfhdt.org/
+# From Christoph Biedl
+# http://www.rdfhdt.org/hdt-internals/
+# https://github.com/rdfhdt/hdt-cpp
+
+0 string $HDT\x01 HDT file (binary compressed indexed RDF triples) type 1
+!:mime application/vnd.hdt
+!:ext hdt
+
+0 string [Adblock\040Plus Adblock Plus
+>&1 regex [0-9.]+ %s
+>1 string x rules file
+>10 search/100 Version:
+>>&1 regex [0-9]+ \b, version %s
diff --git a/magic/Magdir/webassembly b/magic/Magdir/webassembly
new file mode 100644
index 0000000..469b45e
--- /dev/null
+++ b/magic/Magdir/webassembly
@@ -0,0 +1,17 @@
+#------------------------------------------------------------------------------
+# $File: webassembly,v 1.4 2022/08/16 11:16:39 christos Exp $
+# webassembly: file(1) magic for WebAssembly modules
+#
+# WebAssembly is a virtual architecture developed by a W3C Community
+# Group at https://webassembly.org/. The file extension is .wasm, and
+# the MIME type is application/wasm.
+#
+# https://webassembly.org/docs/binary-encoding/ is the main
+# document describing the binary format.
+# From: Pip Cet <pipcet@gmail.com> and Joel Martin
+
+0 string \0asm WebAssembly (wasm) binary module
+>4 lelong =1 version %#x (MVP)
+!:mime application/wasm
+!:ext wasm
+>4 lelong >1 version %#x