当前位置:首页 > iOS > 正文内容

iOS逆向,微信步数修改

8年前 (2017-08-28)iOS

hook住WCDeviceStepObject和SportDeviceInfo的两个方法就可以了


代码如下

@interface WCDeviceStepObject : NSObject

-(unsigned int)hkStepCount;

-(unsigned int)m7StepCount;

@end



@class WCDeviceStepObject;


CHDeclareClass(WCDeviceStepObject);


CHOptimizedMethod(0, self, unsigned long, WCDeviceStepObject, m7StepCount) {

    return 66666;

}


CHOptimizedMethod(0, self, unsigned long, WCDeviceStepObject, hkStepCount) {

    return 66666;

}


@interface SportDeviceInfo : NSObject

-(unsigned int)stepCount;

@end

CHDeclareClass(SportDeviceInfo);


CHOptimizedMethod(0, self, unsigned long, SportDeviceInfo, stepCount) {

    return 66666;

}


@interface UploadDeviceStepReq : NSObject

-(unsigned int)stepCount;

    @end

CHDeclareClass(UploadDeviceStepReq);


CHOptimizedMethod(0, self, unsigned long, UploadDeviceStepReq, stepCount) {

    return 66666;

}



CHConstructor{

    CHLoadLateClass(WCDeviceStepObject);

    CHHook(0, WCDeviceStepObject, m7StepCount);

    CHHook(0, WCDeviceStepObject, hkStepCount);

    CHLoadLateClass(SportDeviceInfo);

    CHHook(0, SportDeviceInfo, stepCount);

    CHLoadLateClass(UploadDeviceStepReq);

    CHHook(0, UploadDeviceStepReq, stepCount);

}

修改之后进入微信运动,步数成功显示66666

IMG_3783.PNG

扫描二维码推送至手机访问。

版权声明:本文由小祥子的博客发布,如需转载请注明出处。

本文地址:http://www.xiaoxiangzi.com/post/55.html

相关文章

iOS10越狱后yalu102无法连接SSH的解决办法

用Filza修改/private/var/containers/Bundle/Application/{UUID}/yalu102.app/dropbear.plist把里面有个参数127.0.0.1...

两次登录POST参数对比

接口地址https://p19-buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/authenticate同一个账号进行两次登录对比X-Apple-AM...

微信iOS逆向之假装很多人点赞和评论

最近发现一个朋友喊我点赞,他正在某商圈吃饭,说点到60个赞可以获得一个免单卡。于是诞生了做一个模拟点赞、评论差插件的想法。HOOK代码如下// 模拟点赞 评论%hook WCDataItem- (id...

iPhone HOOK将所有请求保存到txt

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Consolas; color: #f9f9f5} p.p2 {margin: 0.0px 0...

APPStore协议研究

最近闲来无事研究iOS逆向,逆向了手机淘宝,HOOK淘宝的任意类和函数,后来又研究了APPStore,用抓包工具发现分析不到传输过程,分析他可能是指定了通讯用的证书,通过代理的证书他不信任。后来分析内...

cycript快速定位ViewController

打印当前视图层次UIApp.keyWindow.recursiveDescription().toString()获取上级响应者[#id nextResponder]通过这两个代码可以定位当...