mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Magic rebuild
This commit is contained in:
parent
d78730edc0
commit
728f8e65d6
38 changed files with 742 additions and 344 deletions
|
@ -42,13 +42,32 @@ for (const opObj in Ops) {
|
|||
outputType: op.presentType,
|
||||
flowControl: op.flowControl,
|
||||
manualBake: op.manualBake,
|
||||
args: op.args
|
||||
args: op.args,
|
||||
};
|
||||
|
||||
if ("patterns" in op) {
|
||||
operationConfig[op.name].patterns = op.patterns;
|
||||
if ("checks" in op) {
|
||||
if ("input" in op.checks) {
|
||||
operationConfig[op.name].input = {};
|
||||
if ("regex" in op.checks.input) {
|
||||
operationConfig[op.name].input.regex = op.checks.input.regex;
|
||||
}
|
||||
if ("entropy" in op.checks.input) {
|
||||
operationConfig[op.name].input.entropy = op.checks.input.entropy;
|
||||
}
|
||||
}
|
||||
if ("output" in op.checks) {
|
||||
operationConfig[op.name].output = {};
|
||||
if ("regex" in op.checks.output) {
|
||||
operationConfig[op.name].output.regex = op.checks.output.regex;
|
||||
}
|
||||
if ("entropy" in op.checks.output) {
|
||||
operationConfig[op.name].output.entropy = op.checks.output.entropy;
|
||||
}
|
||||
if ("mime" in op.checks.output) {
|
||||
operationConfig[op.name].output.mime = op.checks.output.mime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!(op.module in modules))
|
||||
modules[op.module] = {};
|
||||
modules[op.module][op.name] = opObj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue