Minor bugfix for error handling in new custom monkey destination paths feature

This commit is contained in:
Vakaris 2018-08-18 13:14:05 +03:00
parent 5565a80418
commit e3d286dbc0
1 changed files with 3 additions and 3 deletions

View File

@ -381,9 +381,9 @@ class WebRCE(HostExploiter):
LOG.error("Could not figure out what type of monkey server was trying to upload, "
"thus destination path can not be chosen.")
return False
except AttributeError:
LOG.error("Seems like monkey's source configuration property names changed. "
"Can not get destination path to upload monkey")
except KeyError:
LOG.error("Unknown key was found. Please use \"linux\", \"win32\" and \"win64\" keys to initialize "
"custom dict of monkey's destination paths")
return False
def custom_to_dropper_path(self, path):