m0bilesecurity / RMS-Runtime-Mobile-Security

Runtime Mobile Security (RMS) 📱🔥 - is a powerful web interface that helps you to manipulate Android and iOS Apps at Runtime
https://twitter.com/mobilesecurity_
GNU General Public License v3.0
2.62k stars 376 forks source link

Can't run multiple function in one script #65

Closed oynomed closed 3 years ago

oynomed commented 3 years ago

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.

m0bilesecurity commented 3 years ago

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

oynomed commented 3 years ago

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.

m0bilesecurity commented 3 years ago

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

oynomed commented 3 years ago

Its working now , thanks..

Anon-Exploiter commented 10 months ago

@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.