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
|
@ -7,7 +7,6 @@
|
|||
import Operation from "../Operation.mjs";
|
||||
import Utils from "../Utils.mjs";
|
||||
import {fromHex} from "../lib/Hex.mjs";
|
||||
import magicObject from "../lib/MagicObject.mjs";
|
||||
import * as criteria from "../lib/MagicCriteria.mjs";
|
||||
|
||||
/**
|
||||
|
@ -28,20 +27,20 @@ class FromHexContent extends Operation {
|
|||
this.inputType = "string";
|
||||
this.outputType = "byteArray";
|
||||
this.args = [];
|
||||
this.checks = new magicObject([
|
||||
{
|
||||
match: "^\\s*.*?\\|([0-9a-f]{2})+\\|.*$",
|
||||
flags: "i",
|
||||
magic: true,
|
||||
args: []
|
||||
}
|
||||
],
|
||||
null,
|
||||
null,
|
||||
this.checks =
|
||||
{
|
||||
input: [3, 4],
|
||||
output: criteria.entropyOfText
|
||||
});
|
||||
inRegexes: [
|
||||
{
|
||||
match: "^\\s*.*?\\|([0-9a-f]{2})+\\|.*$",
|
||||
flags: "i",
|
||||
magic: true,
|
||||
args: []
|
||||
}],
|
||||
entropyTests: {
|
||||
input: [3, 4],
|
||||
output: criteria.entropyOfText
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue