Refactored HostExploiter to have pre_exploit and post_exploit methods

This commit is contained in:
VakarisZ 2019-06-19 10:38:59 +03:00
parent 09c62b7ccf
commit eded13f610
1 changed files with 7 additions and 1 deletions

View File

@ -49,8 +49,14 @@ class HostExploiter(object):
'lm_hash': lm_hash, 'ntlm_hash': ntlm_hash, 'ssh_key': ssh_key})
def exploit_host(self):
self.set_start_time()
self.pre_exploit()
self._exploit_host()
self.post_exploit()
def pre_exploit(self):
self.set_start_time()
def post_exploit(self):
self.set_finish_time()
@abstractmethod