Merge pull request #1029 from guardicore/config_template_fixes

Config template fixes
This commit is contained in:
Mike Salvatore 2021-03-09 10:41:23 -05:00 committed by GitHub
commit efedab8854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 13 deletions

View File

@ -10,5 +10,6 @@ class Elastic(ConfigTemplate):
config_values.update({ config_values.update({
"basic.exploiters.exploiter_classes": ["ElasticGroovyExploiter"], "basic.exploiters.exploiter_classes": ["ElasticGroovyExploiter"],
"internal.classes.finger_classes": ["PingScanner", "HTTPFinger", "ElasticFinger"],
"basic_network.scope.subnet_scan_list": ["10.2.2.4", "10.2.2.5"] "basic_network.scope.subnet_scan_list": ["10.2.2.4", "10.2.2.5"]
}) })

View File

@ -7,15 +7,16 @@ from envs.monkey_zoo.blackbox.config_templates.config_template import ConfigTemp
class WmiPth(ConfigTemplate): class WmiPth(ConfigTemplate):
config_values = copy(BaseTemplate.config_values) config_values = copy(BaseTemplate.config_values)
config_values.update({ config_values.update(
{
"basic.exploiters.exploiter_classes": ["WmiExploiter"], "basic.exploiters.exploiter_classes": ["WmiExploiter"],
"basic_network.scope.subnet_scan_list": ["10.2.2.15"], "basic_network.scope.subnet_scan_list": ["10.2.2.15"],
"basic.credentials.exploit_password_list": ["Password1!"], "basic.credentials.exploit_password_list": ["Password1!"],
"basic.credentials.exploit_user_list": ["Administrator", "basic.credentials.exploit_user_list": ["Administrator", "m0nk3y", "user"],
"m0nk3y", "internal.classes.finger_classes": ["PingScanner", "HTTPFinger"],
"user"], "internal.exploits.exploit_ntlm_hash_list": [
"internal.classes.finger_classes": ["PingScanner", "5da0889ea2081aa79f6852294cba4a5e",
"HTTPFinger"], "50c9987a6bf1ac59398df9f911122c9b",
"internal.classes.exploits.exploit_ntlm_hash_list": ["5da0889ea2081aa79f6852294cba4a5e", ],
"50c9987a6bf1ac59398df9f911122c9b"] }
}) )

View File

@ -5,5 +5,9 @@
This script is used to generate config files for manual tests. This script is used to generate config files for manual tests.
Config file will be generated according to the templates in `envs/monkey_zoo/blackbox/config_templates`. Config file will be generated according to the templates in `envs/monkey_zoo/blackbox/config_templates`.
Run `envs/monkey_zoo/blackbox/utils/config_generation_script.py island_ip:5000` to populate 1. Reset the Island config to contain default configuration.
2. Run `envs/monkey_zoo/blackbox/utils/config_generation_script.py island_ip:5000` to populate
`envs/monkey_zoo/blackbox/utils/generated_configs` directory with configuration files. `envs/monkey_zoo/blackbox/utils/generated_configs` directory with configuration files.
!! It's important to target the Island you'll be testing, because configs contain Island's IPs
in the configuration !!