Closed kasnder closed 1 year ago
I was able to successfully add the GPC header to all requests being sent. The process is very similar to the instructions for setting up mitmproxy wireguard. The only difference is that now I added a python script that instructed mitm to add the GPC header to every outgoing request. The terminal command now is mitmweb --mode wireguard -s mitm-script.py
where mitm-script.py
is the name of the script file.
Below is a screenshot of what the requests look like now:
I will create an associated branch with the issue and push the python script on that branch.
Amazing stuff!!!!!
Excellent! So, now the question is how we can use this instrumentation to inject GPC into a larger set of apps.
But, maybe, that is a different issue. So, @n-aggarwal, please feel free to manage this as you see fit.
Since I was successfully able to add GPC header to mobile requests with mitmproxy, I am going to this issue. The script file to add the GPC flag is in branch issue-64.
The script file to add the GPC flag is in branch issue-64.
I'd say, add it to the main branch of the repo, e.g, in a scripts directory.
Explore use of
mitmproxy
. Example: https://github.com/mitmproxy/mitmproxy/discussions/5155