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

How to make script's variables available in Frida command-line? #16

Closed
MarSoft opened this issue Feb 2, 2020 · 2 comments
Closed

How to make script's variables available in Frida command-line? #16

MarSoft opened this issue Feb 2, 2020 · 2 comments

Comments

@MarSoft
Copy link

MarSoft commented Feb 2, 2020

When I use regular (non-compiled) script in Frida like frida -H ... ... -l myscript.js, I can then access the global variables which were declared in the script from the Frida's command line.
But variables in the compiled script stay in the inner scope and cannot be accessed from command line.
How do I "export" them from compiled script?
For now the only way I could find is to manually edit compiled script which is definitely not nice.
Sorry if it is a noob question.

@oleavr
Copy link
Member

oleavr commented Feb 2, 2020

global.foo = foo;

@oleavr oleavr closed this as completed Feb 2, 2020
@oleavr
Copy link
Member

oleavr commented Feb 2, 2020

(Hopefully we'll eventually have some better docs on frida-compile 😅)

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