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
|
upsert=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
mongo.db.monkey.update(
|
||||||
|
{},
|
||||||
|
{'$addToSet': {'config.' + item_key.split('.')[-1]: item_value}},
|
||||||
|
multi=True
|
||||||
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def creds_add_username(username):
|
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
|
@staticmethod
|
||||||
def creds_add_password(password):
|
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
|
@staticmethod
|
||||||
def creds_add_lm_hash(lm_hash):
|
def creds_add_lm_hash(lm_hash):
|
||||||
|
|
Loading…
Reference in New Issue