Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vancaho opened this issue Mar 17, 2024 · 2 comments
Labels
question Further information is requested

Comments

@vancaho
Copy link

vancaho commented Mar 17, 2024

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
Copy link

g0mxxm commented Mar 22, 2024

yep! I also want to accomplish this function!

@myr-syn myr-syn added the question Further information is requested label Jun 3, 2024
@myr-syn
Copy link
Collaborator

myr-syn commented Jun 3, 2024

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:

return ((addr >= base) && (addr < end)) ? 0 : 1;

becomes return 0;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants