东方红头条app爬虫逆向

287 阅读1分钟

关键参数 :key

定位关键方法:

开启app时开始hook+抓包找到关键参数来源

objection -g com.songheng.eastnews explore --startup-command "android hooking watch class_method com.songheng.eastfirst.common.domain.interactor.b.b.c --dump-args --dump-return --dump-backtrace" 结果:

GET /getkey/key?appver=020409 HTTP/1.1 Host: tjv1.dftoutiao.com Connection: Keep-Alive Accept-Encoding: gzip User-Agent: okhttp/3.4.1 返回 ["JJxGiZivgA6Wc"]

爬虫方案:生产方法直接copy下来,请求获取参数后生成可用key