Brida icon indicating copy to clipboard operation
Brida copied to clipboard

Exception with execute method

Open CHINA-china opened this issue 1 year ago • 9 comments

Exception with execute method net.razorvine.pyro.PyroException: [frida.core.RPCException] unable to find method 'exportedfunction' net.razorvine.pyro.serializer.PyroExceptionSerpent.FromSerpentDict(PyroExceptionSerpent.java:32) net.razorvine.pyro.serializer.SerpentSerializer$DictConverter.convert(SerpentSerializer.java:58) net.razorvine.serpent.ObjectifyVisitor.visit(ObjectifyVisitor.java:69) net.razorvine.serpent.ast.DictNode.accept(DictNode.java:8) net.razorvine.serpent.ast.Ast.accept(Ast.java:51) net.razorvine.serpent.ast.Ast.getData(Ast.java:45) net.razorvine.pyro.serializer.SerpentSerializer.deserializeData(SerpentSerializer.java:47) net.razorvine.pyro.PyroProxy.internal_call(PyroProxy.java:272) net.razorvine.pyro.PyroProxy.call(PyroProxy.java:178) burp.BurpExtender$17.run(BurpExtender.java:2861) java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base/java.lang.Thread.run(Thread.java:833)

brida.js image

CHINA-china avatar Jul 27 '23 09:07 CHINA-china

Hi @CHINA-china,

Can you give me more details? Brida has been properly configured? For more details on Brida configurations refer to the following documentation page: https://github.com/federicodotta/Brida/wiki/Start

Federico

federicodotta avatar Jul 27 '23 12:07 federicodotta

@CHINA-china 老哥,我最近也在用Brida,还剩最后一个问题一直解决不了,想请教一下你Spawn application,收到能回复一下吗,万分感谢!!🙏🙏🙏

zangcc avatar Jul 28 '23 03:07 zangcc

@CHINA-china老哥,我最近一直在用Brida,还剩下最后一个问题一直解决不了,想请教一下你的Spawn申请,收到能回复一下吗,万分感谢!!🙏🙏🙏 我用的不是Spawn application,这个插件6.0版本生产的js文件没办法使用,你的使用5.0版本生产js文件,给6.0用,但是好像这样不能return值,并且不能传参数

CHINA-china avatar Jul 28 '23 13:07 CHINA-china

@federicodotta I am using the window system, frida is 16.1.3, frida compile.exe is 16.1.3, and brida is 6.0. I found that using the js script file produced by brida 6.0 cannot hook properly. The program will prompt "Exception with execute method net. razorvine. pyro. PyroException: [frida. core. RPCException] cannot find method 'getplatform'", and any custom rpc exports cannot be found. Brida6.0 uses JavaScript files produced by Brida5.0 or uses Birda5.0 to hook programs, but cannot pass in parameters or return values.

CHINA-china avatar Jul 28 '23 13:07 CHINA-china

brida0.5 Can operate normally, but cannot pass parameters and return values image image image image

brida0.6 Unable to run properly and customize rpc.exports image image image %VIVQ1_GIS) Y3{5D64UEKC

CHINA-china avatar Jul 28 '23 14:07 CHINA-china

Hi @CHINA-china,

I made some checks and I found the issue. The problem is latest versions of frida-compile (v16.3.0). I tried with last version of Brida (0.6pre) and frida-compile (v16.3.0) and I have your same exception.

Then I tried with last version of Brida (0.6) and with frida-compile 10.2.5 and all works correctly. I try all the Brida functionality using the supplied Android demo without any issues.

Can you please try again with Brida 0.6pre frida-compile 10.2.5? In the meanwhile I will try to understand what changed in frida-compile.

Thanks, Federico

federicodotta avatar Jul 28 '23 15:07 federicodotta

Of course, thanks

CHINA-china avatar Jul 29 '23 07:07 CHINA-china

Can you tell me what version of Frida you are using? I found frida-compile version 10.2.5, but I couldn't find Frida version 10.2.5. I am using Python 3.7, frida-compile 10.2.5, frida 12.7.5, and Brida 0.6pre. I am getting the error "Exception with attach application net.razorvine.pyro.PyroException: [frida.InvalidArgumentError] gDBus.Error:re.frida.Error.InvalidArgument: Script(line 2497): SyntaxError: parse error." Thanks image

CHINA-china avatar Jul 29 '23 15:07 CHINA-china

HI @CHINA-china,

I was using the 15.2.1 version of Frida but your error seems to be a compilation error. I don't think that it depends on the Frida version.

Did you recompile the JS files after changing version of frida-compile? You can recompile files using the "Compile&Spawn" and "Compile&Attach" buttons.

Federico

federicodotta avatar Jul 31 '23 14:07 federicodotta