mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 10:06:58 -04:00
Converted MagicObject to just dictionaries
This commit is contained in:
parent
c8b474eef4
commit
1bbcc8d542
44 changed files with 879 additions and 890 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
import Operation from "../Operation.mjs";
|
||||
import zlibAndGzip from "zlibjs/bin/zlib_and_gzip.min.js";
|
||||
import magicObject from "../lib/MagicObject.mjs";
|
||||
import * as criteria from "../lib/MagicCriteria.mjs";
|
||||
|
||||
const Zlib = zlibAndGzip.Zlib;
|
||||
|
@ -29,18 +28,17 @@ class Gunzip extends Operation {
|
|||
this.inputType = "ArrayBuffer";
|
||||
this.outputType = "ArrayBuffer";
|
||||
this.args = [];
|
||||
this.checks = new magicObject([
|
||||
{
|
||||
match: "^\\x1f\\x8b\\x08",
|
||||
flags: "",
|
||||
magic: true,
|
||||
args: []
|
||||
},
|
||||
],
|
||||
null,
|
||||
null,
|
||||
criteria.compressedToDecompressed
|
||||
);
|
||||
this.checks =
|
||||
{
|
||||
inRegexes: [
|
||||
{
|
||||
match: "^\\x1f\\x8b\\x08",
|
||||
flags: "",
|
||||
magic: true,
|
||||
args: []
|
||||
}],
|
||||
entropyTests: criteria.compressedToDecompressed
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue