Skip to content

Instantly share code, notes, and snippets.

@lprhodes
Created January 30, 2025 05:21
Show Gist options
  • Save lprhodes/b08195ef101e490fab873640f5c7cec1 to your computer and use it in GitHub Desktop.
Save lprhodes/b08195ef101e490fab873640f5c7cec1 to your computer and use it in GitHub Desktop.
gfn_override.py
from mitmproxy import http
def request(flow: http.HTTPFlow) -> None:
if "geforce" in flow.request.pretty_host:
flow.request.headers["User-Agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
flow.request.headers["X-Resolution"] = "2560x1440"
flow.request.headers["X-Refresh-Rate"] = "120"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment