cyberchef 9.34.1 → 9.34.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/package.json +1 -1
- package/src/core/Utils.mjs +2 -1
- package/src/core/operations/DeriveEVPKey.mjs +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/gchq/CyberChef/actions?query=workflow%3A%22Master+Build%2C+Test+%26+Deploy%22)
|
|
4
4
|
[](https://lgtm.com/projects/g/gchq/CyberChef/context:javascript)
|
|
5
|
-
[](https://david-dm.org/gchq/CyberChef)
|
|
6
5
|
[](https://www.npmjs.com/package/cyberchef)
|
|
7
6
|
[](https://github.com/gchq/CyberChef/blob/master/LICENSE)
|
|
8
7
|
[](https://gitter.im/gchq/CyberChef?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cyberchef",
|
|
3
|
-
"version": "9.34.
|
|
3
|
+
"version": "9.34.2",
|
|
4
4
|
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
|
|
5
5
|
"author": "n1474335 <n1474335@gmail.com>",
|
|
6
6
|
"homepage": "https://gchq.github.io/CyberChef",
|
package/src/core/Utils.mjs
CHANGED
|
@@ -723,7 +723,8 @@ class Utils {
|
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
if (removeScriptAndStyle) {
|
|
726
|
-
htmlStr = recursiveRemove(/<
|
|
726
|
+
htmlStr = recursiveRemove(/<script[^>]*>.*?<\/script>/gi, htmlStr);
|
|
727
|
+
htmlStr = recursiveRemove(/<style[^>]*>.*?<\/style>/gi, htmlStr);
|
|
727
728
|
}
|
|
728
729
|
return htmlStr.replace(/<[^>]+>/g, "");
|
|
729
730
|
}
|
|
@@ -67,7 +67,7 @@ class DeriveEVPKey extends Operation {
|
|
|
67
67
|
iterations = args[2],
|
|
68
68
|
hasher = args[3],
|
|
69
69
|
salt = Utils.convertToByteString(args[4].string, args[4].option),
|
|
70
|
-
key = CryptoJS.EvpKDF(passphrase, salt, {
|
|
70
|
+
key = CryptoJS.EvpKDF(passphrase, salt, { // lgtm [js/insufficient-password-hash]
|
|
71
71
|
keySize: keySize,
|
|
72
72
|
hasher: CryptoJS.algo[hasher],
|
|
73
73
|
iterations: iterations,
|