Nice! Request flow Constant reuqest queriesĪfter careful analysis of all 4 requests (creating a ride, cancelling a ride, getting available cars and polling current app status) it's pretty easy to notice that there are some parameters, which concern each of requests' query: gps_lat: current latitude What's intriguing about it is that we also get "surge_multiplier" parameter, which is not visible in the app. Sending such payload returns us with the list of possible fares and available bolt categories: The Bolt API, though not public, has still very descriptive error codes such as: You will encounter such errors a lot - the most important thing is to listen to them!īecause of that I knew we need to take a step back and first search for a taxi options to obtain the price lock hash and category id (Bolt, Lite, Pets.), which will be sent with a query for creating a ride. InsomniaĪfter I catched all the necessary requests I've proceeded to Insomnia to check which ones do I need. Unfortunately, I wasn't able to find the way to access the logs from your PC in real-time, but it is still an easy job to input those into Insomnia for tests. GuoShi made an awesome job and a beautiful Android app that allows you to sniff packets in real time. Go to the network settings of your Android device and type it in under "Proxy".From now on you can sniff the packets, just like you would be in dev-tools of Google Chrome. It will show you the port it's listening on (8080 by default). If your Android version is higher than Nougat (Android 7), which probably is the case since you're a mega geek and you're reading this article, you'll also need:Īfter installing the mitmproxy on your local-network PC, run command: mitmweb (or mitmproxy if you love CLIs)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |