From 78b8ef4bd331676f854a3941f3b60d88cbc0d430 Mon Sep 17 00:00:00 2001 From: itay Date: Sun, 23 Jun 2019 14:45:36 +0300 Subject: [PATCH] exploit_host returns '_exploit_host''s return value --- monkey/infection_monkey/exploit/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/infection_monkey/exploit/__init__.py b/monkey/infection_monkey/exploit/__init__.py index 126b3f579..6aa77733c 100644 --- a/monkey/infection_monkey/exploit/__init__.py +++ b/monkey/infection_monkey/exploit/__init__.py @@ -50,8 +50,9 @@ class HostExploiter(object): def exploit_host(self): self.pre_exploit() - self._exploit_host() + result = self._exploit_host() self.post_exploit() + return result def pre_exploit(self): self.set_start_time()