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 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 虚心请教几个问题,小生先有礼了
  • ¥30 截图中的mathematics程序转换成matlab