flat assembler
Message board for the users of flat assembler.
Index
> Windows > CreateProcess Problem |
Author |
|
revolution 28 Jan 2008, 19:38
You need to use WriteFile to write data into the newly created file.
|
|||
28 Jan 2008, 19:38 |
|
asmrox 28 Jan 2008, 20:08
CreateProcess write to it. i replaced orginal stdout with my handle, so it should work.
|
|||
28 Jan 2008, 20:08 |
|
Yardman 29 Jan 2008, 15:48
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 03:01; edited 1 time in total |
|||
29 Jan 2008, 15:48 |
|
revolution 29 Jan 2008, 15:55
asmrox,
You need to give time for the target process to start. After creating the process, sleep for a short while then close the file handle. TFM wrote: CreateProcess returns without waiting for the new process to finish its initialization |
|||
29 Jan 2008, 15:55 |
|
Yardman 29 Jan 2008, 16:34
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 03:03; edited 1 time in total |
|||
29 Jan 2008, 16:34 |
|
TNick 29 Jan 2008, 16:48
Hello!
Quote:
Both on the process handle and on the thread handle, which are returned in PROCESS_INFORMATION Structure. Nick |
|||
29 Jan 2008, 16:48 |
|
asmrox 30 Jan 2008, 17:02
huh? why 'welcome prompt' go on stderr?
and how i do this with stdin? push 0 push 0x80 push 3 push 0 push 0x00000001 push 0x80000000 push fp2 call [CreateFileA] mov [input],eax and input is in startupinfo structure. in reading file i put dir\r\n, but in output thers no result of it =( |
|||
30 Jan 2008, 17:02 |
|
OzzY 30 Jan 2008, 21:39
Talking about process I'll ask my question here: How to patch a process in memory? Do you have example code?
Thanks |
|||
30 Jan 2008, 21:39 |
|
revolution 30 Jan 2008, 21:45
OzzY wrote: Talking about process I'll ask my question here: How to patch a process in memory? |
|||
30 Jan 2008, 21:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.