mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
extra signatures
This commit is contained in:
parent
728f8e65d6
commit
2ba37af109
3 changed files with 73 additions and 61 deletions
|
@ -44,23 +44,27 @@ class EscapeUnicodeCharacters extends Operation {
|
||||||
"value": true
|
"value": true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
this.patterns = [
|
this.checks = {
|
||||||
{
|
input: {
|
||||||
match: "\\\\u(?:[\\da-f]{4,6})",
|
regex: [
|
||||||
flags: "i",
|
{
|
||||||
args: ["\\u"]
|
match: "\\\\u(?:[\\da-f]{4,6})",
|
||||||
},
|
flags: "i",
|
||||||
{
|
args: ["\\u"]
|
||||||
match: "%u(?:[\\da-f]{4,6})",
|
},
|
||||||
flags: "i",
|
{
|
||||||
args: ["%u"]
|
match: "%u(?:[\\da-f]{4,6})",
|
||||||
},
|
flags: "i",
|
||||||
{
|
args: ["%u"]
|
||||||
match: "U\\+(?:[\\da-f]{4,6})",
|
},
|
||||||
flags: "i",
|
{
|
||||||
args: ["U+"]
|
match: "U\\+(?:[\\da-f]{4,6})",
|
||||||
},
|
flags: "i",
|
||||||
];
|
args: ["U+"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -33,43 +33,47 @@ class FromBinary extends Operation {
|
||||||
"value": BIN_DELIM_OPTIONS
|
"value": BIN_DELIM_OPTIONS
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
this.patterns = [
|
this.checks = {
|
||||||
{
|
input: {
|
||||||
match: "^(?:[01]{8})+$",
|
regex: [
|
||||||
flags: "",
|
{
|
||||||
args: ["None"]
|
match: "^(?:[01]{8})+$",
|
||||||
},
|
flags: "",
|
||||||
{
|
args: ["None"]
|
||||||
match: "^(?:[01]{8})(?: [01]{8})*$",
|
},
|
||||||
flags: "",
|
{
|
||||||
args: ["Space"]
|
match: "^(?:[01]{8})(?: [01]{8})*$",
|
||||||
},
|
flags: "",
|
||||||
{
|
args: ["Space"]
|
||||||
match: "^(?:[01]{8})(?:,[01]{8})*$",
|
},
|
||||||
flags: "",
|
{
|
||||||
args: ["Comma"]
|
match: "^(?:[01]{8})(?:,[01]{8})*$",
|
||||||
},
|
flags: "",
|
||||||
{
|
args: ["Comma"]
|
||||||
match: "^(?:[01]{8})(?:;[01]{8})*$",
|
},
|
||||||
flags: "",
|
{
|
||||||
args: ["Semi-colon"]
|
match: "^(?:[01]{8})(?:;[01]{8})*$",
|
||||||
},
|
flags: "",
|
||||||
{
|
args: ["Semi-colon"]
|
||||||
match: "^(?:[01]{8})(?::[01]{8})*$",
|
},
|
||||||
flags: "",
|
{
|
||||||
args: ["Colon"]
|
match: "^(?:[01]{8})(?::[01]{8})*$",
|
||||||
},
|
flags: "",
|
||||||
{
|
args: ["Colon"]
|
||||||
match: "^(?:[01]{8})(?:\\n[01]{8})*$",
|
},
|
||||||
flags: "",
|
{
|
||||||
args: ["Line feed"]
|
match: "^(?:[01]{8})(?:\\n[01]{8})*$",
|
||||||
},
|
flags: "",
|
||||||
{
|
args: ["Line feed"]
|
||||||
match: "^(?:[01]{8})(?:\\r\\n[01]{8})*$",
|
},
|
||||||
flags: "",
|
{
|
||||||
args: ["CRLF"]
|
match: "^(?:[01]{8})(?:\\r\\n[01]{8})*$",
|
||||||
},
|
flags: "",
|
||||||
];
|
args: ["CRLF"]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -33,14 +33,18 @@ class ParseQRCode extends Operation {
|
||||||
"value": false
|
"value": false
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
this.patterns = [
|
this.checks = {
|
||||||
{
|
input: {
|
||||||
"match": "^(?:\\xff\\xd8\\xff|\\x89\\x50\\x4e\\x47|\\x47\\x49\\x46|.{8}\\x57\\x45\\x42\\x50|\\x42\\x4d)",
|
regex: [
|
||||||
"flags": "",
|
{
|
||||||
"args": [false],
|
"match": "^(?:\\xff\\xd8\\xff|\\x89\\x50\\x4e\\x47|\\x47\\x49\\x46|.{8}\\x57\\x45\\x42\\x50|\\x42\\x4d)",
|
||||||
"useful": true
|
"flags": "",
|
||||||
|
"args": [false],
|
||||||
|
"useful": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
];
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue