📜 ⬆️ ⬇️

VKApp Treatment for iPhone

Hello ladies and gentlemen. Today I want to talk about how the process of treating the VKontakte application for iOS took place.

Everyone knows that the new update has paid music and pages that are not displayed from the client due to 18+ content. This was done to ensure that the application passed moderation in the «AppStore».
Actually, these “innovations” caused a flurry of negative emotions towards the company. Consequently, I did not like it. Well, if there was something like a subscription in Google Play Music, I would not even think about the “treatment” of the application.

We proceed to the process itself.
First of all, I decided to find out what has changed in the very queries to vkapi, therefore, armed with a sniffer, I began to listen to where the application was knocking.

When searching for audio recordings, the query looked like this:
sniffer screenshot
')
A little thought, the thought came to me that most likely the reason was "User-Agent". The way it is. If you replace, for example, “com.vk.vkclient / 13” with “com.vk.vkclient 13”, audio recordings are perfectly looked for. The case is left for small, make a modification to the client.

Since I am a person far from programming in ObjC, I did not find a more logical option how to open the application package in the archiver and pull out the executable file for further study and manipulations in the HEX editor.

The usual search find references to "User-Agent". See something like this:

Hxd

For "treatment" it is enough to replace only one byte.
55 73 65 72 2D 41 67 65 6E 74 00 25 40 20 25 40 20 28 25 40 2C 20 25 40 20 25 40 2C 20 25 40 2C 20 53 63 61 6C 65 2F 25 66 29


As a result, we have "User-Agent: com.vk.vkclient 13". We pack everything back and put it on our device and have a completely untied application from iTunes and with open 18+ content.

cured version

PS: I will not speak about the version with the Offline mode, there is the same principle of action as in this treatment.

Source: https://habr.com/ru/post/232351/


All Articles