Skip to content

Commit

Permalink
Removed unused dynamic knowledge service loading functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb R Little authored and Caleb R Little committed Jul 20, 2021
1 parent 08a4c35 commit ba30d92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions app/service/knowledge_svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ class KnowledgeService(KnowledgeServiceInterface, BaseService):

def __init__(self):
self.log = self.add_service('knowledge_svc', self)
target_module = self.get_config('app.knowledge_svc.module')
try:
self.__loaded_knowledge_module = self._load_module(target_module, {})
except Exception as e:
self.log.warning(f"Unable to properly load knowledge service module "
f"{self.get_config('app.knowledge_svc.module')} ({e}). Reverting to default.")
self.__loaded_knowledge_module = BaseKnowledgeService()
self.__loaded_knowledge_module = BaseKnowledgeService()

@staticmethod
def _load_module(module_type, module_info):
Expand Down
1 change: 0 additions & 1 deletion conf/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ app.contact.tunnel.ssh.user_password: s4ndc4t!
app.contact.tcp: 0.0.0.0:7010
app.contact.udp: 0.0.0.0:7011
app.contact.websocket: 0.0.0.0:7012
app.knowledge_svc.module: app.utility.base_knowledge_svc
crypt_salt: REPLACE_WITH_RANDOM_VALUE
encryption_key: ADMIN123
exfil_dir: /tmp/caldera
Expand Down

0 comments on commit ba30d92

Please sign in to comment.