Note: 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 there are actually only two articles about it. Original, the rest are crazy reprints. After looking at the "love" for WeChat on the Internet, currently the only thing is grabbing red envelopes, so I bring you another practical skill---modifying WeChat exercise parameters, so mom doesn't have to worry about me. Tie your phone to a dog's leg!
Hardware Tools: It is best to have a jailbroken iPhone. It doesn't matter if you don't have one. I will add non-jailbroken ones later. Environment development, This article is aimed at Tweak coding under Theos Software tools: A senior person has already written the configuration and installation of development tools for us. It is just a software installation, so I don’t need to step on the shoulders of my predecessors to continue my studies. Wait a minute, we also need to install a treasure to view 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. Currently, we can’t do anything that can be found on Google. To delve deeper, we will only talk about the hardware and software that are currently undisclosed
We found that there are several very conspicuous attributes m7StepCount in the WCDeviceStepObject class ,hkStepCount, etc. As follows:
##The Chinese of the keyword "stepCount" is "number of steps" ", So is this a parameter that we want to hijack and modify? It is useless to say more, just try it and you will know.
#Write the Tweak.xm file as follows:
make and install the Tweak project and check the results on the test machine, as follows:
It’s done, you will control the cover of the ranking list from now on, you You can type "Advertisement for rent, 5 yuan monthly subscription" and "lost" to entertain people's attention. The above code is just a brief description, the complete source code will be placed on the author's WeChat official account [public brush step] ] Friends can test it by themselves The above is the detailed content of Teach you how to modify WeChat exercise steps (IOS). For more information, please follow other related articles on the PHP Chinese website!
Observe the WeChat header file
Use the class-dump -H WeChat.app -o WeChatHead command to export the WeChat header file
It’s really huge, thousands of them.h
##We return to the above picture" 98800" steps for testing,
Summary: There are few reverse development materials, and many problems need to be solved by yourself , as long as you sit down and study it, you will eventually be rewarded!