I believe that friends who like reverse engineering have already heard about the WeChat automatic red envelope grabbing plug-in, or it can be said that it has been widely disseminated, but the author found that only two articles are actually original, and the rest are crazy reprints. Read it Currently, the only "favorite" for WeChat on the Internet is grabbing red envelopes, so I bring you another practical skill---modifying WeChat exercise parameters, so my mother doesn't have to worry about me tying my phone to the dog's leg!
Closer to home, this article is only for those who are new to reverse engineering. Don’t criticize me. You can raise an issue for exchange and discussion. It would be more perfect if you star it.
Hardware tools : It is best to have a jailbroken iPhone. It doesn’t matter if you don’t have one. We will add non-jailbreak environment development later. This article is aimed at Tweak coding under Theos <The test machine iPhone 5c and a useless iPhone 5s used in this article , ps: Don’t ask why I mentioned it even though it wasn’t used, because as I write this, I can’t control the thought of showing off, so I won’t joke anymore! >
Software tools : Someone has already written the configuration and installation of development tools for us. It’s just a software installation, so I don’t need to step on the shoulders of my predecessors to continue my studies. Tutorial address, wait a minute, we still need to install one. Check out the treasures of WeChat header files: class-dump, Of course, the prerequisite for using it is that the app needs to be shelled before the header file can be exported correctly. As for how to shell the app, Google can definitely help you. We will not go into details about what can be found through Google at the moment. We will only talk about the ones that are not publicly available at the moment.
In our iOS system itself, there is a Sports and Health section, which records our daily steps, etc. Then the WeChat sports rankings definitely need to get the data when ranking the steps of friends, so from Where to get it? Needless to say, go to Sports and Health. If we can dynamically hijack WeChat when getting data, forge fake data and send it to WeChat, then we are done? Answer: if(YES){NSLog (@"Yes");}
Use the class-dump -H WeChat.app -o WeChatHead command to export the WeChat header file
There are really so many, thousands of them. We found that there are several very conspicuous attributes m7StepCount, hkStepCount, etc. in the WCDeviceStepObject class. They are as follows:
The keyword "stepCount" in Chinese is "number of steps", so is this a parameter we want to hijack and modify? It's useless to say more, just try it and you will know.
In the above picture we return "98800" steps for testing
You're done, you will be able to control the cover of the ranking list from now on. You can post text such as "Advertisement for rent, 5 yuan monthly subscription" and "Lost" to entertain people's attention.
There is less information on reverse development, and many problems need to be solved by yourself. As long as you sit down and study it, you will eventually be rewarded! If you like, give me a star!