mirror of
https://github.com/gchq/CyberChef
synced 2026-01-06 10:33:18 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ccc1613cf | ||
|
|
9730ce1f6a | ||
|
|
3086c25079 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "cyberchef",
|
"name": "cyberchef",
|
||||||
"version": "9.50.3",
|
"version": "9.50.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cyberchef",
|
"name": "cyberchef",
|
||||||
"version": "9.50.3",
|
"version": "9.50.4",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cyberchef",
|
"name": "cyberchef",
|
||||||
"version": "9.50.3",
|
"version": "9.50.4",
|
||||||
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
|
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
|
||||||
"author": "n1474335 <n1474335@gmail.com>",
|
"author": "n1474335 <n1474335@gmail.com>",
|
||||||
"homepage": "https://gchq.github.io/CyberChef",
|
"homepage": "https://gchq.github.io/CyberChef",
|
||||||
|
|||||||
@@ -79,6 +79,9 @@ class UNIXTimestampToWindowsFiletime extends Operation {
|
|||||||
flipped += result.charAt(i);
|
flipped += result.charAt(i);
|
||||||
flipped += result.charAt(i + 1);
|
flipped += result.charAt(i + 1);
|
||||||
}
|
}
|
||||||
|
if (result.length % 2 !== 0) {
|
||||||
|
flipped += "0" + result.charAt(0);
|
||||||
|
}
|
||||||
result = flipped;
|
result = flipped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,10 @@ class WindowsFiletimeToUNIXTimestamp extends Operation {
|
|||||||
if (format === "Hex (little endian)") {
|
if (format === "Hex (little endian)") {
|
||||||
// Swap endianness
|
// Swap endianness
|
||||||
let result = "";
|
let result = "";
|
||||||
for (let i = input.length - 2; i >= 0; i -= 2) {
|
if (input.length % 2 !== 0) {
|
||||||
|
result += input.charAt(input.length - 1);
|
||||||
|
}
|
||||||
|
for (let i = input.length - input.length % 2 - 2; i >= 0; i -= 2) {
|
||||||
result += input.charAt(i);
|
result += input.charAt(i);
|
||||||
result += input.charAt(i + 1);
|
result += input.charAt(i + 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user