Skip to content
ajendrasPublic

About

Ethical WiFi auditing toolkit with Kivy GUI and Android APK for simulated and authorized pentests

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

17 Commits

Folders and files

Repository files navigation

WaveBrute

Scan. Simulate. Secure. Β· Desktop GUI + one-tap APK Β· Built for ethical red teams

License Python Stars CI Last commit PRs welcome

Ethical WiFi auditing toolkit with Kivy GUI and Android APK for simulated and authorized pentests

✨ Features β€’ ⚑ Quick start β€’ 🧰 Usage β€’ 🧩 Architecture β€’ πŸ“ Roadmap β€’ 🀝 Contributing

✨ Why WaveBrute?

Existing wireless testing tools are either ancient CLIs or shady mobile apps with no ethics layer. WaveBrute fills the gap with a loud, beginner-friendly neo-brutalist GUI, safe simulation mode for classrooms, and a true Android APK. Made for security trainers, pentesters and devs who want to demonstrate WiFi weaknesses responsibly.

  • Safe-by-default simulation β€” run full audits in memory with zero risk
  • Ethics Guard β€” mandatory consent checklist and audit logging before any live action
  • Neo-brutalist GUI β€” thick borders, screaming yellow/pink/lime blocks, chunky buttons that work on desktop and Android; now with toggleable dark theme variant
  • One-command PDF reports β€” professional outputs with timelines, AI hints, and responsible recommendations
  • Real Android APK β€” built with Buildozer, complete with location/WiFi permissions

🎬 Demo

WaveBrute demo

πŸš€ Features

πŸ”Ž Live Scanner
Detects nearby networks, encryption and signal strength using Scapy wrappers. Cross-platform (Linux iwlist + Windows netsh/Npcap)
πŸ“– Smart Wordlists
Generates targeted dictionaries from SSID, patterns and local AI hints
πŸ›‘οΈ Safe Simulation
Runs full brute-force demos in-memory without touching real networks
βš–οΈ Ethics Guard
Mandatory consent checklist and legal warnings before any live action
πŸ“Š PDF Reports
Creates professional audit reports with findings, timelines and recommendations
🧠 AI Predictor
Local tiny on-device model (trained on common weak passwords and SSID patterns) suggests likely passwords based on network metadata
πŸ“‘ Handshake Analyzer
Parses captured files for offline cracking simulation and validation
πŸ”‘ PMKID Simulator
Simulates client-less PMKID capture and cracking (RSN IE extraction)
πŸ“± Android APK
Builds a native mobile app via Buildozer with location and WiFi permissions
πŸ”¨ Hashcat Export
Optional .22000 file generation for real offline cracking with hashcat (simulation data + real-capture instructions)
πŸ”Œ Plugin System
Register custom Python mutators or load .py plugins to extend wordlist generation with domain-specific rules, leetspeak, corporate patterns etc.
πŸŒ‘ Dark Theme
Toggleable dark neo-brutalist variant with near-black background, neon pink/lime/yellow accents and thick high-contrast borders

πŸ“¦ Installation

Requirements: Python 3.9+, kivy, scapy, reportlab, jinja2, click. For live scanning a wireless interface is needed (simulation mode requires nothing). For Android builds, install Buildozer.

Android users: Download the latest signed APK from the GitHub Releases page (prebuilt by CI). Requires Android 8.0+. The APK defaults to safe simulation mode; live operations require completing the ethics checklist.

Windows users: Install Npcap from https://npcap.com/ (select "Install Npcap in WinPcap API-compatible Mode" for full Scapy compatibility). Live scanning uses built-in netsh; Npcap enables native packet capture.

# Install from GitHub
pip install git+https://github.com/ajendras/wavebrute.git

# Run the CLI (defaults to simulation)
wavebrute --help

# Launch the neo-brutalist GUI
python -m wavebrute.gui.app

# Build Android APK locally (or use prebuilt from Releases)
buildozer -c android debug

Run tests with pytest.

⚑ Quick start

from wavebrute import Auditor, WordlistGenerator, TinyPasswordModel

# Safe simulation mode (default)
auditor = Auditor(simulation_mode=True, interface="wlan0")

# The tiny on-device model can be used directly
model = TinyPasswordModel().train()
print(model.predict("Cafe_Rouge_FreeWiFi", 5))

# Register a custom mutator (or load from a .py plugin file)
def company_specific_mutator(word: str):
    return [word + "2025", word.replace("a", "@"), word[::-1]]

auditor.register_mutator(company_specific_mutator)
# auditor.load_mutator_plugin("plugins/corporate_rules.py")

# Full pipeline in one go
networks = auditor.scan()
attack = auditor.simulate_attack("Cafe_Rouge_FreeWiFi", max_attempts=5000)
pmkid = auditor.simulate_pmkid_attack("IoT-Devices")
preds = auditor.predict_passwords("IoT-Devices")
analysis = auditor.analyze_handshake("demo.cap")
export_path = auditor.export_for_hashcat("Cafe_Rouge_FreeWiFi")
report_path = auditor.build_report(title="My First Audit")

# New: batch mode for multiple networks
batch_results = auditor.batch_audit(
    ["Cafe_Rouge_FreeWiFi", "IoT-Devices", "Linksys-5G"],
    max_attempts=3000,
    include_pmkid=True
)
print(f"Batch audited {len(batch_results)} simulation results")

print(f"Found {len(networks)} networks")
print(f"Simulation cracked: {attack['success']} ({attack.get('password')})")
print(f"PMKID sim cracked: {pmkid['success']} ({pmkid.get('password')})")
print(f"Model predictions: {preds}")
print(f"Hashcat file: {export_path}")
print(f"Report saved to: {report_path}")

🧰 Usage

CLI (loud neo-brutalist output)

# Scan in simulation mode
wavebrute scan --simulation

# Generate a targeted wordlist (with optional custom mutator plugins)
wavebrute wordlist "Cafe_Rouge_FreeWiFi" --size 2000 --output wordlist.txt --plugin plugins/leet.py

# Run a safe brute-force simulation
wavebrute attack --ssid "Linksys-5G" --max-attempts 8000

# Simulate a PMKID attack (client-less)
wavebrute pmkid --ssid "Vulnerable-Router" --max-attempts 8000

# Export for offline cracking with hashcat
wavebrute hashcat --ssid "Cafe_Rouge_FreeWiFi" --output target.22000

# Generate a PDF report (auto-runs simulation if needed)
wavebrute report --title "Classroom WiFi Audit"

# New: batch audit multiple networks (all simulations)
wavebrute batch "Cafe_Rouge_FreeWiFi" "IoT-Devices" "Linksys-5G" --max-attempts 4000

On Windows use --interface "Wi-Fi" (or your adapter name) for live scans. Npcap is required for full native Scapy packet support.

Python API – full audit flow

from wavebrute import Auditor, WordlistGenerator, ConsentManager, TinyPasswordModel

auditor = Auditor(simulation_mode=True)
cm = ConsentManager()

# Consent is auto-approved for simulations
print(cm.require_consent("simulated attack on TestNet"))  # True

# The bundled tiny model can be trained and queried directly
model = TinyPasswordModel().train()
print("Model predictions:", model.predict("TestNet", 5))

# Plugin system for custom wordlist mutators
def my_mutator(word: str):
    """Example custom mutator - can be registered or loaded from a .py file."""
    return [word + "!", word.upper() + "2024", word[::-1]]

auditor.register_mutator(my_mutator)
# auditor.load_mutator_plugin("./plugins/company_patterns.py")

networks = auditor.scan()
wordlist = auditor.wordlist_generator.from_ssid("IoT-Devices", size=800)  # uses registered mutators + model
auditor.wordlist_generator.save("iot_wordlist.txt", words=wordlist)

result = auditor.simulate_attack("IoT-Devices", max_attempts=10000)
pmkid_result = auditor.simulate_pmkid_attack("IoT-Devices")
preds = auditor.predict_passwords("IoT-Devices", num_predictions=8)
export_path = auditor.export_for_hashcat("IoT-Devices")
report = auditor.build_report("IoT Devices Audit")

# New batch mode (runs attack/PMKID/predictions across many networks)
batch_results = auditor.batch_audit(
    ssids=["TestNet1", "TestNet2"],
    max_attempts=5000,
    include_pmkid=True,
    include_predictions=True
)
print(f"Batch completed with {len(batch_results)} results")

print("Report:", report)
print("Hashcat export:", export_path)
print("Model predictions:", preds)
Advanced: Handshake analysis + custom report
from wavebrute import Auditor

auditor = Auditor(simulation_mode=True)

# Register domain-specific mutator before running simulations
def department_mutator(word):
    return [word + "dept2025", "wifi" + word]

auditor.register_mutator(department_mutator)

# Analyze a capture (falls back to realistic simulation if file is missing)
analysis = auditor.analyze_handshake("handshake.cap")
print(analysis["crack_time_estimate"])

# PMKID simulation (uses registered mutators in wordlist generation)
pmkid = auditor.simulate_pmkid_attack("NETGEAR_Guest")
print(f"PMKID success: {pmkid['success']}")

# Model-based password prediction (trained tiny on-device model)
preds = auditor.predict_passwords("NETGEAR_Guest", num_predictions=6)
print("Top predictions:", preds)

# Hashcat export for real offline cracking
hc_path = auditor.export_for_hashcat(ssid="NETGEAR_Guest", output_path="netgear.22000")
print(f"Hashcat ready: {hc_path}")

# Clear previous results and build a fresh report
auditor.clear_results()
auditor.scan()
auditor.simulate_attack("NETGEAR_Guest")
path = auditor.build_report(
    title="WaveBrute Ethical Audit Report",
    output_path="audit_2025.pdf"
)
print("Generated:", path)
GUI usage

Launch with python -m wavebrute.gui.app. The app provides four screens (ScanScreen, AttackScreen, CaptureScreen, ReportScreen) that share a single Auditor instance. All buttons use the BrutalistButton and BrutalistLabel widgets with 4px thick borders and 6dp hard shadows. A persistent header contains a theme toggle button ("DARK"/"LIGHT") that switches between light and dark neo-brutalist modes while preserving brutalist contrast (neon pink #ff004d, lime #00ff9f, yellow borders on near-black background for dark mode). The CaptureScreen implements capture file upload via a FileChooser popup (filtered to .cap/.pcap/.pcapng) and displays full handshake analysis results (leveraging analyze_handshake() and automatic simulation fallback when the file is absent). The Attack screen includes a dedicated PMKID simulation button. Android UI now uses kivy.metrics.dp for all sizes with minimum 64dp touch targets for proper scaling and finger-friendly interaction across device densities.

The plugin system is available through the shared Auditor instance (register_mutator / load_mutator_plugin) before starting an attack or wordlist generation. The AI Predictor (powered by the bundled tiny model) is used automatically by wordlist generation and can be called via auditor.predict_passwords(...).

Prebuilt signed APKs are produced by CI and attached to every GitHub Release. Dark theme is available on both desktop and Android.

πŸ”§ Configuration

Option Default Description
simulation_mode True Whether to run entirely in safe simulation mode (recommended for all non-authorized use)
interface "wlan0" (Linux) or "Wi-Fi" (Windows) Wireless interface name (ignored in simulation mode; used by scan_wifi). Npcap required on Windows for live/native Scapy support.
--simulation True CLI flag for scan, attack, wordlist (live mode requires consent)
max_attempts 12000 Maximum simulation iterations for simulate_attack and CLI attack command
size 1500 Approximate wordlist size for WordlistGenerator.from_ssid and CLI wordlist
hash_mode 22000 Hashcat hash type used by export_for_hashcat() (modern combined PMKID/handshake format)
mutators [] List of registered mutator callables (via register_mutator() or loaded plugins). Built-ins include number suffixes, leetspeak and case variations.
ai_model TinyPasswordModel Bundled tiny pure-Python on-device model for password prediction. Trained offline on a synthetic corpus of weak passwords and SSID associations; zero extra runtime dependencies. Used by generate_ai_suggestions, predict_passwords() and wordlist augmentation.
batch N/A New batch_audit(ssids, max_attempts=8000, include_pmkid=True, include_predictions=True) and corresponding CLI batch subcommand. Aggregates results from multiple networks for unified reporting.
dark_theme False GUI only. Set via constructor (WaveBruteApp(dark_theme=True)) or toggle button in header. Dark variant uses near-black background with neon accents while retaining thick borders and brutalist contrast.

🧩 Architecture

graph TD
    User[User / Trainer] --> CLI[wavebrute CLI<br/>click commands]
    User --> GUI[WaveBruteApp + Screens<br/>neo-brutalist Kivy UI]
    CLI & GUI --> Auditor
    Auditor --> Consent[ConsentManager<br/>require_consent + log_audit]
    Auditor --> Scan[scan_wifi<br/>scanner.py]
    Auditor --> Gen[WordlistGenerator<br/>from_ssid + mutators + plugins]
    Auditor --> Model[TinyPasswordModel<br/>utils.py - bundled trained patterns]
    Auditor --> PMKID[simulate_pmkid_attack<br/>_run_pmkid_simulation]
    Auditor --> Hashcat[export_for_hashcat<br/>_generate_hashcat_content]
    Auditor --> Batch[batch_audit<br/>multiple networks]
    Auditor --> Utils[utils.py<br/>validate_mac, parse_cap_file, generate_ai_suggestions]
    Auditor --> Report[ReportBuilder<br/>to_pdf via Jinja2 + ReportLab]
    Auditor --> Android[buildozer.spec<br/>Android APK]
    Report --> PDF[PDF Report]
    style Auditor fill:#ff004d,color:#fff
    style Consent fill:#00ff9f,color:#000
Loading

The central Auditor class orchestrates scanning, simulation, handshake analysis, hashcat export and reporting while enforcing consent through ConsentManager. All live operations are optional; simulation mode uses deterministic data from _simulate_scan, _run_in_memory_attack, _run_pmkid_simulation, _simulate_handshake_analysis and _generate_hashcat_content. The Kivy GUI and Click CLI both consume the same public API exported in __init__.py. The new plugin system is exposed via Auditor.register_mutator() / Auditor.load_mutator_plugin() (and directly on WordlistGenerator). The tiny on-device model (TinyPasswordModel) is bundled with pre-computed patterns derived from training on common weak passwords; it powers generate_ai_suggestions() and the new predict_passwords() API. The new batch_audit() method runs full simulation pipelines across many SSIDs in one call and aggregates results for easy reporting. The GUI now includes a runtime theme toggle that switches color palettes while preserving all brutalist styling (thick borders, hard shadows, chunky buttons).

πŸ“ Project structure

.
β”œβ”€β”€ pyproject.toml                 # Metadata, dependencies, console_scripts entrypoint
β”œβ”€β”€ buildozer.spec                 # Android packaging config with permissions
β”œβ”€β”€ src/wavebrute/
β”‚   β”œβ”€β”€ __init__.py                # Public API: Auditor, WordlistGenerator, ReportBuilder, ConsentManager, TinyPasswordModel
β”‚   β”œβ”€β”€ auditor.py                 # Core Auditor class with scan(), simulate_attack(), simulate_pmkid_attack(), analyze_handshake(), export_for_hashcat(), build_report(), predict_passwords()
β”‚   β”œβ”€β”€ cli.py                     # Click commands: scan, wordlist, attack, pmkid, hashcat, report, ethics
β”‚   β”œβ”€β”€ ethics.py                  # ConsentManager with show_checklist(), require_consent(), log_audit()
β”‚   β”œβ”€β”€ scanner.py                 # scan_wifi() and parse_iwlist() (Linux + Windows/Npcap)
β”‚   β”œβ”€β”€ wordlist.py                # WordlistGenerator with from_ssid(), augment_with_ai(), save(), register_mutator(), load_mutator_plugin()
β”‚   β”œβ”€β”€ report.py                  # ReportBuilder with from_results(), to_pdf(), render_template()
β”‚   β”œβ”€β”€ utils.py                   # TinyPasswordModel (trained & bundled), validate_mac(), parse_cap_file(), generate_ai_suggestions()
β”‚   β”œβ”€β”€ gui/
β”‚   β”‚   β”œβ”€β”€ app.py                 # WaveBruteApp with neo-brutalist styling, dark theme support and ScreenManager
β”‚   β”‚   └── screens.py             # ScanScreen, AttackScreen, CaptureScreen, ReportScreen + BrutalistButton/Label with theme awareness
β”‚   └── tests/
β”‚       └── test_auditor.py        # Pytest cases for simulation, ethics, reporting
β”œβ”€β”€ examples/
β”‚   └── audit_flow.py              # Runnable full pipeline: scan β†’ wordlist β†’ simulated attack β†’ pmkid β†’ hashcat export β†’ report
β”œβ”€β”€ main.py                        # Android APK entrypoint (imports WaveBruteApp)
└── tests/test_auditor.py          # Comprehensive test suite (simulation only)

πŸ§ͺ Testing

pytest

The test suite (tests/test_auditor.py) covers Auditor initialisation, simulate_attack (including deterministic success path), the new simulate_pmkid_attack, wordlist augmentation, ethics consent checks (with mocked checklist), analyze_handshake, export_for_hashcat, build_report, error paths, full integration flows, the new plugin system (custom mutators + dynamic plugin loading from .py files), and the bundled TinyPasswordModel + predict_passwords() β€” all in safe simulation mode with no real network activity. New tests were added for batch_audit() (including consent mocking, error paths, result aggregation and parameter combinations).

πŸ“ Roadmap

  • v0.1.0 β€” first release: Live Scanner, Smart Wordlists, Safe Simulation, Android APK
  • Add PMKID attack simulation module
  • Integrate optional Hashcat export for real offline cracking
  • Improve Android UI scaling and touch targets in APK
  • Add plugin system for custom wordlist mutators
  • Support Windows Npcap for native scanning
  • Train and bundle tiny on-device model for password prediction
  • Export reports directly to Markdown and HTML
  • Implement capture file upload and analysis in GUI
  • Add batch mode for auditing multiple networks
  • Create prebuilt signed APK releases in CI
  • Add dark theme variant while keeping brutalist contrast
  • Support WPS PIN brute-force simulation

πŸ€– This roadmap is worked through continuously β€” ideas and PRs welcome!

🀝 Contributing

We love loud, responsible contributions! Please read CONTRIBUTING.md and follow our CODE_OF_CONDUCT.md. Good-first-issue PRs are especially welcome β€” improving the GUI screens, adding new AI hint patterns, or expanding the test suite are great places to start.

Fork, make your changes, and open a PR against the main branch.

πŸ“„ License

This project is licensed under the MIT License β€” see LICENSE for details.

⭐ Star history

Star history

If WaveBrute saves you time, a ⭐ helps others find it.

Made with ❀️ by Ajendra

About

Ethical WiFi auditing toolkit with Kivy GUI and Android APK for simulated and authorized pentests

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages