I want to spawn a program with frida-trace. I see the -f flag is used to do this but it's not obvious how to pass command line arguments. This seems to work:
frida-trace --device dev_id -S some_script.js -- /path/to/prog arg1 arg2
but it took a bit of fiddling around to figure out, would be nice if it was documented in frida-trace --help. The -- is needed when the args have -. It's not very obvious to me what target means here:
usage: frida-trace [options] target
can it be a file? pid? something else as well? Would be nice to clarify it a bit. A person also had this problem before: nowsecure/frida-trace#27 (comment) though it seems they didn't end open an issue here.
Awesome software btw :P
I want to spawn a program with frida-trace. I see the
-fflag is used to do this but it's not obvious how to pass command line arguments. This seems to work:but it took a bit of fiddling around to figure out, would be nice if it was documented in
frida-trace --help. The--is needed when the args have-. It's not very obvious to me whattargetmeans here:can it be a file? pid? something else as well? Would be nice to clarify it a bit. A person also had this problem before: nowsecure/frida-trace#27 (comment) though it seems they didn't end open an issue here.
Awesome software btw :P