From 6ab62c6f56f6135063b9248dce212c91e7e34b15 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 11 Feb 2022 23:14:50 +0530 Subject: [PATCH] Docs: Change adding system info collectors' documentation to refer to existing files --- docs/content/development/adding-system-info-collectors.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/content/development/adding-system-info-collectors.md b/docs/content/development/adding-system-info-collectors.md index e865bcfd6..353bd6c0d 100644 --- a/docs/content/development/adding-system-info-collectors.md +++ b/docs/content/development/adding-system-info-collectors.md @@ -39,7 +39,7 @@ class MyNewCollector(SystemInfoCollector): #### Implementation -Override the `collect` method with your own implementation. See the `process_list_collector.py` System Info Collector for reference. You can log during collection as well. +Override the `collect` method with your own implementation. See the `aws_collector.py` System Info Collector for reference. You can log during collection as well. ### Modify the Monkey Island @@ -59,7 +59,7 @@ You'll need to add your Sytem Info Collector to the `monkey_island/cc/services/c "enum": [ "HostnameCollector" ], - "title": "Which Environment this machine is on (on prem/cloud)", + "title": "Which environment this machine is on (on prem/cloud)", "attack_techniques": [] }, { <================================= @@ -96,6 +96,6 @@ Also, you can add the System Info Collector to be used by default by adding it t #### Telemetry processing -1. Add a process function under `monkey_island/cc/telemetry/processing/system_info_collectors/{DATA_NAME_HERE}.py`. The function should parse the System Info Collector's result. See `processing/system_info_collectors/environment.py` for example. +1. Add a process function under `monkey_island/cc/telemetry/processing/system_info_collectors/{DATA_NAME_HERE}.py`. The function should parse the System Info Collector's result. See `processing/system_info_collectors/aws.py` for example. 2. Add that function to `SYSTEM_INFO_COLLECTOR_TO_TELEMETRY_PROCESSORS` under `monkey_island/cc/services/telemetry/processing/system_info_collectors/system_info_telemetry_dispatcher.py`.