From 28c7121f750214ad152d876bb357386cb58e5ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Zaj=C4=85c?= Date: Thu, 18 Jul 2024 22:38:23 +0200 Subject: [PATCH] . --- artemis/modules/nuclei.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/artemis/modules/nuclei.py b/artemis/modules/nuclei.py index 39e3cf957..21199459f 100644 --- a/artemis/modules/nuclei.py +++ b/artemis/modules/nuclei.py @@ -128,8 +128,7 @@ def _scan(self, templates: List[str], targets: List[str]) -> List[Dict[str, Any] milliseconds_per_request_candidates = [ milliseconds_per_request_initial, - max(500, milliseconds_per_request_initial * 2), - max(2000, milliseconds_per_request_initial * 4), + max(200, milliseconds_per_request_initial * 2), ] if Config.Miscellaneous.CUSTOM_USER_AGENT: @@ -190,7 +189,10 @@ def _scan(self, templates: List[str], targets: List[str]) -> List[Dict[str, Any] lines.append(line) if "context deadline exceeded" in call_result_utf8: - self.log.info("Detected 'context deadline exceeded', retrying with longer timeout") + self.log.info( + "Detected %d occurencies of 'context deadline exceeded', retrying with longer timeout", + call_result_utf8.count("context deadline exceeded"), + ) new_milliseconds_per_request_candidates = [ item for item in milliseconds_per_request_candidates if item > milliseconds_per_request ]