Spaces:
Runtime error
Runtime error
File size: 257 Bytes
427c870 |
1 2 3 4 5 6 7 8 |
def generate_payload(spec: str) -> str:
if 'xss' in spec.lower():
return '<script>alert(document.domain)</script>'
if 'sql' in spec.lower():
return "' OR '1'='1' -- "
return f"# Custom payload for {spec}\necho 'Inject here...'"
|