FFF686868/proxypin-wloc-spoofer — reverse-engineered prompt
Reverse engineered prompt
Build me a small local JavaScript script for ProxyPin that I can paste into a new script rule for authorized iOS location testing. I want it to catch Apple WLOC traffic for gs loc cn apple com slash clls slash wloc and gs loc apple com slash clls slash wloc, keep the original binary request body untouched, handle gzip responses, and rewrite the latitude, longitude, and accuracy values inside the original WLOC response so I can force a repeatable test location.
Please make it clear near the top where I can change the target coordinates and accuracy. Add simple debug headers so I can quickly tell if the response was patched, what the original status was, and whether there was an error. This should only be a ProxyPin script, not a full app or proxy server.
Keep the code practical and easy to follow, with a short note on how to use it locally in ProxyPin with HTTPS capture and a trusted CA on the test device. You can check current ProxyPin script docs online if needed.
Want more depth? Deep Reverse