Config is now evenly namespaced by exactly 2 layers

This commit is contained in:
Itay Mizeretz 2017-09-13 11:44:20 +03:00
parent 4b948438aa
commit ba291b577b
1 changed files with 99 additions and 105 deletions

View File

@ -396,41 +396,41 @@ SCHEMA = {
"type": "boolean", "type": "boolean",
"default": True, "default": True,
"description": "Determines whether the monkey should skip the exploit if the monkey's file is already on the remote machine" "description": "Determines whether the monkey should skip the exploit if the monkey's file is already on the remote machine"
}
}
},
"credentials": {
"title": "Credentials",
"type": "object",
"properties": {
"exploit_user_list": {
"title": "Exploit user list",
"type": "array",
"uniqueItems": True,
"items": {
"type": "string"
},
"default": [
"Administrator",
"root",
"user"
],
"description": "List of usernames to use on exploits using credentials"
}, },
"credentials": { "exploit_password_list": {
"title": "Credentials", "title": "Exploit password list",
"type": "object", "type": "array",
"properties": { "uniqueItems": True,
"exploit_user_list": { "items": {
"title": "Exploit user list", "type": "string"
"type": "array", },
"uniqueItems": True, "default": [
"items": { "Password1!",
"type": "string" "1234",
}, "password",
"default": [ "12345678"
"Administrator", ],
"root", "description": "List of password to use on exploits using credentials"
"user"
],
"description": "List of usernames to use on exploits using credentials"
},
"exploit_password_list": {
"title": "Exploit password list",
"type": "array",
"uniqueItems": True,
"items": {
"type": "string"
},
"default": [
"Password1!",
"1234",
"password",
"12345678"
],
"description": "List of password to use on exploits using credentials"
}
}
} }
} }
}, },
@ -670,80 +670,74 @@ SCHEMA = {
} }
} }
}, },
"scanners": { "tcp_scanner": {
"title": "Scanners", "title": "TCP scanner",
"type": "object", "type": "object",
"properties": { "properties": {
"tcp_scanner": { "HTTP_PORTS": {
"title": "TCP scanner", "title": "HTTP ports",
"type": "object", "type": "array",
"properties": { "uniqueItems": True,
"HTTP_PORTS": { "items": {
"title": "HTTP ports", "type": "integer"
"type": "array", },
"uniqueItems": True, "default": [
"items": { 80,
"type": "integer" 8080,
}, 443,
"default": [ 8008
80, ],
8080, "description": "List of ports the monkey will check if are being used for HTTP"
443,
8008
],
"description": "List of ports the monkey will check if are being used for HTTP"
},
"tcp_target_ports": {
"title": "TCP target ports",
"type": "array",
"uniqueItems": True,
"items": {
"type": "integer"
},
"default": [
22,
2222,
445,
135,
3389,
80,
8080,
443,
8008
],
"description": "List of TCP ports the monkey will check whether they're open"
},
"tcp_scan_interval": {
"title": "TCP scan interval",
"type": "integer",
"default": 200,
"description": "Time to sleep (in milliseconds) between scans"
},
"tcp_scan_timeout": {
"title": "TCP scan timeout",
"type": "integer",
"default": 3000,
"description": "Maximum time (in milliseconds) to wait for TCP response"
},
"tcp_scan_get_banner": {
"title": "TCP scan - get banner",
"type": "boolean",
"default": True,
"description": "Determines whether the TCP scan should try to get the banner"
}
}
}, },
"ping_scanner": { "tcp_target_ports": {
"title": "Ping scanner", "title": "TCP target ports",
"type": "object", "type": "array",
"properties": { "uniqueItems": True,
"ping_scan_timeout": { "items": {
"title": "Ping scan timeout", "type": "integer"
"type": "integer", },
"default": 1000, "default": [
"description": "Maximum time (in milliseconds) to wait for ping response" 22,
} 2222,
} 445,
135,
3389,
80,
8080,
443,
8008
],
"description": "List of TCP ports the monkey will check whether they're open"
},
"tcp_scan_interval": {
"title": "TCP scan interval",
"type": "integer",
"default": 200,
"description": "Time to sleep (in milliseconds) between scans"
},
"tcp_scan_timeout": {
"title": "TCP scan timeout",
"type": "integer",
"default": 3000,
"description": "Maximum time (in milliseconds) to wait for TCP response"
},
"tcp_scan_get_banner": {
"title": "TCP scan - get banner",
"type": "boolean",
"default": True,
"description": "Determines whether the TCP scan should try to get the banner"
}
}
},
"ping_scanner": {
"title": "Ping scanner",
"type": "object",
"properties": {
"ping_scan_timeout": {
"title": "Ping scan timeout",
"type": "integer",
"default": 1000,
"description": "Maximum time (in milliseconds) to wait for ping response"
} }
} }
} }