Skip to content
MasriyanPublic

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

W.A.D.U.H. Scanner v4.0 β€” Phantom Edition

WADUH Banner

WordPress Analysis & Debugging Utility Helper

AI-Augmented Offensive Security Platform for Authorized Penetration Testing

Python Version License Version Status AI Powered

Features β€’ What's New β€’ Installation β€’ Usage β€’ AI Integration β€’ Documentation


⚠️ Legal Disclaimer

╔═══════════════════════════════════════════════════════════════════════════╗
β•‘                          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.   β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

πŸ”₯ What Makes WADUH Terrifyingly Powerful?

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.

The Fear Factor

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

πŸ†• What's New in v4.0

πŸ€– AI Integration (The Game Changer)

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

πŸ—οΈ Modular Architecture

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

🎯 New Scanners

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

πŸ”§ Fixed Detection Accuracy

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

πŸ•ΆοΈ Adaptive Evasion Engine

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.


πŸ“ Architecture Overview

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
Loading

✨ Features

πŸ” Reconnaissance & Enumeration

  • 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

⚑ Vulnerability Assessment

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

πŸ€– AI-Powered Analysis

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

πŸ“Š Reporting & Integration

  • 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

πŸ“¦ Installation

Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)
  • (Optional) Ollama for local AI analysis

Quick Install

# 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

Dependencies

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

Optional: AI Setup

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-analyze

Cloud 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-..."

Optional: WPScan API Token

# Get free token at https://wpscan.com/api
export WPSCAN_API_TOKEN="your-token-here"

πŸš€ Usage

Basic Scan

# Interactive mode
python waduh.py

# Direct URL scan
python waduh.py -u https://target-wordpress.com

Full Red Team Assessment

python waduh.py -u https://target.com \
    --advanced \
    --ai-analyze \
    --ai-summary \
    --detect-waf \
    --attack-graph \
    --scan-js \
    --cvss-scoring \
    --export-html \
    -o ./reports

Stealth Scan with Local AI

python waduh.py -u https://target.com \
    --stealth \
    --ai-provider ollama \
    --ai-analyze \
    --rotate-ua \
    --proxy http://127.0.0.1:8080

JavaScript & Subdomain Analysis

python waduh.py -u https://target.com \
    --scan-js \
    --scan-subdomains \
    --scan-secrets \
    --attack-graph

Multi-Target Scanning

# Create targets.txt with one URL per line
python waduh.py --target-list targets.txt --parallel 5

Resume Interrupted Scan

# Save session
python waduh.py -u https://target.com --session-name my_pentest --advanced

# Resume later
python waduh.py --resume my_pentest

πŸ“‹ Command-Line Options

Target & Profile

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)

AI Integration

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

Scanning Modules

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)

Advanced Tests

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

Evasion & OPSEC

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

Export & Integration

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

πŸ€– AI Integration

How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   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 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Local vs Cloud AI

Aspect Local (Ollama) Cloud (OpenAI/Anthropic)
Privacy βœ… Zero data exfiltration ⚠️ Data sanitized before sending
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 ⚠️ IP logged by provider

Example: AI-Powered Scan

# Full AI analysis with local model
python waduh.py -u http://target.com \
    --advanced \
    --ai-provider ollama \
    --ai-analyze \
    --ai-summary \
    --attack-graph

Output 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

πŸ“Š Vulnerability Severity Classification

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

πŸ“– Documentation


πŸ› οΈ Real-World Examples

Quick Security Audit

python waduh.py -u https://example.com --wpscan-token YOUR_TOKEN

Full Penetration Test with AI

python 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 ./pentest

Bug Bounty (High-Impact Focus)

python 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/WEBHOOK

Stealth Red Team Operation

python 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_op1

CI/CD Security Gate

python waduh.py -u https://staging.company.com \
    --advanced --cvss-scoring -q \
    --webhook https://slack.webhook/staging-alerts

πŸ”„ Migration from v3

WADUH 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-analyze

All existing v3 CLI flags work in v4. New v4 flags (AI, evasion profiles, JS analysis, subdomains, attack graph, session management) are additive.


🀝 Contributing

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

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ‘€ Author

Masriyan


πŸ™ Acknowledgments

  • 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!

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages