Re: Antivirus engine check utility

From: Michel Gallant (MVP) (neutron@istar.ca)
Date: 11/02/02


Date: Sat, 02 Nov 2002 08:55:47 -0500
From: "Michel Gallant (MVP)" <neutron@istar.ca>


hey, hey ....
that batch file is only 18 bytes:
   cmd /K net share
and could have been removed, but it is handy as a quick launch of
the net share command ;-) I can remove it, if enough folks don't
like it. You get to see what is actually happening this way. But, if
enough folks comment, I can easily clean it up.

BTW, the reason I use that batch file (instead of simply invoking the
"net share" command directly via a process thread in Java) is that for
some reason, on Win2000, that command can not be invoked directly,
but it does work via an intermediate batch file write/start approach.

Regarding TEMP, there are a number of approaches:
  - get handle to any Win environment variable and use that to build path
  - get any Java system property and use that to build preferred path for temp batch.

Thanks,
 - Mitch

Ned Flanders wrote:

> Works like a champ on Win2K SP3 and WinNT4 SP6a, except for the littering up
> of my desktop with the batch file ;-) One thing I noticed is on my machine
> that has 40-odd shares the NET SHARE command doesn't wait after a screenful
> so some just scroll off the screen. Also - I'm completely unfamiliar with
> Java, but isn't there a way to make the applet aim at %TEMP% instead of the
> desktop? That way I won't care if there's an extra file on the system, and
> my nightly %TEMP% cleanup will get it anyway. I'm *quite* anal retentive
> about keeping my desktop tidy :-)
>
> Alternatively, make it a self-destructing batch file like so:
>
> @echo off
> net share | more
> pause
> del %0 <EOF goes on THIS line to avoid "batch file missing" messages>
>
> That's the only nits I have to pick, and they're pretty small ones.
>
> "Michel Gallant (MVP)" <neutron@istar.ca> wrote in message
> news:3DC2C400.13427A07@istar.ca...
> > I have developed a utility to proactively check if your antivirus engine
> > is actually working and that it is configured properly to scan all file
> types.
> > Don't rely on that icon-tray .... make SURE it actually is working!
> >
> > Originally targetted at NAV, I have reduced the functionality to implement
> > an AV engine check from a digitally-signed web page to:
> >
> > - attempt to write the standard EICAR virus string, as a text file, to
> the
> > local client and detect the AV engine response (the EICAR string is
> byte-wise
> > embedded in the signed Java applet)
> >
> > - invoking the "cmd /K net share" command on NT, 2000 or
> "netwatch.exe" for Win9x
> > to easily allow any user to see their network shares (again for
> non-savy users)
> >
> > Might be interesting to see if any firewalls/gateways are intelligent
> enough to pick up
> > the eicar string embedded this way :-)
> >
> > Anyone wishing to try the utility, email me for the link.
> >
> > - Michel Gallant
> > MVP Security
> > http://home.istar.ca/~neutron
> >
> >



Relevant Pages

  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • Re: calling java class from web page
    ... When I run either a batch file or .net console app from the command line the ... java application launches correctly and runs the Pro/E program as desired. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: log off command
    ... SOON 3600 LOGOFF %ID2% ... If it doesn't work please post what the "at" command returns if you run it ... after the batch file and please again describe when it does not work. ... Matija Hrovat ...
    (microsoft.public.windowsxp.basics)
  • Re: Looking for binary file xfer from TRSDOS6/LSDOS6
    ... be wrong with the command line parameters. ... By deleting a few lines from the start of the batch file, ... FTII will eventually reach and transfer the files it just claimed were ... and my list is longer than the buffer can handle. ...
    (comp.sys.tandy)