From 373a25d5f62405ac079bb7ded47511ee68094ff6 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 8 Feb 2022 08:41:00 -0500 Subject: [PATCH] Agent: Improve comments in HTTPFingerprinter --- monkey/infection_monkey/network/http_fingerprinter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/network/http_fingerprinter.py b/monkey/infection_monkey/network/http_fingerprinter.py index 5ebc2c514..190e056ef 100644 --- a/monkey/infection_monkey/network/http_fingerprinter.py +++ b/monkey/infection_monkey/network/http_fingerprinter.py @@ -18,7 +18,8 @@ logger = logging.getLogger(__name__) class HTTPFingerprinter(IFingerprinter): """ - Goal is to recognise HTTP servers, where what we currently care about is apache. + Queries potential HTTP(S) ports and attempt to determine the server software that handles the + HTTP requests. """ def get_host_fingerprint( @@ -51,7 +52,6 @@ def _query_potential_http_server(host: str, port: int) -> Tuple[Optional[str], O http = f"http://{host}:{port}" https = f"https://{host}:{port}" - # try http, we don't optimise for 443 for url, ssl in ((https, True), (http, False)): # start with https and downgrade server_header_contents = _get_server_from_headers(url)