目标软件:三联中读【9.6.0版本】,
工具:Surge,不多做解释
MitM:apis.lifeweek.com.cn
功能模块:用到的功能:Surge-脚本-新增 -【脚本名】-三联中读,【脚本类型选择】-HTTP Response,【url正则表达式】-^https?:\/\/apis\.lifeweek\.com\.cn\/,【脚本位置】:本地,【需要Body 选项】打开,编辑脚本,复制下面代码进去
[JavaScript] 纯文本查看 复制代码var body = $response.body.replace(/userVflag":\d+/g, 'userVflag":1').replace(/vipValid":\w+/g, 'vipValid":true').replace(/vip":\w+/g, 'vip":true').replace(/buySingleMagazine":\w+/g, 'buySingleMagazine":true').replace(/subscribe":\d+/g, 'subscribe":1').replace(/memberFlag":\d+/g, 'memberFlag":1').replace(/readPermission":\w+/g, 'readPermission":true').replace(/subscribeState":\d+/g, 'subscribeState":1').replace(/feeType":\d+/g, 'feeType":0').replace(/vipExpiration":".*?"/g, 'vipExpiration":"2029-12-12"').replace(/hasZhuanfaYinyong":\w+/g, 'hasZhuanfaYinyong":true').replace(/time":\d+/g, 'time":0');
$done({ body });
付截图:
[i]
[i]
[i]
[i]
[i]