Skip to content

document passing command line args to a frida-trace target #188

Description

@k4lizen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions