PeXeS is a standalone Python 3.10+ command-line tool that scans websites for cross-site scripting vulnerabilities using Playwright. It verifies findings by detecting dialogs, console output and network activity, and scores confidence to reduce false positives. It is not a Payload CMS plugin and does not integrate with Payload; it needs Python and Playwright browsers.
PeXeS - XSS scanner powered by Playwright.
2
Stars
0
Forks
0
Open Issues
1 years ago
Last Updated
0
Weekly Downloads
v
npm Version
Dependencies
20 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 2 |
| Dec 5, 2026 | 2 |
| Dec 4, 2026 | 2 |
| Dec 3, 2026 | 2 |
| Dec 2, 2026 | 2 |
| Dec 1, 2026 | 2 |
| Nov 30, 2026 | 2 |
| Nov 29, 2026 | 2 |
| Nov 28, 2026 | 2 |
| Nov 27, 2026 | 2 |
| Nov 26, 2026 | 2 |
| Nov 25, 2026 | 2 |
| Nov 24, 2026 | 2 |
| Nov 23, 2026 | 2 |
| Nov 22, 2026 | 2 |
| Nov 21, 2026 | 2 |
| Nov 20, 2026 | 2 |
| Nov 19, 2026 | 2 |
| Nov 18, 2026 | 2 |
| Nov 17, 2026 | 2 |
| Nov 16, 2026 | 2 |
| Nov 15, 2026 | 2 |
| Nov 14, 2026 | 2 |
| Nov 13, 2026 | 2 |
| Nov 12, 2026 | 2 |
| Nov 11, 2026 | 2 |
| Nov 10, 2026 | 2 |
| Nov 9, 2026 | 2 |
| Nov 8, 2026 | 2 |
| Nov 7, 2026 | 2 |
| Nov 6, 2026 | 2 |
| Nov 5, 2026 | 2 |
| Nov 4, 2026 | 2 |
| Nov 3, 2026 | 2 |
| Nov 2, 2026 | 2 |
| Nov 1, 2026 | 2 |
| Oct 31, 2026 | 2 |
| Oct 30, 2026 | 2 |
| Oct 29, 2026 | 2 |
| Oct 28, 2026 | 2 |
| Oct 27, 2026 | 2 |
| Oct 26, 2026 | 2 |
| Oct 25, 2026 | 2 |
| Oct 24, 2026 | 2 |
| Oct 23, 2026 | 2 |
| Oct 22, 2026 | 2 |
| Oct 21, 2026 | 2 |
| Oct 20, 2026 | 2 |
| Oct 19, 2026 | 2 |
| Oct 18, 2026 | 2 |
| Oct 17, 2026 | 2 |
| Oct 16, 2026 | 2 |
| Oct 15, 2026 | 2 |
| Oct 14, 2026 | 2 |
| Oct 13, 2026 | 2 |
| Oct 12, 2026 | 2 |
| Oct 11, 2026 | 2 |
| Oct 10, 2026 | 2 |
| Oct 9, 2026 | 2 |
| Oct 8, 2026 | 2 |
| Oct 7, 2026 | 2 |
| Oct 6, 2026 | 2 |
| Oct 5, 2026 | 2 |
| Oct 4, 2026 | 2 |
| Oct 3, 2026 | 2 |
| Oct 2, 2026 | 2 |
| Oct 1, 2026 | 2 |
| Sep 30, 2026 | 2 |
| Sep 29, 2026 | 2 |
| Sep 28, 2026 | 2 |
| Sep 27, 2026 | 2 |
| Sep 26, 2026 | 2 |
| Sep 25, 2026 | 2 |
| Sep 24, 2026 | 2 |
| Sep 23, 2026 | 2 |
| Sep 22, 2026 | 2 |
| Sep 21, 2026 | 2 |
| Sep 20, 2026 | 2 |
| Sep 19, 2026 | 2 |
| Sep 18, 2026 | 2 |
| Sep 17, 2026 | 2 |
| Sep 16, 2026 | 2 |
| Sep 15, 2026 | 2 |
| Sep 14, 2026 | 2 |
| Sep 13, 2026 | 2 |
| Sep 12, 2026 | 2 |
| Sep 11, 2026 | 2 |
| Sep 10, 2026 | 2 |
| Sep 9, 2026 | 2 |
| Sep 8, 2026 | 2 |
| Sep 7, 2026 | 2 |
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1102069937-root)<a href="https://payloaddirectory.dev/plugins/1102069937-root"><img src="https://payloaddirectory.dev/badge/1102069937-root.svg" alt="Payload Directory"></a>README
PeXeS (Playwright XSS Scanner) is an advanced XSS vulnerability scanner with multi-layer execution verification and industry-leading accuracy. Powered by Playwright, it excels at detecting Cross-Site Scripting (XSS) vulnerabilities with actual execution proof through dialog detection, console monitoring, and network tracking.
Designed for security researchers and bug bounty hunters, PeXeS eliminates false positives through CSP detection and confidence scoring while maintaining high performance through smart concurrency.
PeXeS requires Python 3.10+ and Node.js (for Playwright).
git clone https://github.com/iqbalmh18/pexes.git
cd pexes
bash install.sh
Clone this repository:
git clone https://github.com/iqbalmh18/pexes.git
cd pexes
Create virtual environment:
python3 -m venv .venv
Activate virtual environment:
# Linux/macOS
python3 -m venv .venv
source .venv/bin/activate
# Windows (Command Prompt)
python -m venv .venv
.venv\Scripts\activate
# Windows (PowerShell)
python -m venv .venv
.venv\Scripts\Activate.ps1
Install dependencies:
pip install --upgrade pip
pip install -e .
Install Playwright browsers:
playwright install chromium
Check if installed correctly:
pexes --version
Run a full scan against a target:
pexes scan --url https://example.com --mode all --evidence
Scan a specific URL with default settings:
pexes scan --url https://example.com
Scan with visual browser + DevTools console (for debugging):
pexes scan --url https://example.com --headless false --console
PeXeS supports multiple scan modes, controlled by the --mode argument:
all: Run all enabled scanners (default)url: Scan URL parameters (Reflected XSS)form: Scan HTML forms and inputs (Stored/Reflected XSS)dom: Scan for DOM-based XSS sinksevent: Scan HTML event handlersapi: Scan API endpoints (JSON injection)waf: Detect WAF presence onlyExample:
pexes scan --url https://example.com --mode dom --evidence
| Argument | Type | Default | Description |
|---|---|---|---|
--url | str | Required | Target URL to scan. |
--mode | choice | all | Scan mode: all, url, form, dom, event, api, waf. |
--headless | choice | true | Run browser in headless mode (true/false). |
--console | flag | False | Open DevTools console (only with --headless false). |
--max-tab | int | 5 | Max concurrent tabs (URL scan only). |
--max-payload-dom | int | 3 | Max payloads for DOM scanner. |
--max-payload-event | int | 3 | Max payloads for Event scanner. |
--proxy | str | None | Proxy URL (e.g., http://127.0.0.1:8080). |
--evidence | flag | False | Capture screenshots and DOM snapshots. |
--resume | flag | False | Resume a previously interrupted scan. |
--header | str | None | Custom header (repeatable). |
--cookie | str | None | Custom cookie (repeatable). |
--delay | float | 0.0 | Delay between requests (seconds). |
--waf-evasion | flag | False | Enable automatic WAF evasion. |
--detect-waf | flag | False | Detect WAF presence only. |
--output-format | choice | json | Output format: json, html, md, csv. |
--output-path | path | ./reports | Output file or directory. |
Full Authenticated Scan with Evidence:
pexes scan --url https://example.com/dashboard \
--mode all \
--header "Authorization: Bearer <token>" \
--cookie "session_id=xyz123" \
--evidence \
--max-tab 5
API Fuzzing with Reflection Verification:
pexes scan --url https://api.target.com/v1/user \
--mode api \
--proxy http://127.0.0.1:8080 \
--output-format json
CSP-Protected Site Scan:
pexes scan --url https://google.com \
--mode dom \
--evidence \
--headless true
# Automatically detects CSP blocking and filters false positives
Open browser with DevTools console for real-time monitoring:
pexes scan --url https://example.com \
--mode dom \
--headless false \
--console
Note: DevTools opens in Elements tab by default (Chromium limitation). Click Console tab to view logs.
PeXeS uses a comprehensive verification approach:
Execution Detection (Highest Priority)
Reflection Analysis
False Positive Filtering
Scoring Logic:
Example:
{
"payload": "<script>alert(1)</script>",
"confidence_score": 90,
"confidence_level": "HIGH",
"evidence": {
"dialogs": [{
"type": "alert",
"message": "1",
"timestamp": "2025-11-23T14:54:49.196844"
}]
}
}
PeXeS generates detailed reports in JSON, HTML, Markdown, and CSV formats.
{
"metadata": {
"scanner": "PeXeS",
"version": "1.0.5",
"target": "https://example.com",
"date": "2025-11-23T10:00:00"
},
"summary": {
"total_vulnerabilities": 4,
"risk_level": "HIGH",
"breakdown": {
"url": 4,
"dom": 0,
"form": 0,
"event": 0,
"api": 0
}
},
"vulnerabilities": [
{
"id": "XSS-001",
"type": "Reflected XSS",
"severity": "MEDIUM",
"url": "https://example.com/?q=<payload>",
"payload": "<script>alert(1)</script>",
"confidence_score": 90,
"confidence_level": "HIGH",
"evidence": {
"dialogs": [{
"type": "alert",
"message": "1",
"timestamp": "2025-11-23T14:54:49.196844"
}],
"screenshots": ["reports/evidence/screenshot_001.png"],
"console_logs": ["PEXES execution marker detected"]
}
}
]
}
Generate and View HTML Report:
pexes report --file ./reports/scan.json --html
This command will convert the JSON report to HTML and launch a local server to view it in your browser.
Other Formats:
pexes scan ... --output-format md --output-path report.md
pexes scan ... --output-format csv --output-path report.csv
Manage global settings:
pexes config --get max_tabpexes config --set max_tab 2pexes config --resetpexes/
├── pexes/ # Main package
│ ├── browser/ # Playwright driver and browser management
│ ├── cli/ # Command-line interface arguments
│ ├── core/ # Core engine and controller
│ ├── payloads/ # XSS payload lists and management
│ ├── plugins/ # Plugin system (e.g., WAF evasion)
│ ├── reports/ # Report generation logic
│ ├── scanners/ # Vulnerability scanners (URL, DOM, API, etc.)
│ ├── utils/ # Utilities (XSS detection, evidence, logging)
│ └── main.py # Entry point
├── reports/ # Default output directory for scan reports
├── README.md # Documentation
├── pyproject.toml # Project configuration and dependencies
└── requirements.txt # Python dependencies
└── install.sh # PeXeS installer scripts
Detect WAF:
pexes scan --url https://example.com --detect-waf
Scan with Evasion:
pexes scan --url https://example.com --mode all --waf-evasion
pexes payload --listpexes payload --add custom.jsonpexes payload --remove payload_nameFast Scan (Higher FP risk):
pexes scan --url https://example.com \
--max-payload-dom 2 \
--max-payload-event 2 \
--delay 0
Thorough Scan (Slower, more accurate):
pexes scan --url https://example.com \
--max-payload-dom 10 \
--max-payload-event 10 \
--delay 1.0 \
--evidence
Issue: No vulnerabilities detected on known vulnerable site
--evidence flag is enabled--headless false --console to visually verifyIssue: Too many false positives
confidence_level in reports (ignore FALSE_POSITIVE)Issue: Scan too slow
--max-payload-dom 3--max-tab 5 (URL scan only)--evidence flagMIT License. See LICENSE for details.
Contributions welcome! Please submit pull requests or open issues for bugs/features.
Made with ❤️ for Security Research
Remember: With great power comes great responsibility
Topics
payload plugin whitehat
Security testing for Payload sites with severity-ranked alerts stored in the site's own database
73295/wk0v3
payload plugin openapi
Generate an OpenAPI 3.0, 3.1 or 3.2 spec from your Payload config and serve it with Scalar or Swagger UI
701.4k/wk18v4
payload auto translate
Automatic content translation for localized Payload collections using a LibreTranslate instance
6348/wk2v3
payload plugin tooling
Shared lint, format, TypeScript, build, test and CI config for developing Payload plugins
6039/wk0v4
payload revalidate
Field-driven Next.js cache revalidation for Payload with id-keyed cached finders and a dependency map
59240/wk18v3
payload cli
Command-line access to Payload collections and globals through the Local API, built for AI agents and humans
588/wk13v3