* encrypted config

This commit is contained in:
maor.rayzin 2018-11-25 14:17:20 +02:00
parent 271c024574
commit d21558e81a
2 changed files with 36 additions and 3 deletions

View File

@ -862,7 +862,37 @@ SCHEMA = {
}
}
}
}
},
'island_configuration': {
'title': 'Island Configuration',
'type': 'object',
'properties':
{
'aws_config':
{
'title': 'AWS Configuration',
'type': 'object',
'properties':
{
'iam_role_id':
{
'title': 'IAM role ID',
'type': 'string'
},
'aws_access_key':
{
'title': 'AWS access key ID',
'type': 'string'
},
'aws_secret_access_key':
{
'title': 'AWS Secret Access Key',
'type': 'string'
}
}
}
}
}
},
"options": {
"collapsed": True
@ -874,7 +904,10 @@ ENCRYPTED_CONFIG_ARRAYS = \
['basic', 'credentials', 'exploit_password_list'],
['internal', 'exploits', 'exploit_lm_hash_list'],
['internal', 'exploits', 'exploit_ntlm_hash_list'],
['internal', 'exploits', 'exploit_ssh_keys']
['internal', 'exploits', 'exploit_ssh_keys'],
['island_configuration', 'aws_config', 'iam_role_id'],
['island_configuration', 'aws_config', 'aws_access_key'],
['island_configuration', 'aws_config', 'aws_secret_access_key'],
]

View File

@ -10,7 +10,7 @@ class ConfigurePageComponent extends AuthComponent {
this.currentSection = 'basic';
this.currentFormData = {};
this.sectionsOrder = ['basic', 'basic_network', 'monkey', 'cnc', 'network', 'exploits', 'internal'];
this.sectionsOrder = ['basic', 'basic_network', 'monkey', 'cnc', 'network', 'exploits', 'internal', 'monkey_island'];
// set schema from server
this.state = {