This commit is contained in:
Zeecka
2026-01-06 04:37:21 +01:00
parent 9b5f3caf99
commit 2ed2b219de
6 changed files with 415 additions and 3 deletions
+23 -1
View File
@@ -5,7 +5,7 @@ This guide shows you how to add a new image analysis tool to the system.
## Quick Start
1. Create a new file in `analyzers/` from template file `template_analyzer.py`.
2. Register it in `workers.py`
2. Register it in `workers.py`, `config.py` and `aperisolve.js`.
## Basic Template
@@ -52,6 +52,8 @@ class ForemostAnalyzer(SubprocessAnalyzer):
Note the `has_archive=True` parameter.
**If a tool return an archive, it's important to add the worker name in `WORKER_FILES` variable of `config.py`.**
### Tool With Password Support
Like `steghide` or `openstego`:
@@ -139,6 +141,26 @@ if submission.deep_analysis:
])
```
And also in `aperisolve.js` in the `TOOL_ORDER` constant:
```js
const TOOL_ORDER = [
"decomposer",
"exiftool",
"binwalk",
"mytool" // My new tool
"foremost",
"outguess",
"pngcheck",
"pcrt",
"steghide",
"openstego",
"zsteg",
"strings",
"image_resize",
];
```
## Available Methods to Override
| Method | Purpose | Default Behavior |