前言
MonkeyDev逆向之旅(二)
我们进一步使用
功能
点击登录获取账号密码信息
流程
使用xcode视图查看获取登录点击事件,和账号密码的UITextField


代码
@interface TXloginViewController
@property(nonatomic,strong) UITextField *codeField;
@property(nonatomic,strong) UITextField *nameField;
@end
%hook TXloginViewController
- (void)loginButtonAction{
NSLog([NSString stringWithFormat:@"名称:%@",self.nameField.text]);
NSLog([NSString stringWithFormat:@"密码:%@",self.codeField.text]);
}
%end
2019-06-20 13:16:23.180773 33IQ[9127:4728327] 名称:HAJAJAHA
2019-06-20 13:16:23.181150 33IQ[9127:4728327] 密码:123456
网友评论