A forum for reverse engineering, OS internals and malware analysis 

Forum for discussion about kernel-mode development.
 #11701  by R00tKit
 Mon Feb 20, 2012 11:04 am
hi
it use
KeStackAttachProcess -> ZwClose -> KeUnstackDetachProcess
method??

in my first speedy check it dont close handle in user mode with DUPLICATE_CLOSE_SOURCE
 #11713  by EP_X0FF
 Tue Feb 21, 2012 6:39 am
geek1982 wrote:hi
it use
KeStackAttachProcess -> ZwClose -> KeUnstackDetachProcess
method??

in my first speedy check it dont close handle in user mode with DUPLICATE_CLOSE_SOURCE
PsLookupProcessByProcessId
KeAttachProcess
ObReferenceObjectByHandle
NtClose
ObfDereferenceObject
KeDetachProcess
ObDereferenceObject

There is function called from it dispatch routine, for v15 it's at 0x10002030.