Template
Upload and query Finding Templates from SysReptor
Upload finding templates
| cat template.json | reptor template
cat template.toml | reptor template
|
Sample finding template
Upload one finding template by using the following structures.
Use a list to upload multiple finding templates.
JSON finding template structure |
---|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | {
"tags": [
"web"
],
"translations": [
{
"language": "en-US",
"is_main": true,
"status": "finished",
"data": {
"title": "My Title",
"description": "My Description"
}
}
]
}
|
TOML finding template structure |
---|
1
2
3
4
5
6
7
8
9
10
11
12 | tags = [
"web",
]
[[translations]]
is_main = true
language = "en-US"
status = "finished"
[translations.data]
title = "My title"
description = "My description"
|
Read finding templates
| reptor template --list # template overview
reptor template --search SQL # template overview, search for keywords
reptor template --search SQL --export plain # print templates for copy&paste
reptor template --search SQL --export plain --language en # filter for language
reptor template --export json # export templates as json
reptor template --search SQL --export json # search for keyword
reptor template --export tar.gz # export all templates as tar.gz (importable via SysReptor web interface)
|
Usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | usage: reptor template [-h] [--list] [--search SEARCH] [--language LANGUAGE]
[--export {tar.gz,json,yaml,plain}] [-o FILENAME]
Queries Finding Templates from SysReptor
optional arguments:
-h, --help show this help message and exit
-o FILENAME, --output FILENAME
Filename for output
--list List all finding templates
--search SEARCH Search for term
--language LANGUAGE Template language for export format "plain", e.g. "en"
--export {tar.gz,json,yaml,plain}
Export templates
|