forked from p15670423/monkey
island: Add ransomware directory path validators to ransomware schema
This commit is contained in:
parent
0a1782a928
commit
73c61ebcf0
|
@ -1,3 +1,5 @@
|
||||||
|
from common.common_consts.validation_formats import VALID_DIR_LINUX, VALID_DIR_WINDOWS
|
||||||
|
|
||||||
RANSOMWARE = {
|
RANSOMWARE = {
|
||||||
"title": "Ransomware",
|
"title": "Ransomware",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -20,6 +22,7 @@ RANSOMWARE = {
|
||||||
"linux_target_dir": {
|
"linux_target_dir": {
|
||||||
"title": "Linux target directory",
|
"title": "Linux target directory",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
"format": VALID_DIR_LINUX,
|
||||||
"default": "",
|
"default": "",
|
||||||
"description": "A path to a directory on Linux systems that contains "
|
"description": "A path to a directory on Linux systems that contains "
|
||||||
"files that you will allow Infection Monkey to encrypt. If no "
|
"files that you will allow Infection Monkey to encrypt. If no "
|
||||||
|
@ -28,6 +31,7 @@ RANSOMWARE = {
|
||||||
"windows_target_dir": {
|
"windows_target_dir": {
|
||||||
"title": "Windows target directory",
|
"title": "Windows target directory",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
"format": VALID_DIR_WINDOWS,
|
||||||
"default": "",
|
"default": "",
|
||||||
"description": "A path to a directory on Windows systems that contains "
|
"description": "A path to a directory on Windows systems that contains "
|
||||||
"files that you will allow Infection Monkey to encrypt. If no "
|
"files that you will allow Infection Monkey to encrypt. If no "
|
||||||
|
|
Loading…
Reference in New Issue