安卓逆向小案例——某短视频APP搜索+推荐接口【rpc调用】

一、目标
【安卓逆向小案例——某短视频APP搜索+推荐接口【rpc调用】】完成推荐列表和搜索列表的数据抓取 。推荐列表可不用传参,搜索列表传入一个搜索词进行搜索 。
二、实现 1. 下载apk并做好相应的准备工作2. 入口查找与分析
RposedBridge.hookAllConstructors(URL.class, new RC_MethodHook() {@Overrideprotected void afterHookedMethod(MethodHookParam param) throws Throwable {super.afterHookedMethod(param);URL url = (URL) param.thisObject;Log.d(TAG, "access url: " + url);}});
RposedBridge.hookAllConstructors(URL.class, new RC_MethodHook() {@Overrideprotected void afterHookedMethod(MethodHookParam param) throws Throwable {super.afterHookedMethod(param);URL url = (URL) param.thisObject;// Log.d(TAG, "access url: " + url);// 推荐if (url.toString().contains("api/sns/v6/homefeed")) {Log.d(TAG, "推荐 url: " + url, new Throwable());}// api/sns/v10/search/notes if (url.toString().contains("search/notes")) {Log.d(TAG, "搜索 url: " + url, new Throwable());}}});