Agent: Use == to compare OperatingSystems enum in Log4Shell

This commit is contained in:
Ilija Lazoroski 2022-06-24 11:11:19 +02:00
parent fb67586a4c
commit b605f16c4f
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class Log4ShellExploiter(WebRCE):
}
def _build_java_class(self, exploit_command: str) -> bytes:
if OperatingSystems.LINUX in self.host.os["type"]:
if OperatingSystems.LINUX == self.host.os["type"]:
return build_exploit_bytecode(exploit_command, LINUX_EXPLOIT_TEMPLATE_PATH)
else:
return build_exploit_bytecode(exploit_command, WINDOWS_EXPLOIT_TEMPLATE_PATH)