Added collector and submodule

This commit is contained in:
Shay Nehmad 2020-01-26 18:47:46 +02:00
parent 61a41b407b
commit 4c0321ab93
4 changed files with 21 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "monkey/infection_monkey/system_info/collectors/scoutsuite"]
path = monkey/infection_monkey/system_info/collectors/scoutsuite
url = git@github.com:ShayNehmad/ScoutSuite.git

View File

@ -2,3 +2,4 @@ AWS_COLLECTOR = "AwsCollector"
HOSTNAME_COLLECTOR = "HostnameCollector"
ENVIRONMENT_COLLECTOR = "EnvironmentCollector"
PROCESS_LIST_COLLECTOR = "ProcessListCollector"
SCOUTSUITE_COLLECTOR = "ScoutSuiteCollector"

@ -0,0 +1 @@
Subproject commit e784fc27ae8311c3c610bccd556d2bef3cd54d63

View File

@ -0,0 +1,16 @@
import logging
from common.data.system_info_collectors_names import SCOUTSUITE_COLLECTOR
from infection_monkey.system_info.system_info_collector import SystemInfoCollector
from infection_monkey.system_info.collectors.scoutsuite.ScoutSuite.__main__ import run
logger = logging.getLogger(__name__)
class HostnameCollector(SystemInfoCollector):
def __init__(self):
super().__init__(name=SCOUTSUITE_COLLECTOR)
def collect(self) -> dict:
return {}