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

some questions #2

Open
Bia10 opened this issue Oct 29, 2021 · 3 comments
Open

some questions #2

Bia10 opened this issue Oct 29, 2021 · 3 comments

Comments

@Bia10
Copy link

Bia10 commented Oct 29, 2021

what are the dependencies of this project?
your referencing DllExport, RGiesecke.DllExport.Metadata which is not to be found
and then your referencing UnmanagedExports via paket.references
so whats this all about, why so many references where are they actually needed?

no .net5 support?
Evidence.GetHostEnumerator(); is not included in .net5

what are the modes of injection supported? only manged 32bit assembly into un/managed 32bit process?
can i inject unmanaged 32 bit assembly into managed 32 bit process?

is the interprocess communication via server/client rly a necessity?

@enkomio
Copy link
Owner

enkomio commented Oct 30, 2021

hi,
the mentioned DLL are installed by the build script. Have you tried compiling from the source to see if the problem resolve?
The DllExport is a necessary dependency in order to be able to export an unmanaged method.

I haven't tested it on .net 5, have you encountered any errors?

In the first paragraph of the README file, you can read:
"This project implements a .NET Assembly injection library (it is inspired by the snoopwpf project). The remote process can be a managed or unmanaged one." What do you mean with "unmanaged 32 bit assembly"?

The IPC is not strictly necessary, but this design makes the injection more reliable, since it can receive possible error messages.

@Bia10
Copy link
Author

Bia10 commented Oct 30, 2021

still cant figure where is that dllExport attribute from if there is no using reference to it

it wont build on .net5 as i implied before

a 32bit c++ .dll into 32bit C# process

tried to make it work with .net5 but
var hookProc = Win32API.GetProcAddress(moduleHandle, "HookProc");
returns win error 127

well it would be great if there was simple injection procedure without the IPC stuff

I would rly welcome following:

  • .net5 support

  • simplification of references and build process

@hanjunjun
Copy link

How to inject dynamic library into another process

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

3 participants