MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / __init__

Method __init__

modules/webscanner/xss_scanner.py:47–57  ·  view source on GitHub ↗
(
        self,
        custom_payloads: Optional[list[str]] = None,
        seclists_path: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

45
46 def __init__(
47 self,
48 custom_payloads: list[str] | None = None,
49 seclists_path: str | None = None,
50 ):
51 super().__init__()
52 self.payloads = custom_payloads or load_wordlist(
53 self.SECLISTS_RELATIVE_PATHS,
54 fallback=self.PAYLOADS,
55 seclists_path=seclists_path,
56 )
57
58 async def run(self, target: Target) -> ScanResult:
59 """Scan target for XSS vulnerabilities."""
60 result = self.create_result(target)

Callers

nothing calls this directly

Calls 1

load_wordlistFunction · 0.90

Tested by

no test coverage detected