I want to know, using windbg or any other debugger how can i get the PID of child process created by parent process.
Example :
Debugger attached to arbitrary running "Process A".
When debugger is attached to process A(Parent), Process A creates another child process (Process B) using kernel32!CreateProcess* or kernel32!CreateProcessInternal.
So how can I get the PID of process B from process A??
Mainly I want to do it using pydbg but if i get to know how to achieve this manually using windbg, i hope I will be able to do the same using pydbg.
Thanks in Advance,
In WinDbg, there is also the command
.childdbg 1so that you simply debug all child processes.Here's the longer version using breakpoints when doing user mode debugging:
102cis the process ID of the child process. If the process does not die immediately, you can use.tlistto cross check.If you don't have symbols, you could still dump memory