forked from p15670423/monkey
Added collector and submodule
This commit is contained in:
parent
61a41b407b
commit
4c0321ab93
|
@ -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
|
|
@ -2,3 +2,4 @@ AWS_COLLECTOR = "AwsCollector"
|
||||||
HOSTNAME_COLLECTOR = "HostnameCollector"
|
HOSTNAME_COLLECTOR = "HostnameCollector"
|
||||||
ENVIRONMENT_COLLECTOR = "EnvironmentCollector"
|
ENVIRONMENT_COLLECTOR = "EnvironmentCollector"
|
||||||
PROCESS_LIST_COLLECTOR = "ProcessListCollector"
|
PROCESS_LIST_COLLECTOR = "ProcessListCollector"
|
||||||
|
SCOUTSUITE_COLLECTOR = "ScoutSuiteCollector"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e784fc27ae8311c3c610bccd556d2bef3cd54d63
|
|
@ -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 {}
|
Loading…
Reference in New Issue