mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Added detection patterns for non-standard Base64 alphabets, Base58 and Base32.
This commit is contained in:
parent
fc2828fee3
commit
a1624a9215
3 changed files with 279 additions and 66 deletions
|
@ -264,13 +264,12 @@ const FlowControl = {
|
|||
* @returns {Object} The updated state of the recipe.
|
||||
*/
|
||||
runMagic: function(state) {
|
||||
const dish = state.dish;
|
||||
const dish = state.dish,
|
||||
magic = new Magic(dish.get(Dish.ARRAY_BUFFER));
|
||||
|
||||
const magic = new Magic(dish.get(Dish.ARRAY_BUFFER));
|
||||
|
||||
const output = JSON.stringify(magic.detectLanguage(), null, 2) + "\n\n" +
|
||||
const output = JSON.stringify(magic.findMatchingOps(), null, 2) + "\n\n" +
|
||||
JSON.stringify(magic.detectFileType(), null, 2) + "\n\n" +
|
||||
JSON.stringify(magic.findMatchingOps(), null, 2);
|
||||
JSON.stringify(magic.detectLanguage(), null, 2);
|
||||
|
||||
dish.set(output, Dish.STRING);
|
||||
return state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue