首页
社区
课程
招聘
[未解决,已结帖] 启动qq的浏览器activity 500.00雪花
发表于: 2021-11-30 15:08 8954

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

2021-11-30 15:08
8954

图片描述

 

如图我用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);
 
}

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 92
活跃值: (812)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
 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]));

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