From 99785236720bfe4c4912832298573b24e8dccd6b Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Mon, 20 Jan 2020 15:58:06 +0200 Subject: [PATCH] Fixed configuration bug - didn't use the same instance of WormConfiguration --- monkey/infection_monkey/config.py | 4 ++-- monkey/infection_monkey/system_info/system_info_collector.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/infection_monkey/config.py b/monkey/infection_monkey/config.py index e1b1ece83..49aa38426 100644 --- a/monkey/infection_monkey/config.py +++ b/monkey/infection_monkey/config.py @@ -1,6 +1,6 @@ import hashlib -import os import json +import os import sys import uuid from abc import ABCMeta @@ -125,7 +125,7 @@ class Configuration(object): finger_classes = [] exploiter_classes = [] - system_info_collectors_classes = ["EnvironmentCollector", "AwsCollector"] + system_info_collectors_classes = [] # how many victims to look for in a single scan iteration victims_max_find = 100 diff --git a/monkey/infection_monkey/system_info/system_info_collector.py b/monkey/infection_monkey/system_info/system_info_collector.py index c511c1e86..8c0b6aa65 100644 --- a/monkey/infection_monkey/system_info/system_info_collector.py +++ b/monkey/infection_monkey/system_info/system_info_collector.py @@ -1,4 +1,4 @@ -from config import WormConfiguration +from infection_monkey.config import WormConfiguration from infection_monkey.utils.plugins.plugin import Plugin from abc import ABCMeta, abstractmethod