WordPress Analysis & Debugging Utility Helper
AI-Augmented Offensive Security Platform for Authorized Penetration Testing
Features β’ What's New β’ Installation β’ Usage β’ AI Integration β’ Documentation
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AUTHORIZED USE ONLY β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β This tool is designed for AUTHORIZED security testing and research. β
β NEVER use this tool against systems without explicit permission. β
β β
β Unauthorized access to computer systems is illegal under: β
β β’ Computer Fraud and Abuse Act (CFAA) - United States β
β β’ Computer Misuse Act - United Kingdom β
β β’ Similar laws in virtually every country β
β β
β YOU are responsible for your actions. The authors assume no liability. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
WADUH v4.0 Phantom Edition isn't just another WordPress scanner β it's an AI-augmented offensive security platform that combines the power of multiple professional tools with intelligent vulnerability analysis into one unified solution.
| Capability | Description |
|---|---|
| 100+ Attack Vectors | From basic enumeration to advanced XXE, SSRF, deserialization, and template injection |
| π€ AI-Powered Analysis | Local (Ollama) or cloud (OpenAI/Anthropic/Groq) AI correlates vulnerabilities into exploit chains |
| βοΈ Attack Graph Builder | Automatically maps kill chains with success probability and stealth ratings |
| π΅οΈ Adaptive Evasion | Profile-based scanning (stealth/normal/aggressive) with WAF-specific payload encoding |
| π JavaScript Analysis | Extracts hidden endpoints, detects hardcoded secrets, finds source maps, identifies DOM XSS |
| π Subdomain Hunting | CT log enumeration, DNS brute-force, and subdomain takeover detection |
| π‘οΈ WAF Detection & Bypass | Identifies 8+ WAFs and auto-adapts payloads with 8 encoding techniques |
| βΈοΈ Session Persistence | Pause and resume scans with --session-name / --resume |
| Multi-Tool Integration | Exports to Metasploit, Burp Suite, ZAP, Nuclei, and SQLMap |
| Professional Reporting | AI-generated executive summaries, attack narratives, and remediation priorities |
Provider Fallback Chain: Ollama β LM Studio β OpenAI β Anthropic β Groq β Offline
| Feature | Description |
|---|---|
| Vulnerability Correlation | AI identifies exploit chains across individual findings |
| Executive Summaries | AI generates professional pentest report narratives |
| Attack Narratives | Step-by-step exploitation stories from AI |
| WAF Bypass Suggestions | AI recommends evasion strategies for detected WAFs |
| Risk Contextualization | "Outdated version + exposed XMLRPC + weak users = CRITICAL" |
| False Positive Reduction | AI validates finding confidence levels |
| Data Sanitization | Strips target-identifying info before sending to cloud APIs |
Refactored from a single 5,000-line file into 8 specialized packages:
waduh/
βββ waduh.py # CLI entry point
βββ core/ # Engine, models, config, session
βββ ai/ # AI providers & analysis
βββ scanners/ # Modular scanner modules
βββ evasion/ # WAF bypass & payload encoding
βββ exploitation/ # Attack graph builder
βββ reporting/ # Report generators
βββ utils/ # HTTP client, logging
βββ data/ # Fingerprints, WAF signatures
| Scanner | Capability |
|---|---|
| JavaScript Analyzer | Endpoint extraction, secret detection, source map discovery, DOM XSS sink/source analysis |
| Subdomain Scanner | Certificate Transparency logs (crt.sh), DNS brute-force, CNAME takeover detection |
| Attack Graph Builder | Kill chain mapping, success probability calculation, Mermaid diagram generation |
| Issue | v3 Behavior | v4 Fix |
|---|---|---|
| SSTI Detection | Checked for '49' in response (many false positives) |
Canary-based: random a*b calculation, verifies result isn't naturally present |
| Blind SQLi | Single time check (false positives from slow servers) | 3-step confirmation: baseline β delay β no-delay |
| Profile | Rate | Evasion | Use Case |
|---|---|---|---|
stealth |
2-7s delays | Level 4-5 | Production targets, WAF evasion |
normal |
0.5-2s delays | Level 2 | Standard assessments |
aggressive |
0.1-0.3s delays | Level 0 | Lab environments |
8 payload encoding techniques: URL, double-URL, Unicode, hex, case alternation, SQL comment injection, whitespace substitution, HTML entities β with presets for Cloudflare, ModSecurity, Sucuri, Wordfence, AWS WAF, and Imperva.
flowchart TB
subgraph Input
CLI["waduh.py CLI (48 flags)"]
Config[Environment Variables]
Session[Saved Sessions]
end
subgraph Engine["WADUH v4.0 Engine (8 Phases)"]
direction TB
P1["Phase 1: Reconnaissance"]
P2["Phase 2: Enumeration"]
P3["Phase 3: Vulnerability Testing"]
P4["Phase 4: Advanced Testing"]
P5["Phase 5: AI Analysis"]
P6["Phase 6: Attack Graph"]
P7["Phase 7: CVSS Scoring"]
P8["Phase 8: Reporting"]
end
subgraph AI["AI Engine"]
Ollama[Ollama / LM Studio]
Cloud[OpenAI / Anthropic / Groq]
Analyzer[Vulnerability Correlator]
end
subgraph Scanners
FP[Fingerprinting]
WAF[WAF Detection]
Enum[Plugin/Theme/User Enum]
JS[JavaScript Analyzer]
Sub[Subdomain Scanner]
Inject[Injection Tests]
end
subgraph Output
JSON[JSON Report]
HTML[HTML Report]
MD[Exploitation Guide]
MSF[Metasploit RC]
AG[Attack Graph]
AIS[AI Executive Summary]
end
Input --> Engine
P1 --> P2 --> P3 --> P4 --> P5 --> P6 --> P7 --> P8
Engine --> Scanners
P5 --> AI
P8 --> Output
- WordPress Version Detection β 5 detection methods (meta tags, readme.html, RSS feeds, hash-based fingerprinting, asset versioning)
- Plugin & Theme Enumeration β Automatic detection with WPScan API vulnerability checks
- User Enumeration β Author archives, REST API users, login form analysis
- REST API Analysis β Complete endpoint mapping with 100+ routes analyzed
- WAF Detection β Cloudflare, Sucuri, Wordfence, ModSecurity, AWS WAF, Akamai, Imperva, F5 BIG-IP
- JavaScript Analysis β Hidden endpoint extraction, hardcoded secret detection, source map discovery
- Subdomain Enumeration β CT logs, DNS brute-force, takeover detection
| Category | Tests |
|---|---|
| Web Attacks | SQL Injection (time/error/union-based with confirmation), XSS, XXE, SSRF, SSTI (canary-based) |
| Authentication | Auth bypass, CSRF protection, JWT security, session management |
| File Security | Path traversal/LFI, file upload security, backup exposure |
| Config Issues | Security headers, CORS, cookies, SSL/TLS configuration |
| Information Disclosure | API keys, secrets, version exposure, directory listing |
| JavaScript | DOM XSS sinks, hardcoded credentials, exposed source maps |
| Feature | Description |
|---|---|
| Exploit Chain Mapping | AI correlates individual findings into multi-step attack paths |
| Executive Summary | Professional narrative for C-level stakeholders |
| Risk Contextualization | AI considers WAF, hosting, WP version in risk assessment |
| Attack Playbook | Prioritized exploitation guide with exact commands |
| Remediation Priorities | Fixes ranked by effort-to-impact ratio |
- JSON Reports β Machine-readable output with full finding details
- Markdown Exploitation Guides β Step-by-step exploitation with AI attack narratives
- HTML Reports β Professional styled reports with severity visualization
- Attack Graph β Mermaid diagrams showing kill chain paths
- Metasploit Export β Ready-to-use .rc resource files
- Nuclei Templates β YAML templates for continuous scanning
- Burp Suite XML β Import findings directly into Burp
- SQLMap Commands β Copy-paste SQL injection testing
- Webhook Notifications β Slack, Discord, Microsoft Teams
- Python 3.8 or higher
- pip (Python package manager)
- (Optional) Ollama for local AI analysis
# Clone the repository
git clone https://github.com/Masriyan/Waduh.git
cd Waduh
# Install required dependencies
pip install -r requirements.txt
# Verify installation
python waduh.py --help| Package | Purpose | Required |
|---|---|---|
requests |
HTTP requests | β Yes |
colorama |
Terminal colors | β Yes |
urllib3 |
URL handling | β Yes |
pyyaml |
Config files | Optional |
jinja2 |
HTML reports | Optional |
rich |
Progress bars | Optional |
Local AI (Recommended for OPSEC β zero data exfiltration):
# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh
# Pull a model
ollama pull llama3:8b
# WADUH auto-detects running Ollama
python waduh.py -u http://target.com --ai-analyzeCloud AI (More powerful, requires API key):
# Set environment variable
export WADUH_AI_KEY="your-api-key"
# Or use directly
python waduh.py -u http://target.com --ai-provider openai --ai-api-key "sk-..."# Get free token at https://wpscan.com/api
export WPSCAN_API_TOKEN="your-token-here"# Interactive mode
python waduh.py
# Direct URL scan
python waduh.py -u https://target-wordpress.compython waduh.py -u https://target.com \
--advanced \
--ai-analyze \
--ai-summary \
--detect-waf \
--attack-graph \
--scan-js \
--cvss-scoring \
--export-html \
-o ./reportspython waduh.py -u https://target.com \
--stealth \
--ai-provider ollama \
--ai-analyze \
--rotate-ua \
--proxy http://127.0.0.1:8080python waduh.py -u https://target.com \
--scan-js \
--scan-subdomains \
--scan-secrets \
--attack-graph# Create targets.txt with one URL per line
python waduh.py --target-list targets.txt --parallel 5# Save session
python waduh.py -u https://target.com --session-name my_pentest --advanced
# Resume later
python waduh.py --resume my_pentest| Option | Description |
|---|---|
-u, --url |
Target URL |
--target-list |
File with list of target URLs |
--parallel |
Parallel scans (default: 3) |
-d, --deep |
Deep scan mode |
--advanced |
Enable ALL advanced precision tests |
--scan-profile |
stealth / normal / aggressive |
--stealth |
Shortcut for stealth profile |
--evasion-level |
0-5 (default: 2) |
| Option | Description |
|---|---|
--ai-provider |
auto / ollama / openai / anthropic / groq |
--ai-model |
Specific model (e.g., llama3:8b, gpt-4o-mini) |
--ai-api-key |
API key (or set WADUH_AI_KEY env var) |
--ai-analyze |
Enable AI vulnerability correlation & attack chains |
--ai-summary |
Generate AI executive summary |
--no-ai |
Disable all AI features |
| Option | Description |
|---|---|
--scan-js |
JavaScript endpoint & secret analysis |
--scan-subdomains |
Subdomain enumeration (CT logs + DNS) |
--scan-secrets |
Scan for exposed API keys/secrets |
--scan-cors |
Test CORS misconfigurations |
--scan-cookies |
Analyze cookie security |
--scan-ssl |
Analyze SSL/TLS configuration |
--scan-graphql |
Test GraphQL endpoints |
--detect-waf |
Detect WAF presence |
--attack-graph |
Build attack path graph |
--enhanced-backups |
Enhanced backup fuzzing (50+ patterns) |
| Option | Description |
|---|---|
--test-xxe |
XML External Entity (XXE) |
--test-ssrf |
Server-Side Request Forgery |
--test-sqli |
Advanced SQL injection (confirmed) |
--test-ssti |
Server-Side Template Injection (canary-based) |
--test-auth |
Authentication bypass |
--test-csrf |
CSRF protection analysis |
--test-jwt |
JWT token security |
--test-deserial |
Insecure deserialization |
--test-traversal |
Path traversal / LFI |
--test-cmdi |
OS command injection |
--test-upload |
File upload analysis |
| Option | Description |
|---|---|
-r, --rate-limit |
Delay between requests (default: 0.5s) |
--proxy |
HTTP/SOCKS proxy (e.g., http://127.0.0.1:8080) |
--rotate-ua |
Rotate User-Agent headers |
--dns-callback |
OOB testing callback URL |
| Option | Description |
|---|---|
--export-html |
Professional HTML security report |
--export-metasploit |
Metasploit .rc resource file |
--export-nuclei |
Nuclei YAML templates |
--export-burp |
Burp Suite XML |
--export-sqlmap |
SQLMap commands |
--generate-pocs |
Proof-of-concept scripts |
--generate-wordlist |
Custom wordlist from site content |
--wpscan-token |
WPScan API token |
--webhook |
Webhook URL (Slack/Discord/Teams) |
--compare-with |
Compare with previous scan JSON |
--cvss-scoring |
CVSS v3.1 scoring |
--session-name |
Name scan for save/resume |
--resume |
Resume from saved session |
βββββββββββββββββββββββ
β Scan Findings β
β (vulns, info leaks,β
β misconfigs, users)β
βββββββββββ¬ββββββββββββ
β
βΌ
βββββββββββββββββββββββ ββββββββββββββββββββ
β AI Provider Chain ββββββΆβ Local: Ollama β β Zero exfiltration
β (auto-fallback) β β Local: LM Studio β
β β β Cloud: OpenAI β β Data sanitized
β β β Cloud: Anthropic β β before sending
β β β Cloud: Groq β
βββββββββββ¬ββββββββββββ ββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β AI Analysis β
β β’ Exploit chains β
β β’ Risk rating β
β β’ Executive summaryβ
β β’ Attack narrative β
β β’ WAF bypass advice β
βββββββββββββββββββββββ
| Aspect | Local (Ollama) | Cloud (OpenAI/Anthropic) |
|---|---|---|
| Privacy | β Zero data exfiltration | |
| Speed | Depends on hardware | Fast (API) |
| Quality | Good (llama3, mistral) | Excellent (GPT-4o, Claude) |
| Cost | Free | Pay per token |
| Internet | Not required | Required |
| OPSEC | β Perfect |
# Full AI analysis with local model
python waduh.py -u http://target.com \
--advanced \
--ai-provider ollama \
--ai-analyze \
--ai-summary \
--attack-graphOutput includes:
- AI-identified exploit chains with success probabilities
- Executive summary for stakeholders
- Attack narrative with step-by-step commands
- Remediation priorities ranked by effort vs impact
| Severity | CVSS Score | Examples |
|---|---|---|
| π΄ Critical | 9.0 - 10.0 | RCE, Confirmed SQL Injection, Exposed wp-config.php |
| π High | 7.0 - 8.9 | Auth bypass, SSRF, Outdated WordPress core |
| π‘ Medium | 4.0 - 6.9 | XSS, XMLRPC enabled, Directory listing |
| π΅ Low | 0.1 - 3.9 | User enumeration, Version disclosure |
- USAGE.md β Detailed usage guide with 10+ real-world scenarios
- ARCHITECTURE.md β v4.0 module architecture and design decisions
- CHANGELOG.md β Complete version history
- SECURITY.md β Security policy and responsible disclosure
- CONTRIBUTING.md β Contribution guidelines
python waduh.py -u https://example.com --wpscan-token YOUR_TOKENpython waduh.py -u https://target.com \
--advanced --ai-analyze --ai-summary \
--detect-waf --attack-graph --scan-js \
--export-html --export-metasploit \
--cvss-scoring -v -o ./pentestpython waduh.py -u https://target.com \
--test-xxe --test-ssrf --test-sqli \
--scan-secrets --scan-cors --scan-js \
--ai-analyze --webhook https://hooks.slack.com/YOUR/WEBHOOKpython waduh.py -u https://target.corp \
--stealth --rotate-ua \
--proxy socks5://127.0.0.1:9050 \
--ai-provider ollama --ai-analyze \
--scan-subdomains --scan-js \
--session-name red_team_op1python waduh.py -u https://staging.company.com \
--advanced --cvss-scoring -q \
--webhook https://slack.webhook/staging-alertsWADUH v4.0 is fully backward compatible. The original waduh_v3.py is preserved:
# v3 (still works)
python waduh_v3.py -u http://target.com --advanced
# v4 (new entry point)
python waduh.py -u http://target.com --advanced --ai-analyzeAll existing v3 CLI flags work in v4. New v4 flags (AI, evasion profiles, JS analysis, subdomains, attack graph, session management) are additive.
We welcome contributions! See CONTRIBUTING.md for guidelines.
- π Report bugs and issues
- π‘ Suggest new features
- π§ Submit pull requests
- π Improve documentation
- π€ Add AI prompt templates
- π Create new scanner modules
This project is licensed under the MIT License - see the LICENSE file for details.
Masriyan
- GitHub: @Masriyan
- Repository: https://github.com/Masriyan/Waduh
- WPScan Team for their vulnerability database API
- Ollama for making local AI accessible
- WordPress Security Community
- All contributors and bug reporters
Made with π for Security Researchers
Report Issues β’ Request Features β’ Documentation
β Star this repo if you find it useful!
