Skip to content

Instantly share code, notes, and snippets.

@XianThi
Last active April 24, 2022 23:13
Show Gist options
  • Save XianThi/3ccc4d2884dbd278f4bc3d5c7131ec64 to your computer and use it in GitHub Desktop.
Save XianThi/3ccc4d2884dbd278f4bc3d5c7131ec64 to your computer and use it in GitHub Desktop.
c2 unban with mitm proxy

Download mitmproxy from https://mitmproxy.org/

start mitmproxy with following code :

mitmproxy -s c2unban.py

change Proxy settings in phone :)

go to http://mitm.it in your phone browser and install certificate for ssl requests.

c2unban.py

from mitmproxy import http
import uuid

def request(flow: http.HTTPFlow) -> None:
    flow.request.query["device_id"] = str(uuid.uuid4())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment