connection between .dll and .exe

06/02/2022 08:49 badforce788#1
hi guys! i have .exe(injector) and .dll projects. i want to know which injector my .dll project interacts with. i will terminate if my injector is not used. how can I do that? thanks!
11/15/2023 16:09 syntex#2
Did you code them by your self? doesnt sound like :/

Maybe give more information about your projects, post snippets, ref to links so we can help you :D

We need more information hehe
12/12/2024 14:48 hanibalbin#3
I don’t think you have a method of doing that, it is loaded in memory by the injector and does not load anything else but the dll ( for example a signature or the name of the injector)

So the only thing you can do ia make a database of injector names and if that process exists unload the dll.

Ofcourse you can’t really do that since you can code one by yourself and give it a random name but there are also some that randomize the window amd process name every time they are ran.

TLDR: i don’t think you can
07/22/2025 17:22 StackOverflowed#4
You can use HMAC to securely verify that your .dll is being used by your own exe
07/24/2025 20:24 wurstbrot123#5
Your request probly has to do with licensing and its just much easier, and better to put license checks in the dll as well. There are ways to make it more difficult to use a different injector, but its all not to hard to find out.
A very easy example would be to let your injector write something to the dll memory
in ram, and if the dll doesnt find it, it quits. If you know how to code you can
produce a lot of different methods that make it harder to use a different injector.
More advanced methods could also be to fuck with the NT Header and use manual injection. For example Encrypt important parts of the NT Header of your dll and let your loader decrypt it and inject it.
Also Communication methods like named pipes could be used between injector and dll
and and and.....

edit: i fell into a grave