Home >WeChat Applet >WeChat Development >Teach you how to modify WeChat exercise steps (IOS)

Teach you how to modify WeChat exercise steps (IOS)

PHPz
PHPzOriginal
2017-05-01 11:17:2113471browse

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

A sports and health, where we record our daily step count behavior, etc., so the WeChat sports rankings definitely need to get the data when ranking the steps of friends, so where to get it? Needless to say, go Sports and health, if we can perform dynamic hijacking when WeChat retrieves data, forge fake data and send it to WeChat, then is it done? Answer: if(YES){NSLog(@"Yes"); }


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 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.


Create a Tweak project as follows:


#Write the Tweak.xm file as follows:



##We return to the above picture" 98800" steps for testing,

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



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!


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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn