Vulnerabilities
Confirm reflected and blind XSS on named parameters
Parameter XSS analysis with optional blind callbacks.
Ruby · MIT license · upstream archived
Free plan: 1 user, 3 execution slots, no card.
overview
What xspear does
xspear tests web parameters for cross-site scripting. Point --url at a target, name fields with --param, and it analyzes reflection before firing payloads to confirm where injection executes.
Blind XSS is supported through -b so injections that fire later in an admin panel or log still report back. Drive POST with --data, add --cookie or --headers for session context, load --custom-payload JSON, and choose cli, json, or html via --output.
Compared with dalfox, xspear stays on focused Ruby parameter analysis and confirmation. Compared with nuclei, it stays on XSS instead of multi-class templates. Run it after discovery yields live parameterized URLs; use --no-xss when you only want reflection context first. Trickest runs it as a managed Vulnerabilities node.
source github.com/hahwul/XSpear
use cases
xspear use cases
Test parameters for reflected XSS
Point xspear at a URL and its parameters so it analyzes reflection and confirms which inputs let injected script execute.
Catch blind XSS with a callback
Supply a blind XSS vector with -b so injections that only fire later, in an admin view or log, still report back through your callback host.
Drive custom payloads
Load a custom payload JSON file with --custom-payload to test the specific vectors a target's filtering requires, beyond the built-in set.
Emit JSON or HTML for reporting
Choose --output so confirmed findings flow into an automated pipeline as JSON or land as a readable HTML report.
reference
xspear inputs and flags
| Name | Type | Flag | Description |
|---|---|---|---|
| target-url | STRING | --url | Target URL to scan for XSS. |
| param | STRING | --param | Parameters to test. |
| post-data | STRING | --data | POST method body data. |
| cookie | STRING | --cookie | Cookie to add to requests. |
| blind-vector | STRING | -b | Blind XSS vector for XSS Hunter, ezXSS, HBXSS, etc. |
| custom-payload-json-file | FILE | --custom-payload | Load a custom payload JSON file. |
| output-format | STRING | --output | Output format: cli, json, html. |
| threads | STRING | --threads | Number of threads (default 10). |
Showing key inputs. xspear exposes 15 inputs in total.
Full flag reference (15 inputs)
| Name | Type | Flag | Description |
|---|---|---|---|
| param | STRING | --param | Test paramters |
| cookie | STRING | --cookie | Add Cookie |
| no-xss | BOOLEAN | --no-xss | Don't test XSS, only parameters analysis |
| headers | STRING | --headers | Add HTTP Headers |
| raw-ssl | BOOLEAN | --raw-ssl | http/https switch for burp raw file |
| threads | STRING | --threads | Threads , default: 10 |
| post-data | STRING | --data | POST Method Body data |
| target-url | STRING | --url | Target Url |
| config-file | FILE | --config | Use config file |
| blind-vector | STRING | -b | Add vector of Blind XSS. With XSS Hunter, ezXSS, HBXSS... e.g: https://hahwul.xss.ht |
| burp-raw-file | FILE | --raw | Load raw file(e.g raw_sample.txt) |
| output-format | STRING | --output | Output format (cli , json, html) |
| verbose-level | STRING | --verbose | Show log depth. 0: quite mode(only result) 1: show scanning status(default) 2: show scanning logs 3: show detail log(req/res) |
| test-all-params | BOOLEAN | --test-all-params | Test to all params(include not reflected) |
| custom-payload-json-file | FILE | --custom-payload | Load custom payload json file |
example
xspear command examples
# xspear: reflected XSS test on query params, JSON output
xspear --url 'https://app.example.com/search?q=test&lang=en' --param q,lang --threads 10 --output json[*] Target: https://app.example.com/search?q=test&lang=en
[+] Reflected: q on https://app.example.com/search
[+] Reflected: lang on https://app.example.com/search
[!] XSS confirmed: q -> https://app.example.com/search?q=<payload>
[!] XSS confirmed: lang -> https://app.example.com/search?lang=<payload>
[*] Blind vector armed for callback on admin.example.com
[*] 2 confirmed XSS / 2 reflected params
[*] Results written for app.example.comguidance
xspear vs alternatives
Use xspear when you want focused XSS testing on known parameters, including blind XSS via -b. For hidden parameter discovery first, run x8; for broad multi-class scanning, run nuclei alongside it.
faq
xspear FAQ
related
More Vulnerabilities tools
commix
Automates OS command injection detection and exploitation.
dalfox
Parameter mining and XSS testing with headless verification.
log4j-scan
Remote scanner for Log4Shell RCE, CVE-2021-44228.
react2shell-scanner
Confirm the RSC and Next.js RCE CVEs on a URL or host list.
sqlmap
Detect and exploit SQL injection on authorized web targets.
dnsreaper
Subdomain takeover scanner with cloud-zone intake.
Run xspear yourself
A URL feeds XSpear, which analyzes its parameters and fires payloads to confirm cross-site scripting, writing the verified findings as a queryable output.
Facts on this page come from the live Trickest tool library.