Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错:print request error : Error: java.lang.NoSuchFieldException: No field request in class Lokhttp3/Response; #3

Open
lyg4795 opened this issue Nov 2, 2020 · 5 comments

Comments

@lyg4795
Copy link

lyg4795 commented Nov 2, 2020

用来hook 一款新氧医美的app的okhttp3, 用-f的方式启动,会直接报process terminal.
打开app去掉-f 可以正常启动,然后find 显示为混淆.
先搜索玻尿酸,运行hold()
然后点击进入详情页
就会出现标题显示的错误.
能指教一下有什么办法可以获取这个app的包吗?

@siyujie
Copy link
Owner

siyujie commented Nov 2, 2020

find的结果记得要替换掉代码中的变量呦。

@lyg4795
Copy link
Author

lyg4795 commented Nov 3, 2020

find的结果记得要替换掉代码中的变量呦。

谢谢大佬,确实获得了我想要的数据.
另外,我发现请求图片链接都会报错,虽然不影响结果
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
| URL: https://img2.soyoung.com/tieba/ios/shortpost/20200731/0/3f1acb090ac6a9e645c3ec46032a055c.jpg
|
| Method: GET
|
| Request Headers: 1
| └─User-Agent: Dalvik/2.1.0 (Linux; U; Android 9; MI 8 MIUI/9.7.4)
| File Request Body Omit.....
| File Response Body Omit.....
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Error: invoke(): argument types do not match any of:
.overload('java.lang.Object', '[Ljava.lang.Object;')
at ge (frida/node_modules/frida-java-bridge/lib/class-factory.js:584)
at frida/node_modules/frida-java-bridge/lib/class-factory.js:996
at /okhttp_poker.js:529
at je (frida/node_modules/frida-java-bridge/lib/class-factory.js:633)
at frida/node_modules/frida-java-bridge/lib/class-factory.js:616
Error: invoke(): argument types do not match any of:
.overload('java.lang.Object', '[Ljava.lang.Object;')
at ge (frida/node_modules/frida-java-bridge/lib/class-factory.js:584)
at frida/node_modules/frida-java-bridge/lib/class-factory.js:996
at /okhttp_poker.js:529
at je (frida/node_modules/frida-java-bridge/lib/class-factory.js:633)
at frida/node_modules/frida-java-bridge/lib/class-factory.js:616

@siyujie
Copy link
Owner

siyujie commented Nov 5, 2020

App是哪个版本的?我这边测下

@lyg4795
Copy link
Author

lyg4795 commented Nov 5, 2020

App是哪个版本的?我这边测下

新氧医美 8.11.0 ,搜索之后, 然后点击进入详情页的时候

@siyujie
Copy link
Owner

siyujie commented Nov 16, 2020

我这边没用复现问题,但还是优化了一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants