因为按键精灵ios手机版需要购买vip才能使用,于是自己动动手破解了。

原理是修改用户模块的变量

用户模块的变量被我强制改成

	arg1.UserName = @"修改注入的名字!";
	arg1.IsActivated = [NSNumber numberWithInt:1];
	arg1.IsVIP = [NSNumber numberWithInt:1];
	arg1.VIPExpTime = @"2022-06-15";

注入方式是用theos编写tweak生成deb包。
从此白嫖这个软件。。。。
tweak代码如下:

@interface MAUser : NSObject
	
@property(copy, nonatomic) NSString *UserName; // @synthesize 
@property(copy, nonatomic) NSNumber *IsActivated; // @synthesize 
@property(copy, nonatomic) NSString *VIPExpTime; // @synthesize 
@property(copy, nonatomic) NSNumber *IsVIP; // @synthesize 

@end


%hook MAMineHeaderView
- (void)updateWithUser:(MAUser *)arg1 {
	arg1.UserName = @"修改注入的名字!";
	arg1.IsActivated = [NSNumber numberWithInt:1];
	arg1.IsVIP = [NSNumber numberWithInt:1];
	arg1.VIPExpTime = @"2022-06-15";
    %orig;
}
%end

生成tweak模板的时候bundle ID 指定为:com.cyjh.MobileAnjian

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐