forked from p34709852/monkey
Agent: Remove unused function `send_exploit_telemetry` in `HostExploiter`
This commit is contained in:
parent
58703f9b5b
commit
2a8186928d
|
@ -54,17 +54,6 @@ class HostExploiter:
|
||||||
def is_os_supported(self):
|
def is_os_supported(self):
|
||||||
return self.host.os.get("type") in self._TARGET_OS_TYPE
|
return self.host.os.get("type") in self._TARGET_OS_TYPE
|
||||||
|
|
||||||
def send_exploit_telemetry(self, name: str, result: bool):
|
|
||||||
from infection_monkey.telemetry.exploit_telem import ExploitTelem
|
|
||||||
|
|
||||||
ExploitTelem( # stale code
|
|
||||||
name=name,
|
|
||||||
host=self.host,
|
|
||||||
result=result,
|
|
||||||
info=self.exploit_info,
|
|
||||||
attempts=self.exploit_attempts,
|
|
||||||
).send()
|
|
||||||
|
|
||||||
def report_login_attempt(self, result, user, password="", lm_hash="", ntlm_hash="", ssh_key=""):
|
def report_login_attempt(self, result, user, password="", lm_hash="", ntlm_hash="", ssh_key=""):
|
||||||
self.exploit_attempts.append(
|
self.exploit_attempts.append(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue