首页
论坛
课程
招聘
[未解决,已结帖] 启动qq的浏览器activity 500.00雪花
2021-11-30 15:08 7695

[未解决,已结帖] 启动qq的浏览器activity 500.00雪花

2021-11-30 15:08
7695

图片描述

 

如图我用xp模块的hookui工具箱打开能够正常打开 但是自己编写代码就不能正常打开 有没有老哥帮忙写个xp的模块

 

我的代码 点击就直接崩溃了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
public void button_click(View view) throws IOException {
    ComponentName componentName = new ComponentName(
            "com.tencent.mobileqq",       "com.tencent.mobileqq.activity.QQBrowserActivity");
    Intent intent = new Intent();
    Bundle bundle = new Bundle();
    bundle.putLong("activity_time", System.currentTimeMillis());
    bundle.putLong("preAct_time", System.currentTimeMillis());
    bundle.putLong("business", 2097152);
    bundle.putString("activity_name", "com.tencent.mobileqq.activity.QQBrowserActivity");
    bundle.putString("activity_descript", "yy");
    bundle.putInt("fling_action_key", 2);
    bundle.putString("leftViewText", "返回");
    bundle.putString("url", "http://www.baidu.com");
    bundle.putString("activity_unihash", "461cf0735d8af8204a397286bfed");
    bundle.putInt("fling_code_key", 191996112);
    bundle.putInt("activity_id", 1);
    bundle.putString("preAct", "JumpActivity");
    bundle.putInt("seq", 7795);
    bundle.putBoolean("isSubbaccount", true);
    bundle.putBoolean("hide_more_button", true);
    bundle.putBoolean("isShowAd", false);
    bundle.putBoolean("hide_operation_bar", true);
 
    intent.putExtras(bundle);
    intent.setComponent(componentName);
    startActivity(intent);
 
}

【公告】看雪招聘大学实习生!看雪20年安全圈的口碑,助你快速成长!

收藏
点赞0
打赏
分享
最新回复 (2)
雪    币: 89
活跃值: 活跃值 (492)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
乐枫大大 活跃值 2021-11-30 15:52
2
0
 public  void hook3(final ClassLoader classLoader,final Context context1) {

        XposedHelpers.findAndHookConstructor("com.tencent.mobileqq.activity.LoginActivity", classLoader,  new XC_MethodHook(){
            @Override
            protected void afterHookedMethod(MethodHookParam param) throws Throwable {
                Gson g = new Gson();
                final Class<?> finalHookclass  = classLoader.loadClass("com.tencent.mobileqq.activity.QQBrowserActivity");
                Bundle bundle = new Bundle();
                Intent intent = new Intent(context1, finalHookclass);

                bundle.putLong("activity_time", System.currentTimeMillis());
                bundle.putLong("preAct_time", System.currentTimeMillis());
                bundle.putLong("business", 2097152);
                bundle.putString("activity_name", "com.tencent.mobileqq.activity.QQBrowserActivity");
                bundle.putString("activity_descript", "yy");
                bundle.putInt("fling_action_key", 2);
                bundle.putString("leftViewText", "返回");
                bundle.putString("url", "http://www.baidu.com");
                bundle.putString("activity_unihash", "461cf0735d8af8204a397286bfed");
                bundle.putInt("fling_code_key", 191996112);
                bundle.putInt("activity_id", 1);
                bundle.putString("preAct", "JumpActivity");
                bundle.putInt("seq", 7795);
                bundle.putBoolean("isSubbaccount", true);
                bundle.putBoolean("hide_more_button", true);
                bundle.putBoolean("isShowAd", false);
                bundle.putBoolean("hide_operation_bar", true);

                intent.putExtras(bundle);
                context1.startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
                Toast.makeText(context1,"已直接跳转到扫码界面",Toast.LENGTH_LONG).show();
                ((Activity) context1).finish();
                sendMsg("onVerifyCAPTCHA:" ,"NO.1:" +g.toJson(param.args[0]));

            }
        });
    }
雪    币: 89
活跃值: 活跃值 (492)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
乐枫大大 活跃值 2021-11-30 15:52
3
0
已解决
游客
登录 | 注册 方可回帖
返回