首页
社区
课程
招聘
[分享]frida实现某茄小说vip获取
发表于: 2024-9-19 17:53 1663

[分享]frida实现某茄小说vip获取

2024-9-19 17:53
1663

闲来无事,想练练frida,于是对这款小说下手了,首先jadx打开,看看代码,

老规矩,搜索isvip

点进str2所在,

可以看到str2不是传统的bool类型,而是一个string,然后expire也是一个string(通过frida hook之后发现是vip的到期时间的unix时间戳),所以话不多说,直接上frida,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Java.perform(function () {
  
    var VipInfoModel = Java.use('com.dragon.read.user.model.VipInfoModel');
 
 
    VipInfoModel.$init.overload('java.lang.String', 'java.lang.String', 'java.lang.String', 'boolean', 'boolean', 'int').implementation = function (str, str2, str3, z, z2, i) {
 
        console.log("VipInfoModel constructor called!");
        console.log("expireTime: " + str);
        console.log("isVip (str2): " + str2);
        console.log("leftTime: " + str3);
        console.log("isAutoCharge: " + z);
        console.log("isUnionVip: " + z2);
        console.log("unionSource: " + i);
   
    };
     
    console.log("success");
});

发现输出是,

所以,直接改了这几个就行,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Java.perform(function () {
  
    var VipInfoModel = Java.use('com.dragon.read.user.model.VipInfoModel');
 
 
    VipInfoModel.$init.overload('java.lang.String', 'java.lang.String', 'java.lang.String', 'boolean', 'boolean', 'int').implementation = function (str, str2, str3, z, z2, i) {
 
        console.log("VipInfoModel constructor called!");
        console.log("expireTime: " + str);
        console.log("isVip (str2): " + str2);
        console.log("leftTime: " + str3);
        console.log("isAutoCharge: " + z);
        console.log("isUnionVip: " + z2);
        console.log("unionSource: " + i);
        var ret = this.$init("4102415999","1","100000",false,false,0);
        console.log("Modified constructor return value: " + ret);
    };
     
    console.log("success");
});


成功


[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 2
支持
分享
最新回复 (5)
雪    币: 1236
活跃值: (1320)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
这么快就已经弄好了?
2024-9-20 11:31
0
雪    币: 2199
活跃值: (10153)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
功能都正常么
2024-9-23 09:17
0
雪    币: 220
活跃值: (50)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
你瞒我瞒 功能都正常么
功能肯定是正常的,但这个只是hook实现的,并没有涉及源码的修改,所以vip只能在frida脚本运行期间有效
2024-9-23 10:49
0
雪    币: 180
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
5
这是哪个版本
2024-9-24 15:53
0
雪    币: 2199
活跃值: (10153)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
Am1re 功能肯定是正常的,但这个只是hook实现的,并没有涉及源码的修改,所以vip只能在frida脚本运行期间有效
明白
2024-9-24 16:39
0
游客
登录 | 注册 方可回帖
返回
//