Xepor (pronounced /ˈzɛfə/, zephyr), a web routing framework for reverse engineers and security researchers. It provides a Flask-like API for hackers to intercept and modify HTTP request and/or HTTP response in a human-friendly coding style.
This project is meant to be used with mitmproxy. User write scripts with xepor, and run the script inside mitmproxy with mitmproxy -s your-script.py.
Code everything with @api.route(), just like Flask! Write everything in one script and no if..else any more.
Handle multiple URL routes, even multiple hosts in one InterceptedAPI instance.
For each route, you can choose to modify the request before connecting to server (or even return a fake response without connection to upstream), or modify the response before forwarding to user.
Blacklist mode or whitelist mode. Only allow URL endpoints defined in scripts to connect to upstream, blocking everything else (in specific domain) with HTTP 404. Suitable for transparent proxying.
Human readable URL path definition and matching powered by parse
Host remapping. define rules to redirect to genuine upstream from your fake hosts. Regex matching is supported. Best for SSL stripping and server side license cracking!
Plus all the bests from mitmproxy! ALL operation modes ( mitmproxy / mitmweb + regular / transparent / socks5 / reverse:SPEC / upstream:SPEC) are fully supported.
Use Case
Evil AP and phishing through MITM.
Sniffing traffic from specific device by iptables + transparent proxy, modify the payload with xepor on the fly.
Cracking cloud based software license. See examples/krisp/ as an example.
Write complicated web crawler in ~100 lines of codes. See examples/polyv_scrapper/ as an example.