Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Jul 18, 2024
1 parent 5ef6e28 commit 0b0d821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artemis/modules/nuclei.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _scan(self, templates: List[str], targets: List[str]) -> List[Dict[str, Any]
self.log.debug("Running command: %s", " ".join(command))
call_result = check_output_log_on_error(command, self.log, stderr=subprocess.STDOUT)

call_result_utf8 = data.decode("utf-8", errors="ignore")
call_result_utf8 = call_result.decode("utf-8", errors="ignore")
call_result_utf8_lines = call_result_utf8.split("\n")

for line in call_result_utf8_lines:
Expand All @@ -189,7 +189,7 @@ def _scan(self, templates: List[str], targets: List[str]) -> List[Dict[str, Any]
self.log.debug("%s", line)
lines.append(line)

if "context deadline exceeded" in data_utf:
if "context deadline exceeded" in call_result_utf8:
self.log.info("Detected 'context deadline exceeded', retrying with longer timeout")
new_milliseconds_per_request_candidates = [
item for item in milliseconds_per_request_candidates if item > milliseconds_per_request
Expand Down

0 comments on commit 0b0d821

Please sign in to comment.