Add PCRT
This commit is contained in:
+23
-1
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user