wshawk
WebSocket Security Scanner
2.8K
WSHawk v2.0 is a production-grade WebSocket security scanner with advanced features including real vulnerability verification, intelligent mutation, and comprehensive session security testing.
WSHawk is the only open-source WebSocket scanner that provides:
SQL Injection • XSS • Command Injection • XXE • SSRF • NoSQL Injection • Path Traversal • LDAP Injection • SSTI • Open Redirect • Session Security Issues
pip install wshawk
# Optional: For browser-based XSS verification
playwright install chromium
# Pull from Docker Hub
docker pull wshawk/wshawk:latest
# Run WSHawk
docker run --rm wshawk/wshawk ws://target.com
# Defensive validation
docker run --rm wshawk/wshawk wshawk-defensive ws://target.com
See Docker Guide for detailed usage.
WSHawk provides 3 easy ways to scan WebSocket applications:
wshawk ws://target.com
Perfect for CI/CD pipelines and quick security assessments.
wshawk-interactive
Shows interactive menu to select specific tests. Best for learning and manual testing.
# Basic scan
wshawk-advanced ws://target.com
# With Playwright XSS verification
wshawk-advanced ws://target.com --playwright
# Custom rate limiting
wshawk-advanced ws://target.com --rate 5
# All features enabled
wshawk-advanced ws://target.com --full
| Feature | wshawk | wshawk-interactive | wshawk-advanced |
|---|---|---|---|
| Ease of Use | ★★★ | ★★★ | ★★ |
| Flexibility | ★ | ★★ | ★★★ |
| All Features | ✓ | ✓ | ✓ |
| Menu Selection | ✗ | ✓ | ✗ |
| CLI Options | ✗ | ✗ | ✓ |
| Best For | Automation | Learning | Advanced Users |
All methods include:
WSHawk generates comprehensive HTML reports with:
Reports saved as: wshawk_report_YYYYMMDD_HHMMSS.html
wshawk-advanced --help
Options:
--playwright Enable browser-based XSS verification
--rate N Set max requests per second (default: 10)
--full Enable ALL features
--no-oast Disable OAST testing
WSHawk now includes a Defensive Validation Module designed for blue teams to validate their security controls.
# Run defensive validation tests
wshawk-defensive ws://your-server.com
1. DNS Exfiltration Prevention
2. Bot Detection Effectiveness
3. CSWSH (Cross-Site WebSocket Hijacking)
4. WSS Protocol Security Validation
See Defensive Validation Documentation for detailed usage and remediation guidance.
For integration into custom scripts:
import asyncio
from wshawk.scanner_v2 import WSHawkV2
scanner = WSHawkV2("ws://target.com")
scanner.use_headless_browser = True
scanner.use_oast = True
asyncio.run(scanner.run_intelligent_scan())
See Advanced Usage for more examples.
WSHawk is designed for:
Always obtain proper authorization before testing.
MIT License - see LICENSE file
Regaan (@noobforanonymous)
Contributions welcome! See CONTRIBUTING.md
WSHawk v2.0 - Professional WebSocket Security Scanner
Built for the security community
Content type
Image
Digest
sha256:e5a57ef2b…
Size
65.7 MB
Last updated
about 10 hours ago
docker pull rothackers/wshawk