It's time to show you my new project called "HLeaker".
It allows you to use the process handles from services/protected processes like csrss and lsass.
This uses a shellcode to set the handle to inherit status and CreateProcessAsUser to start a child process and inherit the opened handle.
You can use this to steal handles from other processes and use it for your own purposes.
How does it work?
Gets the processid of the process
Enumrates the handles using ServiceEnumHandles
Iterates through the HandleList and set the handle status to inherit using ServiceSetHandleStatus
Starts the child process with the inherited handle as parameter using ServiceStartProcess.
Use Visual Studio 2015 or higher to compile this and make sure you encrypt the shellcodes.
[B]I am not the original creator all credit goes to Schnocker
Virus scans:
Virustotal
Jotti