Redirect input from file to string

  • Thread starter Thread starter bonzo
  • Start date Start date
B

bonzo

Hi I have external exe file that reads some data from a file named
input.txt. I want to detect that attempt and push my string in the
input. Is there any way how to do it without reading/writing on the disk
and renaming files ... ?
Thanky you

Libor
 
Hello, bonzo!

b> Hi I have external exe file that reads some data from a file named
b> input.txt. I want to detect that attempt and push my string in the
b> input. Is there any way how to do it without reading/writing on the disk
b> and renaming files ... ?

It is not simple task.
AFAIK there are following ways how you can do that.
- through dll injection ( where substitute addresses of CreateFile, ReadFile and WriteFile on your own )
- write device driver that will "monitor" disk I/O

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Back
Top