forked from p15670423/monkey
Global config updates of creds now apply to running monkeys
Fix issue caused by moving of the credentials to basic tab
This commit is contained in:
parent
89b442be58
commit
7e2e2aa15f
|
@ -837,13 +837,19 @@ class ConfigService:
|
|||
upsert=False
|
||||
)
|
||||
|
||||
mongo.db.monkey.update(
|
||||
{},
|
||||
{'$addToSet': {'config.' + item_key.split('.')[-1]: item_value}},
|
||||
multi=True
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def creds_add_username(username):
|
||||
ConfigService.add_item_to_config_set('exploits.credentials.exploit_user_list', username)
|
||||
ConfigService.add_item_to_config_set('basic.credentials.exploit_user_list', username)
|
||||
|
||||
@staticmethod
|
||||
def creds_add_password(password):
|
||||
ConfigService.add_item_to_config_set('exploits.credentials.exploit_password_list', password)
|
||||
ConfigService.add_item_to_config_set('basic.credentials.exploit_password_list', password)
|
||||
|
||||
@staticmethod
|
||||
def creds_add_lm_hash(lm_hash):
|
||||
|
|
Loading…
Reference in New Issue