frida / frida-tools

Frida CLI tools
Other
354 stars 98 forks source link

Create a replrc configuration file #85

Open yotamN opened 2 years ago

yotamN commented 2 years ago

A common use case I see is passing some helper script files to the REPL so it would be easier to work with. This and the configuration flags I'm adding (#76, #82) and plan to add (#83, #84), can make the frida command repetitive and long. Maybe we could add a simple configuration file which is simply a list of REPL commands? I'm thinking of something like this:

%autoperform on
%autoreload off
%load -y ~/Scripts/Frida/repl-utils.js
yotamN commented 2 years ago

Before working on a run control file, it would be wise to refactor the magics parsing to use shlex instead of doing it ourselves. It will fix the problems with files that contain spaces.