diff --git a/src/core/operations/ExtractFiles.mjs b/src/core/operations/ExtractFiles.mjs index a837ad60..fce23a9a 100644 --- a/src/core/operations/ExtractFiles.mjs +++ b/src/core/operations/ExtractFiles.mjs @@ -21,9 +21,24 @@ class ExtractFiles extends Operation { constructor() { super(); + // Get the first extension for each signature that can be extracted + let supportedExts = Object.keys(FILE_SIGNATURES).map(cat => { + return FILE_SIGNATURES[cat] + .filter(sig => sig.extractor) + .map(sig => sig.extension.toUpperCase()); + }); + + // Flatten categories and remove duplicates + supportedExts = [].concat(...supportedExts).unique(); + this.name = "Extract Files"; this.module = "Default"; - this.description = "Performs file carving to attempt to extract files from the input.

This operation is currently capable of carving out the following formats:"; + this.description = `Performs file carving to attempt to extract files from the input.

This operation is currently capable of carving out the following formats: + `; this.infoURL = "https://forensicswiki.xyz/wiki/index.php?title=File_Carving"; this.inputType = "ArrayBuffer"; this.outputType = "List";