A lightweight MITMProxy addon that intercepts login requests, extracts UIDs from protobuf payloads, validates them against a local list, and rewrites server responses for invalid users.
- UID validation from
uid.txt - Protobuf decoding & encoding
- Custom response injection for invalid UIDs
- Nickname modification with error message
- Automatic MITMProxy certificate export
- Clean and minimal interceptor class
pip install mitmproxy protobufPlace your valid UIDs inside:
uid.txt
Run the proxy:
mitmweb -s interceptor.py -p 8080 --set block_global=false
The MITM certificate will automatically be saved to:
certificat_mitmproxy.pe
This project is for educational and debugging purposes only.
