Island: Fix formatting in config

This commit is contained in:
Ilija Lazoroski 2021-11-23 15:20:19 +01:00
parent 56f07e0188
commit 839024f243
3 changed files with 7 additions and 2 deletions

View File

@ -6,4 +6,4 @@ from monkey_island.cc.services.config import ConfigService
class PropagationCredentials(flask_restful.Resource): class PropagationCredentials(flask_restful.Resource):
def get(self): def get(self):
return {'propagation_credentials': ConfigService.get_config_propagation_credentials()} return {"propagation_credentials": ConfigService.get_config_propagation_credentials()}

View File

@ -411,7 +411,9 @@ class ConfigService:
@staticmethod @staticmethod
def get_config_propagation_credentials(): def get_config_propagation_credentials():
return { return {
"exploit_user_list": ConfigService.get_config_value(USER_LIST_PATH, should_decrypt=False), "exploit_user_list": ConfigService.get_config_value(
USER_LIST_PATH, should_decrypt=False
),
"exploit_password_list": ConfigService.get_config_value( "exploit_password_list": ConfigService.get_config_value(
PASSWORD_LIST_PATH, should_decrypt=False PASSWORD_LIST_PATH, should_decrypt=False
), ),

View File

@ -209,3 +209,6 @@ scan_tcp_port
fingerprint fingerprint
interrupt interrupt
MockPuppet MockPuppet
ControlChannel
should_agent_stop
get_credentials_for_propagation