m0bilesecurity/RMS-Runtime-Mobile-Security

Can't run multiple function in one script

Closed this issue · 5 comments

For example, I put three custom frida function in one script on start
1st run function rootdevicebypass, 2nd run function bypass okhttp3 and the last one sslbypasswithca.
RMS run only one function and not continuing to the next function.

Tested the script with 3 function directly in FRIDA and its working fine.

Hey @oynomed,
this is strange. Can you kindly share the script?
Thanks

My script is like this for example:

`Java.perform(function(){

  >>>>>>>>>>> FUNCTION 1 HERE <<<<<<<<<<<

ENDHERE1

Java.perform(function() {

  >>>>>>>>>>> FUNCTION 2 HERE <<<<<<<<<<<

ENDHERE2

Java.perform(function (){

  >>>>>>>>>>> FUNCTION 3 HERE <<<<<<<<<<<

ENDHERE3`

I put three functions in one script, FRIDA execute all three functions when I test it.

Hey @oynomed,
try to keep all of them inside a single "Java.perform(function (){CODE}"
Please let me know
Thanks

Its working now , thanks..

@m0bilesecurity are there any plans to support inclusion of multiple frida scripts and execute them? Just like in CLI:

frida -U -f com.example.app -l script1.js -l script2.js -l script3.js

Combining huge frida scripts into one is a pain ngl.