forked from p15670423/monkey
Agent: Fix a bug in incompatible os check
web_rce.py checks for incompatible OS on the victim. Bug was that it checked linux twice instead of linux and windows
This commit is contained in:
parent
717801e9ad
commit
68c27969d3
|
@ -413,7 +413,7 @@ class WebRCE(HostExploiter):
|
||||||
"""
|
"""
|
||||||
if not self.host.os.get("type") or (
|
if not self.host.os.get("type") or (
|
||||||
self.host.os["type"] != OperatingSystems.LINUX
|
self.host.os["type"] != OperatingSystems.LINUX
|
||||||
and self.host.os["type"] != OperatingSystems.LINUX
|
and self.host.os["type"] != OperatingSystems.WINDOWS
|
||||||
):
|
):
|
||||||
logger.error("Target's OS was either unidentified or not supported. Aborting")
|
logger.error("Target's OS was either unidentified or not supported. Aborting")
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue