AddFriendEntry

ErJinZhi
• 阅读 3652

添加好友

AddFriendEntryViewController

https://github.com/Afirefish/...

%hook MMSearchBar
- (_Bool)searchBar:(id)arg1 shouldChangeTextInRange:(struct _NSRange)arg2 replacementText:(id)arg3 {
    %log;
    return YES;
}
%end
- (void)onGetSearchContactRet:(id)arg1 req:(id)arg2 
{ 
    %log; 
    %orig; 
    SearchContactResponse *res = (SearchContactResponse *)arg1;
    SearchContactRequest *req = (SearchContactRequest *)arg2;
    NSLog(@"responder data----%@,%zd,%zd,%@, %@,%@", res.albumBgimgId,res.albumFlag,res.albumStyle,res.alias,res.antispamTicket,res.baseResponse);

    NSLog(@"request data----%@,%zd,%zd,%@,%zd,%@", req.baseRequest,req.fromScene,req.opCode,req.reqBuf,req.searchScene,req.userName);
    NSLog(@"setM_nsLinkedInName----%zd,%@,%@,%zd,%@,%zd",req.baseRequest.clientVersion,req.baseRequest.deviceId,req.baseRequest.deviceType,req.baseRequest.scene,req.baseRequest.sessionKey,req.baseRequest);
    NSLog(@"stringent-----%@",req.userName.string);

    
}
Nov 18 14:38:11 iPhone WeChat[4884] <Warning>: KNHooklog :-(id)initWithContentController:backGroundView:(have 2 value)
    return:(null)
    value1:AddFriendEntryViewController--><AddFriendEntryViewController: 0x16960400>
    value2:MMTableView--><MMTableView: 0x179ca600; baseClass = UITableView; frame = (0 0; 320 568); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x173eb570>; layer = <CALayer: 0x1719eb50>; contentOffset: {-0, -64}; contentSize: {320, 45}>
    object:<FindContactSearchViewCellInfo: 0x1754de00>
     ##########################################
Nov 18 14:38:15 iPhone WeChat[4884] <Warning>: KNHooklog :-(void)doSearch:Pre:(have 2 value)
    return:(null)
    value1:__NSCFString-->Sha
    value2:__NSCFNumber-->1
    object:<FindContactSearchViewCellInfo: 0x1754de
Nov 18 15:45:23 iPhone WeChat[693] <Notice>: [weiliu] /Users/devzkn/code/tweak/weiliu/weiliu/weiliu.xm:37 DEBUG: -[<FindContactSearchViewCellInfo: 0x16cb6b90> onGetSearchContactRet:<SearchContactResponse: 0x16eb9590> req:<SearchContactRequest: 0x16e5d690>]
Nov 18 15:45:23 iPhone WeChat[693] <Warning>: responder data----,0,0,shancci, v2_8f527f682333fb74431bb77f51bee552583cea128816f3434deb3c75b0386c9fc0b2c44b8f912bb06d65a9f73ede6821@stranger,<BaseResponse: 0x169564e0>
Nov 18 15:45:23 iPhone WeChat[693] <Warning>: KNHooklog :-(void)sendBrandContactListRequest(have 0 value)
    return:(null)
    object:<FindContactSearchViewCellInfo: 0x16cb6b90>
     ##########################################
Nov 18 16:00:12 iPhone WeChat[916] <Warning>: KNHooklog :-(void)addFriendScene:(have 1 value)
    return:(null)
    value1:CSearchedContact-->{m_nsUsrName=v1_*ger~108, m_nsEncodeUserName=(null), alias=sh*ci~7, m_nsNickName=没谱的曲, m_uiType=0, m_uiConType=0, m_nsRemark=(null),  m_nsCountry=CN m_nsProvince=Hunan m_nsCity=Changsha m_nsSignature=      m_uiSex=1 m_uiCerFlag=0 m_nsCer= scene=0 }
    object:<FindContactSearchViewCellInfo: 0x1839a300>
     ##########################################
Nov 18 16:00:12 iPhone WeChat[916] <Warning>: KNHooklog :-(void)showContactInfoView:(have 1 value)
    return:(null)
    value1:CSearchedContact-->{m_nsUsrName=v1_*ger~108, m_nsEncodeUserName=(null), alias=sh*ci~7, m_nsNickName=没谱的曲, m_uiType=0, m_uiConType=0, m_nsRemark=(null),  m_nsCountry=CN m_nsProvince=Hunan m_nsCity=Changsha m_nsSignature=      m_uiSex=1 m_uiCerFlag=0 m_nsCer= scene=0 }
    object:<FindContactSearchViewCellInfo: 0x1839a300>
     ##########################################
showContactInfoView

onGetSearchDetailPageResponse调用了howContactInfoView:

FindContactSearchViewCellInfo onGetSearchDetailPageResponse
void -[FindContactSearchViewCellInfo sendBrandContactListRequest](void * self, void * _cmd) {
    *((sp - 0x14) + 0xfffffffffffffffc) = r8;
    loc_1c0d080(@class(MMServiceCenter), @selector(defaultCenter), 0x344e938);
    r5 = loc_1c0d08c();
    loc_1c0d080(r5, @selector(getService:), loc_1c0d080(@class(BrandServiceSearchMgr), @selector(class), 0x345347c));
    r6 = loc_1c0d08c();
    loc_1c0d080(self, @selector(getSearchBarText));
    r4 = loc_1c0d08c();
    self->_requestEventID = loc_1c0d080(r6, @selector(sendDetailPageDataQuickRequest:Keyword:), 0x1, 0x0, r4);
    loc_1c0d090(r4, *ivar_offset(_requestEventID));
    loc_1c0d090(r6);
    loc_1c0d0a4(r5);
    return;
}
Nov 18 16:35:52 iPhone WeChat[1020] <Warning>: KNHooklog :-(void)onGetSearchDetailPageResponse:eventID:(have 2 value)
    return:(null)
    value1:ProtobufCGIWrap--><ProtobufCGIWrap: 0x16c678e0>
    value2:__NSCFNumber-->31
    object:<FindContactSearchViewCellInfo: 0x16951e00>
     ##########################################

    void -[FindContactSearchViewCellInfo MessageReturn:Event:](void * self, void * _cmd, void * arg2, unsigned long arg3) {
    r7 = (sp - 0x14) + 0xc;
    sp = sp - 0x54;
    r5 = self;
    r4 = loc_1c0d094(arg2, _cmd, arg2, arg3);
    loc_1c0d080(@class(CAppUtil), @selector(removePBEventObserverListItemByObject:), r5);
    if (loc_1c0d080(r4, @selector(m_uiCgi)) != 0x6a) goto loc_17454f0;

找到了创建CSearchedContact 的地方,这个是关键

void -[FindContactSearchViewCellInfo onGetSearchContactRet:req:](void * self, void * _cmd, void * arg2, void * arg3) {
    r7 = (sp - 0x14) + 0xc;
    sp = sp - 0x2c;
    r8 = self;
    r5 = loc_1c0d094(arg2, _cmd, arg2, arg3);
    r11 = loc_1c0d080(@class(CSearchedContact), @selector(contactFromSearchContactResp:Req:), r5, arg3);
%hook FindContactSearchViewCellInfo

- (void)onGetSearchContactRet:(id)arg1 req:(id)arg2
{
    %log;
    %orig;
    SearchContactResponse *res = (SearchContactResponse *)arg1;
    NSLog(@"responder data----%@,%zd,%zd,alias:%@, antispamTicket:%@,%@", res.albumBgimgId,res.albumFlag,res.albumStyle,res.alias,res.antispamTicket,res.baseResponse);
//alias:shancci, antispamTicket
    CContact *resultContact = [%c(CSearchedContact) contactFromSearchContactResp:arg1 Req:arg2];
点赞
收藏
评论区
推荐文章
blmius blmius
4年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
美凌格栋栋酱 美凌格栋栋酱
7个月前
Oracle 分组与拼接字符串同时使用
SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(
Karen110 Karen110
4年前
一篇文章带你了解JavaScript日期
日期对象允许您使用日期(年、月、日、小时、分钟、秒和毫秒)。一、JavaScript的日期格式一个JavaScript日期可以写为一个字符串:ThuFeb02201909:59:51GMT0800(中国标准时间)或者是一个数字:1486000791164写数字的日期,指定的毫秒数自1970年1月1日00:00:00到现在。1\.显示日期使用
待兔 待兔
1年前
手写Java HashMap源码
HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22
Stella981 Stella981
3年前
SpringBoot使用@ServerEndpoint无法依赖注入问题解决(WebSocket)
!(https://oscimg.oschina.net/oscnet/up8420801906305684903bceca6a85673cb00.png)!(https://oscimg.oschina.net/oscnet/upf7112141748204868f0368c51f4ea919103.png)如上两图所示,在WebSoc
Wesley13 Wesley13
3年前
CSS背景渐变
在css(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.51code.com%2F)中,有时我们需要实现如下图所示的,背景渐变(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.51code.com%2F
Stella981 Stella981
3年前
Linux下手机USB 显示???
如果你是一个开发人员,而且USB设备很多的话,使用以下方式会很方便:如果没有51android.rules文件,在/etc/udev/rules.d/目录下创建51android.rules;第一步:清空51android.rules,添加如下一行,一劳永逸(因我需要测试好几种设备,每次都添加一个会很麻烦)。1SUBSYST
Easter79 Easter79
3年前
SpringBoot使用@ServerEndpoint无法依赖注入问题解决(WebSocket)
!(https://oscimg.oschina.net/oscnet/up8420801906305684903bceca6a85673cb00.png)!(https://oscimg.oschina.net/oscnet/upf7112141748204868f0368c51f4ea919103.png)如上两图所示,在WebSoc
Wesley13 Wesley13
3年前
Java中的5大队列,你知道几个?
!(https://oscimg.oschina.net/oscnet/413dba940d7047ee828abcda51d24e4a.jpg)作者|王磊来源|Java中文社群(ID:javacn666)转载请联系授权(微信ID:GG\_Stone)本文已收录至https://github.com/vipstone
Python进阶者 Python进阶者
1年前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这
ErJinZhi
ErJinZhi
Lv1
愿所有的不安,都是虚惊一场。
文章
3
粉丝
0
获赞
0