Re: intercepting file i/o of another process
- From: navels <navels@xxxxxxxxx>
- Date: Mon, 1 Dec 2008 20:32:56 -0800 (PST)
The IO is not totally arbitrary. The spawned process will create a
new file, write its results to the file serially, and close the file.
If I had access to the file handle, it would seem this could be done
using a pipe. Unfortunately I don't have a clue how to go about
getting that file handle.
Lee
On Nov 30, 2:55 pm, "m" <m...@xxx> wrote:
Then you have no hope of success (in a reasonable period of time of course)
Think about what you are trying to do: intercept arbitrary IO on one or more
handles from a 3rd party binary and encrypt the data. Ignoring the problem
of capturing the IO, how will you deal with encryption when processing
arbitrary IOPs on an incomplete file?
I wish you all success, but I highly recommend that you change your approach
to this problem.
"navels" <nav...@xxxxxxxxx> wrote in message
news:5b016269-268a-4bb0-b27b-4925b3db21fb@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I appreciate the suggestions, but neither of these are options.
On Nov 28, 9:04 am, "m" <m...@xxx> wrote:
then look at methods to secure the transmission -> VPN of some kind
alternatly, have the application save the file locally, and then you can
encrypt it before coppying over the network.
"navels" <nav...@xxxxxxxxx> wrote in message
news:430d0e39-680b-4b50-b618-70f789443d47@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Mostly the transmission.
On Nov 26, 5:38 pm, "m" <m...@xxx> wrote:
Are you concered about encrypting the file itself or just its
transmittion
over the insecure network?
"navels" <nav...@xxxxxxxxx> wrote in message
news:b08e5476-2031-4828-8ba7-46f94a0f7be1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am using CreateProcess to spawn a computational task. The task
takes some command line parameters and writes its results to a file..
Now I have a requirement to encrypt the output file. While it is
being written over a public network. And I do not have source code
for the task application.
So . . . is there any way I can intercept the file handle the child
process creates for the output file? Then the parent app can read get
the output, encrypt it, and write it out. If the child was writing to
stdout, of course this would be much easier. But it is not.
This may be tantamount to sandboxing, but I would prefer a light-
weight solution I can program myself (C++ or C#). Any ideas?
Thanks,
Lee
.
- Follow-Ups:
- Re: intercepting file i/o of another process
- From: Günter Prossliner
- Re: intercepting file i/o of another process
- From: hollowdrutt
- Re: intercepting file i/o of another process
- Next by Date: Re: intercepting file i/o of another process
- Next by thread: Re: intercepting file i/o of another process
- Index(es):
Relevant Pages
|