HJKSwitch – Virtual Wi-Fi, AI Traffic Intelligence & Futuristic Networking in One Python File
Imagine turning almost any computer (Linux or Windows) into a:
- Virtual Wi-Fi access point / router / switch / mesh node
- AI-powered traffic classifier & anomaly detector
- Encrypted P2P file & message sharing hub
- Parental control + firewall + IDS device
- All with a beautiful custom Tkinter dashboard, web control panel, and even PDF export of the source code
…and doing all of this in one single Python file.
That’s exactly what HJKSwitch is.
GitHub →https://github.com/HJKEnsignElectronics/HJKEnsignElectronics
(Replace yourusername with your actual GitHub username)
Why did I build this?
I wanted to experiment with many networking, security and AI ideas in one place without creating 15 different repositories.
So I ended up with a monster single-file project that currently implements 100 planned features (yes, really — see the roadmap inside the code).
Some of the highlights:
- Virtual Wi-Fi AP (hostapd / netsh hostednetwork)
- Dynamic DHCP server
- NAT / Internet sharing
- AES packet encryption + optional custom encryption modules
- Per-device traffic shaping (tc on Linux)
- AI traffic classification (small PyTorch model)
- Intrusion detection (SYN/ICMP flood, high packet rate)
- Parental control (domain whitelist)
- Tkinter GUI dashboard with network map (matplotlib)
- Web control panel (simple HTTP server)
- CLI & voice-command-like text interface
- PDF export of the entire source code (!)
- Particles.js futuristic website (GitHub Pages)
Quick start (host mode)
bash
# 1. Generate self-signed cert (needed for TLS file/messaging)
openssl req -x509 -newkey rsa:2048 -keyout hjkswitch_key.pem -out hjkswitch_cert.pem -days 365 -nodes -subj '/CN=HJKSwitch'
# 2. Run as host (needs admin/sudo)
python hjkswitch_combined.py --mode host
Client mode is also supported:
Bashpython hjkswitch_combined.py --mode client
Current status (March 2025)
Top comments (0)