Implemented readelf-like functionality.

This commit is contained in:
n1073645 2022-06-05 18:35:02 +01:00
parent 3f57711c39
commit 3990ba774f
4 changed files with 939 additions and 1 deletions

View file

@ -113,6 +113,7 @@ import "./tests/JA3SFingerprint.mjs";
import "./tests/HASSH.mjs";
import "./tests/GetAllCasings.mjs";
import "./tests/SIGABA.mjs";
import "./tests/ELFInfo.mjs";
// Cannot test operations that use the File type yet

View file

@ -0,0 +1,20 @@
/**
* @author n1073645 [n1073645@gmail.com]
* @copyright Crown Copyright 2022
* @license Apache-2.0
*/
import TestRegister from "../../lib/TestRegister.mjs";
TestRegister.addTests([
{
name: "ELF Info invalid ELF.",
input: "\x7f\x00\x00\x00",
expectedOutput: "Invalid ELF",
recipeConfig: [
{
op: "ELF Info",
args: [],
},
],
},
]);