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

Can the project modified to load a .so file without call dlopen()? #4

Open
nk4z0u opened this issue Mar 12, 2024 · 3 comments
Open

Comments

@nk4z0u
Copy link

nk4z0u commented Mar 12, 2024

Hi.

A .so file is also an ELF file, so can the project modified to load a .so file without call dlopen()? And is it easy to do that based on the project?

Specifically, a process call something like "pawn_dlopen" and load a .so file into current process, and then get the export function address and call it.

Thank you.

@enty8080
Copy link
Member

Hello, @nk4z0u

May I ask you would you need to load a shared object if you can just load a complete executable ELF? I've never tried to write a tool to load a shared object though. I am interested in developing this project, so I might do this in future.

Kind regards,
Ivan Nikolskiy (@enty8080)

@nk4z0u
Copy link
Author

nk4z0u commented Mar 25, 2024

Hello, @enty8080. Sorry for replying late.

Yes. The scene is, in a running process, I'd like to load a shared object, but for some reason I can't call dlopen() to load it directly, so I want to know how to load a shared object manually without call dlopen().

@enty8080
Copy link
Member

@nk4z0u Why can't you just inject shellcode that loads appended ELF? Why would you need to load shared object specifically?

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

2 participants