From 0eb655c44bc236b40fef8b545f1fb2ab2dda2f73 Mon Sep 17 00:00:00 2001 From: acepace Date: Sat, 20 Aug 2016 15:28:14 +0300 Subject: [PATCH] Changed Monkey SSH file path to /tmp to not require root. Tiny PEP8 changes --- chaos_monkey/config.py | 6 +++--- chaos_monkey/example.conf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chaos_monkey/config.py b/chaos_monkey/config.py index 99512cc53..b58ad4a5f 100644 --- a/chaos_monkey/config.py +++ b/chaos_monkey/config.py @@ -51,7 +51,7 @@ class Configuration(object): continue if key in ["name", "id", "current_server"]: continue - if self._depth_from_commandline and key=="depth": + if self._depth_from_commandline and key == "depth": continue try: default_value = getattr(Configuration, key) @@ -105,7 +105,7 @@ class Configuration(object): dropper_set_date = True dropper_date_reference_path = r"\windows\system32\kernel32.dll" if sys.platform == "win32" else '/bin/sh' dropper_target_path = r"C:\Windows\monkey.exe" - dropper_target_path_linux = '/bin/monkey' + dropper_target_path_linux = '/tmp/monkey' ########################### # Kill file @@ -145,7 +145,7 @@ class Configuration(object): depth = 2 current_server = "" - #Configuration servers to try to connect to, in this order. + # Configuration servers to try to connect to, in this order. command_servers = [ "41.50.73.31:5000" ] diff --git a/chaos_monkey/example.conf b/chaos_monkey/example.conf index 5207fd698..cd1593189 100644 --- a/chaos_monkey/example.conf +++ b/chaos_monkey/example.conf @@ -35,7 +35,7 @@ "dropper_log_path_linux": "/tmp/user-1562", "dropper_set_date": true, "dropper_target_path": "C:\\Windows\\monkey.exe", - "dropper_target_path_linux": "/bin/monkey", + "dropper_target_path_linux": "/tmp/monkey", "kill_file_path_linux": "/var/run/monkey.not",