synacktiv / frinet

Frida-based tracer for easier reverse-engineering on Android, iOS, Linux, Windows and most related architectures.
MIT License
423 stars 35 forks source link

How to modify the tracer to record the instruction traces from the first instruction of the main image? #2

Open vancaho opened 3 months ago

vancaho commented 3 months ago

Hi, frinet is an excellent project. I want to start tracing from the first inst of the main binary, then record all the instructions in all modules. How to modify the code to accomplish my need? Thanks very much

g0mxxm commented 3 months ago

yep! I also want to accomplish this function!

myr-syn commented 1 month ago

Hi, thank you for your feedback.

You first need to find the offset address of your main function - and use it in the command line as described in the README.

At the moment, there is no way to enable tracing of all modules in the cli, but you can edit this callback as follows: https://github.com/synacktiv/frinet/blob/46f04c5e6fa0d9407e6f6d6dc384365b43e7e82e/tracer/trace.js#L74 becomes return 0;.