Sunday, September 14, 2014

Highjacking a url request via Charles 3.9.2

- install charles
- run what you want that requests data
- copy and edit that information to conform with what you want it to
- save it in a text file (make sure it has no extra stuff like rich text or html headers)
- right click on Charles where the request happened
- choose "map local" which is usually on the bottom of the list
- choose the file you created

From now on, it will use that file instead of what it gets back from the URL request!

Now if you want to add this capability to your devices
- open up your settings
- choose the same wifi as your computer
- go to the bottom of the of wifi setting for that and edit the HTTP PROXY info
- change the "server" to your computer IP and the Port to 8888 (Charles uses this)
- you should get a warning in Charles asking if you want a new device connected to it, say yes
- make sure you have no VPN setup or it may conflict

From now on, your device will also get interrupted by Charles and will get the response that you created instead of the URL response. 

No comments:

Post a Comment