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

When releasing agent.so into a process, how to save it to a file first? #2859

Closed
EricWu123 opened this issue May 21, 2024 · 2 comments
Closed

Comments

@EricWu123
Copy link

EricWu123 commented May 21, 2024

When releasing agent.so into a process, how to save it to a file first and then inject it into the process instead of always being in memory. After injecting 100 processes, memory consumption is too high.

39 7f6626697000-7f66267f9000 r--p 00000000 00:05 12496187                   /memfd:frida-agent-64.so (deleted)
 40 7f66267f9000-7f662757d000 r-xp 00162000 00:05 12496187                   /memfd:frida-agent-64.so (deleted)
 41 7f662757d000-7f6627e1d000 r--p 00ee6000 00:05 12496187                   /memfd:frida-agent-64.so (deleted)
 42 7f6627e1d000-7f6627e1e000 ---p 01786000 00:05 12496187                   /memfd:frida-agent-64.so (deleted)
 43 7f6627e1e000-7f6627ee3000 r--p 01786000 00:05 12496187                   /memfd:frida-agent-64.so (deleted)
 44 7f6627ee3000-7f6627f00000 rw-p 0184b000 00:05 12496187                   /memfd:frida-agent-64.so (deleted)

and config.mk file in newest master branch not found when I want to get rid of some options like FRIDA_V8.

@EricWu123
Copy link
Author

EricWu123 commented May 24, 2024

I change assets option in frida/subprojects/frida-core/meson.options to installed, and then agent.so can be a fixed path.

@EricWu123
Copy link
Author

I found v8 option at frida/subprojects/frida-gum/meson.options, not in old config.mk file.

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

No branches or pull requests

1 participant