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:
vakarisz 2022-06-23 16:30:38 +03:00
parent 717801e9ad
commit 68c27969d3
1 changed files with 1 additions and 1 deletions

View File

@ -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