forked from p34709852/monkey
Agent: Store MSSQLExploiter error message in self.exploit_result
This commit is contained in:
parent
43c8528409
commit
62005e6f88
|
@ -89,10 +89,14 @@ class MSSQLExploiter(HostExploiter):
|
||||||
|
|
||||||
self.remove_temp_dir()
|
self.remove_temp_dir()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(
|
error_message = (
|
||||||
f"Unhandled exception occurred when trying "
|
f"An unexpected error occurred when trying "
|
||||||
f"to exploit MSSQL on host {self.host}: {e}"
|
f"to exploit MSSQL on host {self.host}: {e}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
logger.error(error_message)
|
||||||
|
self.exploit_result.error_message = error_message
|
||||||
|
|
||||||
return self.exploit_result
|
return self.exploit_result
|
||||||
|
|
||||||
self.exploit_result.propagation_success = True
|
self.exploit_result.propagation_success = True
|
||||||
|
|
Loading…
Reference in New Issue