help writing shield for clam anti virus

From: joe (jcharth_at_hotmail.com)
Date: 05/31/04


Date: Mon, 31 May 2004 15:06:43 GMT

Hi I am trying to create an open source shield. I wrote a little process
scanner with the code from an example by Ivo. Currently it scans every
process after it is launched and it tell warns when i file that is running
is infected. I found a couple of driver examples on the web for reporting
file io access. One is called filemon and the other is called spy. I found
spy at code guru. I also found another example that halts the system. my
idea is to monitor update, create file and halt the system as soon as one
of this files is infected then remove the file in the halt screen. I found
a piece of code to halt the system too. My problem is that i cant get any
out put of the sys or vxd drivers. I was wondering if anyone can help me to
do this. I believe the spy driver is written in asm and i dont have ddk so
i cant recmpile the driver, and i believe it only outputs file access to a
file and it only works with vxds.
 I am using the cygwin compiler and i have managed to compile the cpp code
of filemon but i cant get it to print the io access to screen.
 I created a loop with the following code but i cant get anything out of it
         if ( ! DeviceIoControl( sys_handle, FILEMON_getstats,
                                                                                NULL, 0, &Stats,
sizeof Stats,
                                                                                &StatsLen, NULL ) )
          { printf( "no access driver" );}
                                        
                 printf( "%s\n", Stats );

  thanks in advanced for the help.



Relevant Pages

  • Re: monitor not vga compatible help
    ... > keyboard,I cant spell very well and it is taking me a long time to write ... > I dont think that what I wrote was so hard to understand but it was ... >>> compatible i dont have disc know that xp has this driver but i read ... >>> understand it it is a tft monitor proview i have been to the sight ...
    (microsoft.public.windowsxp.general)
  • Re: Whats the best strategy for finding a good parking spot quickly?
    ... Oh it was 22500 for 30 days at the dock. ... I get my driver lost 5 times a day. ... The window is tinted and he cant see me and cant find me. ... the ship and they tell him Im shopping and hang upp on him. ...
    (sci.physics)
  • Re: ndtest.exe hangs when doing 1c_InitTIme variation 11 (HCT 11.2)
    ... Have you tried this on a fresh OS install (clean install)? ... > Yes I saw the halt called and watched it deallocate memory interrupt etc. ... After the 30 second delay I get this ... > I agree that it is our driver that causes the 30 second delay, ...
    (microsoft.public.development.device.drivers)
  • Re: EWF on WinPE
    ... the problem with the not existing Arcpath in WinPE ... is something, that makes me think, that WinPe cant help in any way. ... If I had more time, I think I would succeed in writing a driver ... FBA on CD device direct (FBA must than be faked, because you cant write ...
    (microsoft.public.windowsxp.embedded)
  • Re: ndtest.exe hangs when doing 1c_InitTIme variation 11 (HCT 11.2)
    ... The Stop driver spew is written when NDISTest is trying to Halt your ... Most likely the script has called the OS to disable your miniport ... > when we followed the popup instruction and unplugged the access point. ...
    (microsoft.public.development.device.drivers)

Loading