cyberchef 9.46.6 → 9.46.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cyberchef",
|
|
3
|
-
"version": "9.46.
|
|
3
|
+
"version": "9.46.7",
|
|
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",
|
|
@@ -9721,7 +9721,7 @@
|
|
|
9721
9721
|
},
|
|
9722
9722
|
"Parse SSH Host Key": {
|
|
9723
9723
|
"module": "Default",
|
|
9724
|
-
"description": "Parses a SSH host key and extracts fields from it.<br>The key type can be:<ul><li>ssh-rsa</li><li>ssh-dss</li><li>ecdsa-sha2</li></ul>The key format can be either Hex or Base64.",
|
|
9724
|
+
"description": "Parses a SSH host key and extracts fields from it.<br>The key type can be:<ul><li>ssh-rsa</li><li>ssh-dss</li><li>ecdsa-sha2</li><li>ssh-ed25519</li></ul>The key format can be either Hex or Base64.",
|
|
9725
9725
|
"infoURL": "https://wikipedia.org/wiki/Secure_Shell",
|
|
9726
9726
|
"inputType": "string",
|
|
9727
9727
|
"outputType": "string",
|
|
@@ -23,7 +23,7 @@ class ParseSSHHostKey extends Operation {
|
|
|
23
23
|
|
|
24
24
|
this.name = "Parse SSH Host Key";
|
|
25
25
|
this.module = "Default";
|
|
26
|
-
this.description = "Parses a SSH host key and extracts fields from it.<br>The key type can be:<ul><li>ssh-rsa</li><li>ssh-dss</li><li>ecdsa-sha2</li></ul>The key format can be either Hex or Base64.";
|
|
26
|
+
this.description = "Parses a SSH host key and extracts fields from it.<br>The key type can be:<ul><li>ssh-rsa</li><li>ssh-dss</li><li>ecdsa-sha2</li><li>ssh-ed25519</li></ul>The key format can be either Hex or Base64.";
|
|
27
27
|
this.infoURL = "https://wikipedia.org/wiki/Secure_Shell";
|
|
28
28
|
this.inputType = "string";
|
|
29
29
|
this.outputType = "string";
|
|
@@ -71,6 +71,8 @@ class ParseSSHHostKey extends Operation {
|
|
|
71
71
|
} else if (keyType.startsWith("ecdsa-sha2")) {
|
|
72
72
|
output += `\nCurve: ${Utils.byteArrayToChars(fromHex(fields[1]))}`;
|
|
73
73
|
output += `\nPoint: 0x${fields.slice(2)}`;
|
|
74
|
+
} else if (keyType === "ssh-ed25519") {
|
|
75
|
+
output += `\nx: 0x${fields[1]}`;
|
|
74
76
|
} else {
|
|
75
77
|
output += "\nUnsupported key type.";
|
|
76
78
|
output += `\nParameters: ${fields.slice(1)}`;
|
|
@@ -49,6 +49,18 @@ Point: 0x046c59592006272250a15070142a6be36d1e45464313f930d985a6e6f0eba3cd39d0367
|
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
name: "SSH Host Key: Ed25519",
|
|
54
|
+
input: "AAAAC3NzaC1lZDI1NTE5AAAAIBOF6r99IkvqGu1kwZrHHIqjpTB5w79bpv67B/Aw3+WJ",
|
|
55
|
+
expectedOutput: `Key type: ssh-ed25519
|
|
56
|
+
x: 0x1385eabf7d224bea1aed64c19ac71c8aa3a53079c3bf5ba6febb07f030dfe589`,
|
|
57
|
+
recipeConfig: [
|
|
58
|
+
{
|
|
59
|
+
op: "Parse SSH Host Key",
|
|
60
|
+
args: ["Base64"]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
52
64
|
{
|
|
53
65
|
name: "SSH Host Key: Extract key",
|
|
54
66
|
input: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiJZ/9W9Ix/Dk9b+K4E+RGCug1AtkGXaJ9vNIY0YHFHLpWsB8DAuh/cGEI9TLbL1gzR2wG+RJNQ2EAQVWe6ypkK63Jm4zw4re+vhEiszpnP889J0h5N9yzyTndesrl4d3cQtv861FcKDPxUJbRALdtl6gwOB7BCL8gsXJLLVLO4EesrbPXD454qpVt7CgJXEXByOFjcIm3XwkdOnXMPHHnMSD7EIN1SvQMD6PfIDrbDd6KQt5QXW/Rc/BsfX5cbUIV1QW5A/GbepXHHKmWRtLC2J/mH3hW2Zq/hITPEaJdG1CtIilQmJaZGXpfGIwFeb0Av9pSL926arZZ6vDi9ctF test@test",
|