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

Build a crate as cdylib #68

Open
dzervas opened this issue Jun 3, 2023 · 0 comments
Open

Build a crate as cdylib #68

dzervas opened this issue Jun 3, 2023 · 0 comments

Comments

@dzervas
Copy link

dzervas commented Jun 3, 2023

I'd like to be able to build the target crate as a cdylib (shared library).That's a bit specific use case but I'm trying an integration test for https://github.com/dzervas/frida-deepfreeze-rs.

My usecase is that I want to test both library injection and library proxying. So:

I want to build a binary (tests/mybin) that depends on a shared library (tests/mylib). I want to make sure that:

  1. If you somehow inject libfrida-deepfreeze-rs.so to mybin (e.g. LD_PRELOAD or rundll32.exe) its code is going to run
  2. If you rename libmylib.so to libmylib-orig.so and libfrida-deepfreeze-rs.so to libmylib.so code is going to run and that the original mylib functions are working correctly

Does cdylib compilation need to be somehow implemented in escargot? Or maybe you have another good solution?

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