You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be awesome if Frida scripts could have an easy and portable mean of configuration for users, without the need of modifying scripts.
I was picturing this like passing "environment variables" from the console to the script environment.
For example:
I have a script that support debug log and I want to be able to turn it on and off at will.
Right now I have to declare a global JavaScript/TypeScript variable and modify the script.
Ideally this can become a variable passed from the console to the script context, like FRIDA_DEBUG=true frida -U -f app -l script.js
The script will now have a Environment class with the DEBUG field set to true so the user can easily set this without bothering modifying the script.
Does it make sense? Is this a nice thing to have?
If you can point me in the right direction I can start writing the initial code for a PR.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It would be awesome if Frida scripts could have an easy and portable mean of configuration for users, without the need of modifying scripts.
I was picturing this like passing "environment variables" from the console to the script environment.
For example:
I have a script that support debug log and I want to be able to turn it on and off at will.
Right now I have to declare a global JavaScript/TypeScript variable and modify the script.
Ideally this can become a variable passed from the console to the script context, like
FRIDA_DEBUG=true frida -U -f app -l script.js
The script will now have a
Environment
class with theDEBUG
field set totrue
so the user can easily set this without bothering modifying the script.Does it make sense? Is this a nice thing to have?
If you can point me in the right direction I can start writing the initial code for a PR.
Beta Was this translation helpful? Give feedback.
All reactions