I am currently writing a DLL injection program (C++) which adds specified certificate to certmgr.exe
.
I wrote the whole thing connected with injection (OpenProcess
, etc.). When I am executing it - attached to svchost
- my DLL is not loading since it seems that it doesn't have such rights as svchost
has.
How can I pass rights?
In my DLL file, I am using system("certmgr.exe -add ....")
and I think this might be the problem because the command line opens as a separate program (as if I opened it via start
).