#!/usr/bin/env bash
# Vector 02: Cross-Site Scripting (XSS)
# Desc: Reflected, Stored, DOM-based XSS detection
# Detect: Forms, search bars, URL parameters, comment sections
# Severity: HIGH
# Tools: curl, custom payloads
vector_xss() {
local target="$1"
local report="$2"
local findings=0
print_info "Testing XSS vectors..."
local xss_payloads=(
""
'">'
"
"
"';alert(1);//"
"\">
"
"