Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ybadaoui-ostorlab committed Nov 14, 2024
1 parent 8a4ae80 commit c0f1655
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions agent/exploits/cve_2019_16278.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c0f1655

Please sign in to comment.