windows - Hooking or Monitoring Service Creation -
i @ end of rope here. have been trying 3 weeks information. before continue want know not writing malware here. writing binary analysis tool monitors behavior of malware.
what trying accomplish either hook or monitor createservicew , createservicea. reason want know process invoked createservice , binary is being registered service call.
i tried writing hook zwrequestwaitreplyport intercept lpc message, writing proxy dll advapi32.dll, , writing inline hook createservice function. none of these approaches have yielded results though. proxy dll promising in testing, didn't work when official dll in system32 replaced proxy (bsod). inline hook work if gain write access mapped area of memory dll lies in. regardless time running out , desperately in need of alternative.
i have looked @ setwindowshookex , seems plausible might able intercept messages sent process services.exe ...but not certain.
can point me in direction...i'm begging you.
"the inline hook work if gain write access mapped area of memory dll lies in."
if it's system control, why don't have write access memory?
use virtualprotect change permissions rwx , put hook in. advapi32 createservice routines stubs forwarded sechost.dll via api-ms-service-management-l1-1-1.dll (due minwin) there easy call instruction hook.
Comments
Post a Comment