Skip to content
mrdineshpathroPublic

About

JamFi is a Python-based WiFi deauthentication toolkit designed for authorized network testing. It allows users to scan for nearby WiFi networks and perform deauthentication attacks to assess network security.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

12 Commits

Folders and files

Repository files navigation

⚑ JamFi 2.0

πŸ›°οΈ Multi-Band Wi-Fi Reconnaissance & 802.11w Resilience Auditing Suite

See every band. Understand every protection. Prove whether your Wi-Fi holds up.

CI Release Python Platform License

✨ Features Β· πŸ“¦ Install Β· πŸš€ Quick Start Β· πŸ–₯️ Interfaces Β· πŸ“Š Verdicts Β· πŸ“Ά Adapters Β· βš™οΈ Config


Important

πŸ›‘οΈ Authorized use only. JamFi is built for networks you own or have explicit written permission to test. Active tests are allowlist-scoped, require explicit confirmation, and enforce hard time & packet budgets.

JamFi has evolved from a single-file aireplay-ng wrapper into a complete wireless reconnaissance and deauthentication-resilience platform. Instead of blindly flooding channels, JamFi discovers APs and clients across 2.4 / 5 / 6 GHz, parses 802.11w Protected Management Frames (PMF), schedules radios intelligently, measures real disconnect β†’ reconnect latency & 4-way handshakes, and generates actionable audit reports.

πŸ“Ÿ View the retro terminal banner
╔════════════════════════════════════════════════════╗
β•‘   β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–„β–ˆ     β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„     β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ         β•‘
β•‘  β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ   β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ         β•‘
β•‘  β–ˆβ–ˆβ–ˆ    β–ˆβ–€  β–ˆβ–ˆβ–ˆβ–Œ   β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ   β–ˆβ–ˆβ–ˆ    β–ˆβ–€          β•‘
β•‘ β–„β–ˆβ–ˆβ–ˆβ–„β–„β–„     β–ˆβ–ˆβ–ˆβ–Œ   β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ  β–„β–ˆβ–ˆβ–ˆβ–„β–„β–„             β•‘
β•‘β–€β–€β–ˆβ–ˆβ–ˆβ–€β–€β–€     β–ˆβ–ˆβ–ˆβ–Œ β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–€β–€β–ˆβ–ˆβ–ˆβ–€β–€β–€             β•‘
β•‘  β–ˆβ–ˆβ–ˆ    β–ˆβ–„  β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ   β–ˆβ–ˆβ–ˆ    β–ˆβ–„          β•‘
β•‘  β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ   β–ˆβ–ˆβ–ˆ    β–ˆβ–ˆβ–ˆ         β•‘
β•‘  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–€     β–ˆβ–ˆβ–ˆ    β–ˆβ–€    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ         β•‘
╠════════════════════════════════════════════════════╣
β•‘   JamFi v2.0 β€” Wi-Fi Recon & Resilience Suite      β•‘
β•‘   by @mrdineshpathro Β· authorized auditing only    β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

πŸ†š v1.0 β†’ v2.0 at a Glance

Capability πŸ•°οΈ v1.0 ⚑ v2.0
AP & client discovery ❌ Parsed wrong CSV block (returned 0 APs) βœ… Full AP + station tables, hidden SSIDs & commas
Frequency bands ⚠️ 2.4 GHz only βœ… 2.4 / 5 / 6 GHz with iw phy + netxml disambiguation
Multi-target radio control ❌ Processes fought over 1 NIC channel βœ… Weighted channel-dwell scheduler + multi-adapter split
802.11w / WPA3 awareness ❌ None βœ… Live RSN IE parsing: PMF Required / Capable / Disabled
Test outcome ❌ Blind infinite packet flood βœ… Reconnect latency + πŸ”‘ 4-way handshake proof + early stop
Injection engines aireplay-ng only aireplay-ng + native Scapy radiotap + mock
Interfaces Plain text prompts πŸ’» Rich live CLI Β· 🧭 Textual TUI Β· 🌐 Web dashboard
Reports Timestamp + 'Broadcast' CSV line πŸ“‘ HTML / Markdown / JSON / CSV + JSONL/SQLite + webhooks
Safety guardrails ⚠️ auto_select_all / 'all' πŸ” Allowlist-first, hard denylists, confirmation & budgets
Try without hardware ❌ Required root + Wi-Fi NIC βœ… Full --mock lab anywhere (macOS / Windows / Linux / CI)

✨ Feature Highlights

πŸ›°οΈ Multi-Band Recon
Discover APs across 2.4, 5 & 6 GHz, group mesh/dual-band BSSIDs, map associated stations & probe histories, and inspect channel congestion.
πŸ›‘οΈ 802.11w PMF Intelligence
Pure-Python RSN/WPA/WPS parser detects MFPC/MFPR, WPA3-SAE, OWE, transition mode, TKIP, WEP, Open & WPS β€” live from real beacons.
🧠 Adaptive Radio Engine
Group targets by channel, set frequency once per hop, weight dwell by client/data activity, split bands across USB adapters & auto-recover drops.
🎯 Proof, Not Guesswork
Broadcast or bidirectional client-targeted deauth/disassoc; measure time-to-reconnect, validate EAPOL M1–M4, and stop early once verdicts settle.
🏭 OUI Vendor Lookup
Built-in vendor database (Ubiquiti, TP-Link, Apple, Espressif & more) + IEEE oui.txt / Wireshark manuf loader + 🎲 randomized-MAC flagging.
🌐 Live Web Dashboard
FastAPI + WebSockets with zero external CDNs: scope chips, sparklines, SVG congestion chart, station drawer & 1-click report downloads.
πŸ“‘ Board-Ready Reports
Self-contained HTML (sortable & printable), Markdown, JSON & CSV with severity-ranked findings, concrete remediations & XSS-safe escaping.
πŸ” Allowlist-First Safety
Explicit BSSID/ESSID allowlists, unoverrideable denylists, typed YES / AUTHORIZE confirmation & hard duration/packet ceilings.

Tip

πŸ’‘ Why resilience auditing beats "more jamming": WPA3 and 802.11w PMF-required networks ignore unauthenticated deauth frames. JamFi tells you which networks and clients are actually protected β€” and why the others aren't.


πŸ“¦ Installation

1️⃣ System packages (Kali / Ubuntu / Debian)

sudo apt-get update
sudo apt-get install -y aircrack-ng iw wireless-tools python3-venv python3-pip

2️⃣ Install JamFi in a virtual environment

git clone https://github.com/mrdineshpathro/JamFi.git
cd JamFi
python3 -m venv .venv
source .venv/bin/activate

# πŸ’» Core: CLI + Rich live UI + Scapy engine
pip install -e .

# 🌐 Everything: adds Web Dashboard + fullscreen Textual TUI
pip install -e ".[all]"

# βš™οΈ Optional: generate jamfi.toml with ready-made profiles
jamfi init
πŸ”— Optional: run sudo jamfi from anywhere
sudo ln -sf "$PWD/.venv/bin/jamfi" /usr/local/bin/jamfi

πŸš€ Quick Start β€” No Wi-Fi Card Needed!

Every command supports --mock mode: no root, no aircrack-ng, no adapter required. Perfect for demos, learning & CI.

# 🩺 Preflight diagnostics
jamfi --mock check

# πŸ›°οΈ Live-style AP + station tables with vendors, sparklines & PMF badges
jamfi --mock scan --clients

# 🧭 Fullscreen keyboard TUI
jamfi --mock scan --tui

# 🎯 Allowlist-scoped resilience test + self-contained HTML report
jamfi --mock audit --allow-essid 'HomeLab-*' --allow-essid 'Office*' -y --report html

# 🌐 Interactive Web Dashboard demo (anonymous access works ONLY with --mock)
jamfi --mock web --host 0.0.0.0 --port 8765 --allow-anonymous-mock

πŸ§ͺ What you'll see in the built-in mock lab:

🎯 Target πŸ”’ Configuration πŸ“Š Result πŸ’‘ Why
HomeLab-2G WPA2 Β· PMF Capable 🟑 Partially Protected πŸ”‘ Legacy client drops & exposes a 4-way handshake; PMF client stays up
Office, Floor 2 WPA2/WPA3 transition Β· WPS πŸ”΄ Vulnerable πŸ”‘ Non-PMF Espressif IoT client is forced to reconnect
HomeLab-5G & HomeLab-6E WPA3 · PMF Required 🟒 Protected Spoofed deauth frames are ignored as designed

πŸ“‘ Real Hardware Workflow

🧭 Guided Wizard (upgrades sudo python3 JamFi.py)

sudo jamfi
# Backward-compatible launcher also works:
sudo python3 JamFi.py

1️⃣ Preflight & injection check 🩺

sudo jamfi check
sudo jamfi check --inject-test wlan0mon   # verify packet injection via aireplay-ng --test

2️⃣ Scan, filter & explore πŸ”Ž

# Scan all bands for 20s, show stations, save JSON inventory
sudo jamfi scan -i wlan0 --band all --duration 20 --clients -o scan.json

# Live Rich table β€” enriches PMF from real beacons via Scapy
sudo jamfi scan -i wlan0 --live --duration 30

# Fullscreen TUI explorer
sudo jamfi scan -i wlan0 --tui

# Offline filtering of saved airodump CSV / JSON
jamfi scan --from-file scan_results-01.csv --band 5 --min-signal -75 --security pmf-missing

3️⃣ Run an authorized resilience audit 🎯

# Single AP by BSSID (prompts for YES interactively; -y for scripts)
sudo jamfi audit -i wlan0 --allow-bssid 70:A7:41:12:34:56 --duration 60 --report html

# Dual-adapter band splitting β€” wlan0 & wlan1 never fight over channels
sudo jamfi audit -i wlan0 -i wlan1 --allow-essid 'HomeLab-*' --backend scapy --report html

# Target one station + save scope-filtered PCAP & validate 4-way handshakes
sudo jamfi audit -i wlan0 --allow-bssid 70:A7:41:12:34:56 \
  --client F0:18:98:10:20:30 --handshake-capture --report markdown

# Dry-run: evaluate scan + scope policy without touching radios
jamfi --mock audit --from-scan scan.json --allow-essid 'HomeLab-*' -y --dry-run

Warning

πŸ“΄ Interfering network services: NetworkManager / wpa_supplicant can reset channels mid-capture. Pass --kill-interfering only if you accept losing managed Wi-Fi during the session. JamFi always restores monitor VIFs on exit; restart networking afterward with sudo systemctl start NetworkManager.

4️⃣ Browse sessions & export reports πŸ“‘

jamfi sessions
jamfi report sessions/audit-YYYYMMDDTHHMMSSZ-xxxxxx.jsonl --format html -o report.html
jamfi report scan.json --format csv -o inventory.csv

πŸ–₯️ Three Ways to Use JamFi

πŸ’» 1. Rich CLI & Live Terminal Dashboard

Color-coded security & PMF badges Β· dBm bar meters + β–β–‚β–ƒβ–„β–…β–†β–‡β–ˆ signal sparklines Β· live adapter telemetry Β· real-time event feed Β· JSON/CSV stdout modes for scripting.

🧭 2. Fullscreen Textual TUI (--tui)

⌨️ Key ✨ Action
↑ / ↓ Navigate discovered access points
Space βž•/βž– Toggle highlighted BSSID in allowlist scope
Enter πŸ‘₯ Inspect associated clients in the side pane
/ πŸ” Focus filter box (ESSID / BSSID / vendor)
Esc ↩️ Jump back from filter to the AP table
s πŸ”ƒ Cycle sort: Signal β†’ Clients β†’ Channel β†’ ESSID
a ▢️ / ⏹️ Start or stop audit (in audit --tui)
r πŸ”„ Re-scan (in scan --tui)
q πŸšͺ Quit β€” stops audit & restores Wi-Fi

🌐 3. Local Web Dashboard (jamfi web)

sudo jamfi web                          # πŸ” 127.0.0.1:8765 + random per-launch token
sudo jamfi web --host 0.0.0.0 --port 8765
  • πŸ”‘ Token-gated by default: open http://<host>:8765/?token=<TOKEN> or paste the token into the unlock screen. --allow-anonymous-mock is honored only in --mock mode.
  • πŸ›‘οΈ Server-enforced arming: requires allowlisted targets + authorization checkbox + typed AUTHORIZE, with hard server caps (≀ 3600s, ≀ 100,000 pkts/target).
  • πŸ”Œ Proxy & container friendly: relative /api/* & /ws URLs β€” no hardcoded localhost, no iframe-blocking headers.

πŸ“Š Understanding Resilience Verdicts

🚦 Verdict 🧠 What it means πŸ› οΈ Recommended fix
πŸ”΄ Vulnerable Spoofed management frames forced client reconnects (and may have exposed a 4-way handshake). Enable 802.11w PMF = Required + WPA3; upgrade or isolate legacy clients.
🟑 Partially Protected PMF Capable / transition mode: PMF clients stayed connected, but non-PMF clients dropped. Switch PMF from Capable to Required; segment legacy IoT onto a dedicated VLAN.
🟒 Protected PMF Required (WPA3 / OWE / 802.11w): unauthenticated deauth frames were ignored. Keep PMF Required on; prefer WPA3-only over transition mode.
🟣 Inconclusive No associated clients, unknown channel, or no reconnect without confirmed PMF. Test closer to the AP with active clients; verify --inject-test.
βšͺ N/A (Open/OWE) No WPA authentication exchange exists to protect. Encrypt open networks (WPA2/WPA3 or OWE) + enable client isolation.

πŸ•΅οΈ Passive findings also catch: 🚨 WEP (critical) Β· πŸ”“ Open Wi-Fi Β· ⚠️ WPA1 / TKIP Β· πŸ“΄ WPS enabled Β· 🧩 WPA2 without confirmed PMF Β· πŸ”€ WPA2/WPA3 transition Β· πŸ™ˆ Hidden SSIDs Β· πŸ“’ Client probe-history leaks.


βš™οΈ Configuration & Profiles

jamfi.toml takes precedence over legacy config.ini. Run jamfi init to generate the full commented template.

[scan]
duration = 15
band = "all"            # all | 2.4 | 5 | 6
sort_by = "power"       # power | clients | channel | essid

[audit]
backend = "scapy"       # aireplay | scapy | mock
frame_type = "deauth"   # deauth | disassoc
burst_packets = 32
dwell_ms = 350
max_duration = 60       # ⏱️ hard ceiling (seconds) β€” never infinite
max_packets_per_target = 2000
handshake_capture = false

[safety]
allow_bssids = ["70:A7:41:12:34:56"]
deny_bssids  = ["AA:BB:CC:00:00:99"]   # 🚫 hard block β€” never overridden

[profiles.lab-resilience]
[profiles.lab-resilience.audit]
burst_packets = 16
dwell_ms = 250
max_duration = 30
# πŸŽ›οΈ Use a named profile
sudo jamfi --profile lab-resilience audit -i wlan0 -y --report html

# πŸ”” Fire JSON webhooks on handshake capture & session completion
sudo jamfi audit ... --webhook https://your-endpoint.example/hook

Tip

🏷️ Set oui_file = "/usr/share/wireshark/manuf" (or an IEEE oui.txt) in jamfi.toml for full vendor resolution beyond the built-in database.


πŸ“Ά Recommended USB Adapters

Built-in laptop Wi-Fi often blocks raw injection in firmware. For reliable Linux auditing, use a supported external adapter:

⭐ 🧩 Chipset πŸ“‘ Example Adapters 🌈 Bands 🐧 Linux Driver πŸ“ Notes
πŸ₯‡ MediaTek MT7921AU Alfa AWUS036AXML 2.4 / 5 / 6 GHz In-kernel mt76 (mt7921u) Best modern pick for Wi-Fi 6E recon (kernel β‰₯ 6.x recommended)
πŸ₯ˆ MediaTek MT7612U Alfa AWUS036ACM 2.4 / 5 GHz In-kernel mt76 (mt76x2u) Excellent monitor + injection out of the box on Kali/Ubuntu
πŸ‘ Atheros AR9271 Alfa AWUS036NHA Β· TL-WN722N v1 2.4 GHz In-kernel ath9k_htc Rock-solid 2.4 GHz; no 5 GHz
⚠️ Intel iwlwifi AX200 / AX210 / BE200 (built-in) 2.4 / 5 / 6 GHz In-kernel iwlwifi Monitor works; injection varies by firmware β€” test first
πŸ”§ Realtek RTL8812AU/AC Various AC1200 dongles 2.4 / 5 GHz Out-of-tree DKMS (88XXau) Needs DKMS driver; VIF renames handled by JamFi's iw dev diff
🚫 RPi onboard brcmfmac Raspberry Pi 3/4/5 built-in 2.4 / 5 GHz brcmfmac Stock firmware lacks injection β€” use a USB MT76 adapter

πŸ—οΈ Project Architecture
jamfi/
β”œβ”€β”€ cli.py                  # πŸ–₯️ Typer CLI: wizard, check, scan, audit, report, sessions, web, init
β”œβ”€β”€ config.py               # βš™οΈ jamfi.toml + profiles + legacy config.ini loader + validation
β”œβ”€β”€ system/                 # 🐧 Linux integration
β”‚   β”œβ”€β”€ privileges.py       #    root / CAP_NET_ADMIN + CAP_NET_RAW checks
β”‚   β”œβ”€β”€ interfaces.py       #    iw dev / iw phy / iwconfig parsing, driver & band detection
β”‚   β”œβ”€β”€ monitor.py          #    MonitorSession (VIF diff, guaranteed restore, set_channel)
β”‚   β”œβ”€β”€ preflight.py        #    Binary/driver/conflict/injection diagnostics
β”‚   └── process.py          #    Process-group isolation & bounded teardown
β”œβ”€β”€ capture/                # πŸ›°οΈ Discovery & dissection
β”‚   β”œβ”€β”€ models.py           #    AccessPoint, Client, SecurityProfile, ScanSnapshot
β”‚   β”œβ”€β”€ airodump.py         #    Multi-band runner + CSV & Kismet netxml parser
β”‚   β”œβ”€β”€ rsn.py              #    Pure-Python RSN/WPA/WPS IE & MFPC/MFPR parser
β”‚   β”œβ”€β”€ oui.py              #    Offline vendor DB + IEEE oui.txt / manuf + randomized MACs
β”‚   β”œβ”€β”€ sniffer.py          #    Scapy LiveObserver: beacons, clients, EAPOL M1–M4
β”‚   └── mock.py             #    Hardware-free scanner & 802.11w radio simulator
β”œβ”€β”€ engine/                 # 🧠 Smart radio & verification
β”‚   β”œβ”€β”€ scheduler.py        #    Adaptive per-adapter channel-dwell scheduler
β”‚   β”œβ”€β”€ actions.py          #    AireplayBackend, ScapyBackend (radiotap), MockBackend
β”‚   β”œβ”€β”€ verify.py           #    Reconnect latency & resilience verdict classification
β”‚   └── session.py          #    AuditSession: multi-adapter split, recovery, early stop
β”œβ”€β”€ safety/policy.py        # πŸ” Allowlist/denylist ScopePolicy, AuditBudget, confirmation
β”œβ”€β”€ ui/                     # 🎨 Terminal interfaces
β”‚   β”œβ”€β”€ live.py             #    Rich tables, sparklines, badges, live audit dashboard
β”‚   └── tui.py              #    Fullscreen Textual keyboard TUI
β”œβ”€β”€ reporting/              # πŸ“‘ Persistence & deliverables
β”‚   β”œβ”€β”€ store.py            #    JSONL + SQLite session store + hooks/webhooks
β”‚   └── report.py           #    Findings engine + HTML / Markdown / JSON / CSV reports
└── web/                    # 🌐 Live browser console
    β”œβ”€β”€ app.py              #    FastAPI REST + WebSocket API, token auth, broadcaster
    └── static/             #    Offline HTML/CSS/JS dashboard (zero CDNs)

πŸ§ͺ Development & Testing

The entire suite runs without root, Wi-Fi hardware, or aircrack-ng:

pip install -e ".[all,dev]"

pytest -q                                # βœ… 75 hardware-free tests
ruff check jamfi tests JamFi.py          # πŸ” Lint
ruff format --check jamfi tests JamFi.py # 🎨 Format check
mypy jamfi                               # 🧬 Static types (0 issues across 32 files)

πŸ€– GitHub Actions CI runs lint, format, mypy, pytest, and a mock CLI + HTML report smoke test across Python 3.10, 3.11, 3.12 & 3.13. See ROADMAP.md for milestone mapping.


βš–οΈ Responsible Use & Disclaimer

Warning

JamFi is provided exclusively for education, lab experimentation, and authorized wireless security assessments. Transmitting deauthentication frames against third-party networks disrupts communications and may be illegal in your jurisdiction. Never bypass JamFi's allowlist, denylist, confirmation, or budget controls to target networks outside your authorization. The author assumes no liability for misuse.


πŸ‘€ Author

Crafted with ⚑ by mrdineshpathro

⭐ If JamFi helps your lab or security practice, star the repo on GitHub!

About

JamFi is a Python-based WiFi deauthentication toolkit designed for authorized network testing. It allows users to scan for nearby WiFi networks and perform deauthentication attacks to assess network security.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages