frida / frida-compile

Compile a Frida script comprised of one or more Node.js modules
Other
190 stars 48 forks source link

Added plain option to build without the container format #72

Open bluewave41 opened 1 year ago

bluewave41 commented 1 year ago

I noticed as well in issue #71 it's mentioned that evaluating scripts doesn't seem to work with the container format. I wasn't able to find a way to do this either thus this PR was born.

This PR adds a -p flag to build plainly without the container where when combined with -S builds a basic output file that can be eval'd.

oleavr commented 1 year ago

Thanks!

I think we should also throw an error if any imports are encountered, as otherwise we will end up generating broken output.

Regarding #71 the lack of support for the container format in Script.load() is not an intentional omission -- we should implement that. I think this PR is still worth pursuing though as there is also the Script.evaluate() use-case, where supporting multiple modules doesn't make sense.

publicresources commented 9 months ago

I wish this option be added