mirror of
https://github.com/gchq/CyberChef
synced 2025-01-08 10:38:46 +00:00
fix scan embedded files, bson. Only RemoveExif remains
This commit is contained in:
parent
223e2e0b73
commit
1f771a9e01
1 changed files with 12 additions and 11 deletions
|
@ -198,8 +198,10 @@ Full hash: $2a$10$ODeP1.6fMsb.ENk2ngPUCO7qTGVPyHA9TqDVcyupyed8FjsiF65L6`;
|
|||
}),
|
||||
|
||||
it("BSON Serialise / Deserialise", () => {
|
||||
const result = chef.BSONDeserialise(chef.BSONSerialise({"phrase": "Mouth-watering"}));
|
||||
assert.strictEqual(result.toString(), "{\"phrase\": \"Mouth-watering\"}");
|
||||
const result = chef.BSONDeserialise(chef.BSONSerialise("{\"phrase\": \"Mouth-watering\"}"));
|
||||
assert.strictEqual(result.toString(), `{
|
||||
"phrase": "Mouth-watering"
|
||||
}`);
|
||||
}),
|
||||
|
||||
it("Bzip2 Decompress", () => {
|
||||
|
@ -783,8 +785,7 @@ jmPGsv1elXxVzqs58UZLD2c3vBhGkU2BV6kRKh+lj/EcVrzsFhGCz/7DKxPoDHLS
|
|||
}),
|
||||
|
||||
it("Remove EXIF", () => {
|
||||
const picBuffer = fs.readFileSync("test/tests/nodeApi/sampleData/pic.jpg");
|
||||
const result = chef.removeEXIF(picBuffer);
|
||||
const result = chef.removeEXIF(fs.readFileSync("test/tests/nodeApi/sampleData/pic.jpg"));
|
||||
assert.strictEqual(result.toString().length(), 4582);
|
||||
}),
|
||||
|
||||
|
|
Loading…
Reference in a new issue