Re: Thread Injection + Cygwin problems

2006-06-21 Thread Kaveh Goudarzi
Christopher Faylor wrote: On Wed, Jun 21, 2006 at 07:44:15AM +0100, Kaveh Goudarzi wrote: cgf wrote: Sorry. Don't know. I've given you the basic facts but researching this further is not something that I'm interested in doing. Your use is very much a corner case and if it doesn't work then I

Re: Thread Injection + Cygwin problems

2006-06-21 Thread Christopher Faylor
On Wed, Jun 21, 2006 at 07:44:15AM +0100, Kaveh Goudarzi wrote: >cgf wrote: >>The problem may be due to the fact that the injected thread doesn't have >>a cygtls area. If the thread is injected prior to the completion of >>cygwin's initialization or if it somehow bypasses the DLL_THREAD_ATTACH >>p

Re: Thread Injection + Cygwin problems

2006-06-20 Thread Kaveh Goudarzi
Hi, The problem may be due to the fact that the injected thread doesn't have a cygtls area. If the thread is injected prior to the completion of cygwin's initialization or if it somehow bypasses the DLL_THREAD_ATTACH phase of the initialization (which was one problem that I had to deal with in

Re: Thread Injection + Cygwin problems

2006-06-20 Thread mwoehlke
Christopher Faylor wrote: On Mon, Jun 19, 2006 at 06:11:57PM -0500, mwoehlke wrote: Kaveh Goudarzi wrote: I've written a program to detect the invocation of processes and then inject them with a remote thread in the hope of getting the cmdLine/cwd and environment variables of the running proces

Re: Thread Injection + Cygwin problems

2006-06-20 Thread Christopher Faylor
On Mon, Jun 19, 2006 at 06:11:57PM -0500, mwoehlke wrote: >Kaveh Goudarzi wrote: >>I've written a program to detect the invocation of processes and then >>inject them with a remote thread in the hope of getting the cmdLine/cwd >>and environment variables of the running process. >[snip] >>I'm not su

Re: Thread Injection + Cygwin problems

2006-06-19 Thread mwoehlke
Kaveh Goudarzi wrote: Hi, I've written a program to detect the invocation of processes and then inject them with a remote thread in the hope of getting the cmdLine/cwd and environment variables of the running process. [snip] I'm not sure how to approach the problem so any advice would be

Thread Injection + Cygwin problems

2006-06-19 Thread Kaveh Goudarzi
Hi, I've written a program to detect the invocation of processes and then inject them with a remote thread in the hope of getting the cmdLine/cwd and environment variables of the running process. In doing so I came across the fact that cygwin does not synch its vars with windows for cygwin