Created
January 30, 2025 05:21
-
-
Save lprhodes/b08195ef101e490fab873640f5c7cec1 to your computer and use it in GitHub Desktop.
gfn_override.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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