2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-05 23:53:27 +00:00

ESM: Added BackgroundWorkerWaiter for running Magic on output in the background

This commit is contained in:
n1474335
2018-06-03 17:33:13 +01:00
parent 37c8d1b7ea
commit 1ef4f71d8b
6 changed files with 229 additions and 8 deletions

View File

@@ -344,6 +344,11 @@ class Magic {
aScore += a.entropy;
bScore += b.entropy;
// A result with no recipe but matching ops suggests there are better options
if ((!a.recipe.length && a.matchingOps.length) &&
b.recipe.length)
return 1;
return aScore - bScore;
});
}