From bc824fecb9a5f6086dbb16f94b47f0ea7d22d9af Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 21:50:19 +0000 Subject: [PATCH] fix(wpprobe): use json.load instead of yaml.safe_load for output parsing wpprobe outputs JSON but on_cmd_done was parsing it with yaml.safe_load, causing a ParserError when the file contained JSON objects. Co-authored-by: Olivier Cervello --- secator/tasks/wpprobe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/secator/tasks/wpprobe.py b/secator/tasks/wpprobe.py index f512927ab..4174ee40f 100644 --- a/secator/tasks/wpprobe.py +++ b/secator/tasks/wpprobe.py @@ -1,7 +1,7 @@ +import json import os import re import click -import yaml import shlex from secator.decorators import task @@ -62,7 +62,7 @@ def on_cmd_done(self): yield Info(message=f'JSON results saved to {self.output_path}') with open(self.output_path, 'r') as f: - results = yaml.safe_load(f.read()) + results = json.load(f) if not results or 'url' not in results: yield Warning(message='No results found !') return