Specter Proxy is a high-performance, developer-centric local proxy designed for network simulation, deep packet inspection (sniffing), and traffic sabotage. Built for the "Net-Runners" who need to know exactly how their apps behave under hostile network conditions.
Most developers test on perfect gigabit Wi-Fi. Specter lets you step into the shadows. It sits between your application and the internet, allowing you to intercept packets, inject latency, and simulate "Chaos" (404s, 500s, or dropped connections) on a per-domain basis.
- 🕵️ Real-time Sniffer: A terminal-based dashboard showing live request/response cycles, headers, and payloads.
- ⏳ Latency Injection: Simulate 3G, Edge, or "Coffee Shop Wi-Fi" by throttling specific domains.
- 💣 Chaos Engine: Randomly or specifically inject HTTP errors (502 Bad Gateway, 408 Timeout) to test your app's resilience.
- 🔓 SSL/TLS Decryption: Automated Man-In-The-Middle (MITM) logic to sniff HTTPS traffic using a locally trusted CA.
- 🔍 Packet Filtering: Use regex to focus only on the traffic that matters (e.g.,
api.production.com).
Specter uses Node.js Streams to pipe data from the client to the server. This ensures that even large file uploads/downloads don't spike your RAM usage.
- Learning: Backpressure handling and chunked encoding.
To sniff HTTPS, Specter acts as a Certificate Authority (CA). It generates "ghost certificates" on the fly for requested domains.
- Learning: Public Key Infrastructure (PKI), X.509 certificates, and TLS handshakes.
By working with the net module for raw TCP and http/https for the application layer, this project demonstrates a full grasp of Layer 4 and Layer 7 networking.
- Node.js (v18+)
- Basic understanding of Terminal/CLI
- Install dependencies:
npm install
- Generate your local Root CA:
npm run generate-ca
- Trust the generated
src/ca/certs/rootCA.pemin your Browser/OS.
Start the proxy dashboard:
npm startConfigure your app or browser to use localhost:8080 as its proxy.
- Protocol Support: Add WebSocket sniffing and injection.
- Scriptable Rules: Allow users to write JS snippets to modify responses on the fly.
- Export to HAR: Save sniffed sessions for analysis in Chrome DevTools.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Developed for those who build in the light, but test in the dark.