mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
WIP tidy up. WHy is dish being passed back with chef.bake now?
This commit is contained in:
parent
573a292e16
commit
9094e8bde9
6 changed files with 7 additions and 12 deletions
|
@ -9,8 +9,6 @@ import {fromBase64, toBase64} from "./lib/Base64";
|
|||
import {fromHex} from "./lib/Hex";
|
||||
import {fromDecimal} from "./lib/Decimal";
|
||||
import {fromBinary} from "./lib/Binary";
|
||||
import { fstat } from "fs";
|
||||
|
||||
|
||||
/**
|
||||
* Utility functions for use in operations, the core framework and the stage.
|
||||
|
|
|
@ -24,7 +24,7 @@ if (!fs.existsSync(dir)) {
|
|||
// Find all operation files
|
||||
const opObjs = [];
|
||||
fs.readdirSync(path.join(dir, "../operations")).forEach(file => {
|
||||
if (!file.endsWith(".mjs") || file === "index.mjs" || file === "DetectFileType.mjs" || file === "Fork.mjs" || file === "GenerateQRCode.mjs" || file === "Magic.mjs" || file === "ParseQRCode.mjs" || file === "PlayMedia.mjs" || file === "RenderImage.mjs" || file === "ScanForEmbeddedFiles.mjs" || file === "SplitColourChannels.mjs") return;
|
||||
if (!file.endsWith(".mjs") || file === "index.mjs") return;
|
||||
opObjs.push(file.split(".mjs")[0]);
|
||||
});
|
||||
|
||||
|
|
|
@ -132,8 +132,6 @@ class Tar extends Operation {
|
|||
tarball.writeBytes(input);
|
||||
tarball.writeEndBlocks();
|
||||
|
||||
console.log("here");
|
||||
|
||||
return new File([new Uint8Array(tarball.bytes)], args[0]);
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,6 @@ class Untar extends Operation {
|
|||
* @returns {html}
|
||||
*/
|
||||
async present(files) {
|
||||
console.log("err....");
|
||||
return await Utils.displayFilesAsHTML(files);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue