diff --git a/boefjes/boefjes/plugins/kat_wpscan/main.py b/boefjes/boefjes/plugins/kat_wpscan/main.py index 17e5a52dad8..a90cf3293d1 100644 --- a/boefjes/boefjes/plugins/kat_wpscan/main.py +++ b/boefjes/boefjes/plugins/kat_wpscan/main.py @@ -10,18 +10,19 @@ def run(boefje_meta: BoefjeMeta) -> list[tuple[set, bytes | str]]: input_ = boefje_meta.arguments["input"] + info_mimetype = {"info/boefje"} - if input_["software"]["name"] != "WordPress" or ( - "netloc" not in input_["ooi"] or "name" not in input_["ooi"]["netloc"].dict() - ): - return [(set(), "")] + if input_["software"]["name"] != "WordPress": + return [(info_mimetype, "Not wordpress.")] + if "netloc" not in input_["ooi"] or "name" not in input_["ooi"]["netloc"].dict(): + return [(info_mimetype, "No hostname available for input OOI.")] hostname = input_["ooi"]["netloc"]["name"] path = input_["ooi"]["path"] scheme = input_["ooi"]["scheme"] if scheme != "https": - return [(set(), "")] + return [(info_mimetype, "To avoid double findings, we only scan https urls.")] url = f"{scheme}://{hostname}{path}"