From c0f16554421b417ff3ad0fbb96d06b7bba11ae15 Mon Sep 17 00:00:00 2001 From: ybadaoui-ostorlab Date: Thu, 14 Nov 2024 09:01:20 +0100 Subject: [PATCH] resolve comments --- agent/exploits/cve_2019_16278.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/agent/exploits/cve_2019_16278.py b/agent/exploits/cve_2019_16278.py index 6c53856..d7a306d 100644 --- a/agent/exploits/cve_2019_16278.py +++ b/agent/exploits/cve_2019_16278.py @@ -47,15 +47,11 @@ def accept(self, target: definitions.Target) -> bool: data=self.accept_request.data, ).prepare() resp = self.session.send(req, timeout=DEFAULT_TIMEOUT.seconds) - print("\nresp", resp) except requests_exceptions.RequestException: return False server_header = resp.headers.get("Server", "") - if "nostromo" in server_header: - return True - - return False + return "nostromo" in server_header def check(self, target: definitions.Target) -> list[definitions.Vulnerability]: """Rule to detect specific vulnerability on a specific target.