yqh2648 2019-11-28 21:46 采纳率: 0%
浏览 570
已结题

新手求助!Mac程序逆向,在monkeydev中我应该怎么hook下面这句?

百度了很多,但是hook Mac app的教程很少,我想学习下mac程序的逆向。取得一程序的h头文件如下:
#import

@class NSArray, NSImage, NSString;

@interface PCLocation : NSObject

{

BOOL _premium;

NSString *_code;

NSArray *_includes;

NSString *_name;

NSString *_tags;

NSString *_icon;

NSArray *_locations;

}

@property ( retain , nonatomic ) NSArray *locations; // @synthesize locations=_locations;

@property ( copy , nonatomic ) NSString *icon; // @synthesize icon=_icon;

@property ( nonatomic , getter =isPremium) BOOL premium; // @synthesize premium=_premium;

@property ( copy , nonatomic ) NSString *tags; // @synthesize tags=_tags;

@property ( copy , nonatomic ) NSString *name; // @synthesize name=_name;

@property ( readonly , nonatomic ) NSArray *includes; // @synthesize includes=_includes;

@property ( copy , nonatomic ) NSString *code; // @synthesize code=_code;

  • ( void ).cxx_destruct;

  • ( BOOL )isEqual:( id )arg1;

  • ( id )initWithDictionary:( id )arg1 locations:( id )arg2;

@property ( readonly , nonatomic ) NSImage *flag;

@property ( readonly , nonatomic ) NSString *localizedName;

@end

求教大神们:在monkeydev中我想hook下面这句:
@property ( nonatomic , getter =isPremium) BOOL premium; // @synthesize
让它返回true,我不知道怎么写,试了无数次都没有成功,请你们帮帮我这个新手吧!

  • 写回答

1条回答 默认 最新

  • threenewbee 2019-11-29 08:49
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题