From efa0c5beb4ca4d8ea2e7fc4ea74fdb82a122d948 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 4 Mar 2022 17:05:35 -0500 Subject: [PATCH] Agent: Format HTTPFingerprinter with Black --- .../network_scanning/http_fingerprinter.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monkey/infection_monkey/network_scanning/http_fingerprinter.py b/monkey/infection_monkey/network_scanning/http_fingerprinter.py index f5dcfac64..25e96d4a2 100644 --- a/monkey/infection_monkey/network_scanning/http_fingerprinter.py +++ b/monkey/infection_monkey/network_scanning/http_fingerprinter.py @@ -25,11 +25,11 @@ class HTTPFingerprinter(IFingerprinter): """ def get_host_fingerprint( - self, - host: str, - _: PingScanData, - port_scan_data: Dict[int, PortScanData], - options: Dict, + self, + host: str, + _: PingScanData, + port_scan_data: Dict[int, PortScanData], + options: Dict, ) -> FingerprintData: services = {} http_ports = set(options.get("http_ports", [])) @@ -85,7 +85,7 @@ def _get_http_headers(url: str) -> Optional[Dict[str, Any]]: def _get_open_http_ports( - allowed_http_ports: Set, port_scan_data: Dict[int, PortScanData] + allowed_http_ports: Set, port_scan_data: Dict[int, PortScanData] ) -> Iterable[int]: open_ports = (psd.port for psd in port_scan_data.values() if psd.status == PortStatus.OPEN) return (port for port in open_ports if port in allowed_http_ports)