MockHero

xss_string

Security

Generate cross-site scripting (XSS) attack payloads for testing your input sanitization. Verify your app properly escapes user input before it reaches the DOM.

Example Outputs

<script>alert("xss")</script><img onerror=alert(1) src=x><svg onload=alert(1)>

API Usage

Send a POST request to generate xss string data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "xss_string",
          "type": "xss_string"
        }
      ]
    }
  ]
}'

Common Use Cases

  • Security testing
  • Input sanitization verification
  • WAF testing
  • Penetration testing data

Quick Info

Field Type
xss_string
Category
Security
Parameters
None required
Output Format
JSON, CSV, SQL

Try it now

Generate xss string data instantly in the playground.

Generate XSS String + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free