forked from p34709852/monkey
Send log to island is configurable
This commit is contained in:
parent
aa02d8945d
commit
ee1a321416
|
@ -106,6 +106,7 @@ class Configuration(object):
|
|||
dropper_log_path_linux = '/tmp/user-1562'
|
||||
monkey_log_path_windows = '%temp%\\~df1563.tmp'
|
||||
monkey_log_path_linux = '/tmp/user-1563'
|
||||
send_log_to_server = True
|
||||
|
||||
###########################
|
||||
# dropper config
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
"max_iterations": 3,
|
||||
"monkey_log_path_windows": "%temp%\\~df1563.tmp",
|
||||
"monkey_log_path_linux": "/tmp/user-1563",
|
||||
"send_log_to_server": true,
|
||||
"ms08_067_exploit_attempts": 5,
|
||||
"ms08_067_remote_user_add": "Monkey_IUSER_SUPPORT",
|
||||
"ms08_067_remote_user_pass": "Password1!",
|
||||
|
|
|
@ -227,7 +227,8 @@ class ChaosMonkey(object):
|
|||
|
||||
firewall.close()
|
||||
|
||||
self.send_log()
|
||||
if WormConfiguration.send_log_to_server:
|
||||
self.send_log()
|
||||
|
||||
self._singleton.unlock()
|
||||
|
||||
|
|
|
@ -483,6 +483,12 @@ SCHEMA = {
|
|||
"type": "string",
|
||||
"default": "%temp%\\~df1563.tmp",
|
||||
"description": "The fullpath of the monkey log file on Windows"
|
||||
},
|
||||
"send_log_to_server": {
|
||||
"title": "Send log to server",
|
||||
"type": "boolean",
|
||||
"default": True,
|
||||
"description": "Determines whether the monkey sends its log to the Monkey Island server"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue