diff --git a/chaos_monkey/config.py b/chaos_monkey/config.py index 01ad9a566..a7c4abadb 100644 --- a/chaos_monkey/config.py +++ b/chaos_monkey/config.py @@ -208,6 +208,8 @@ class Configuration(object): # smb/wmi exploiter smb_download_timeout = 300 # timeout in seconds + smb_service_name = "InfectionMonkey" + # system info collection collect_system_info = True diff --git a/chaos_monkey/example.conf b/chaos_monkey/example.conf index 69e559275..671eca8e2 100644 --- a/chaos_monkey/example.conf +++ b/chaos_monkey/example.conf @@ -66,6 +66,7 @@ "range_size": 30, "rdp_use_vbs_download": true, "smb_download_timeout": 300, + "smb_service_name": "InfectionMonkey", "retry_failed_explotation": true, "scanner_class": "TcpScanner", "self_delete_in_cleanup": true, diff --git a/chaos_monkey/exploit/smbexec.py b/chaos_monkey/exploit/smbexec.py index e0571a6a1..6f2177264 100644 --- a/chaos_monkey/exploit/smbexec.py +++ b/chaos_monkey/exploit/smbexec.py @@ -141,7 +141,7 @@ class SmbExploiter(HostExploiter): sc_handle = resp['lpScHandle'] # start the monkey using the SCM - resp = scmr.hRCreateServiceW(scmr_rpc, sc_handle, "Chaos Monkey", "Chaos Monkey", + resp = scmr.hRCreateServiceW(scmr_rpc, sc_handle, self._config.smb_service_name, self._config.smb_service_name, lpBinaryPathName=cmdline) service = resp['lpServiceHandle']