[comp.binaries.ibm.pc.d] Virus checking of archives from a batch, available at garbo

ts@uwasa.fi (Timo Salmi) (05/12/91)

Sun 12-May-91: I have updated my collection of useful batch files to
be /pc/ts/tsbat25.arc.
   One of the constant worries of downloaders of archived packages
is the threat of viruses. (Games from shady BBSes are particularly
susceptibe, but even commercial products have been known to be
infected). Fortunately there are good virus checkers like McAfee's
/pc/virus/scanv77.zip and Fridrik Skulason's /pc/virus/fp-115a.zip
available to check for infections. There are, however, two dilemmas
in checking archived packages on a routine basis. (Since the format
garbo.uwasa.fi archives mostly uses is .zip let's speak of zipped
files). The first problem is that there are so many executable
compressors in use currently (such as lzexe, pklite, diet, tinyprog,
etc). This means that unless the virus checking programs can observe
all these variations, a virus can be hiding in an execompressed
form. Therefore it is advisable to expand the executables for the
check. A second problem is that .zip files occasionally contain
embedded .zip files (eg PC-Magazine's collections often do). These
embedded .zip files must be unzipped for a closer examination.
   The earlier versions of the tsbat collection included a batch
called scanzip.bat. I have completely rewritten this batch to take
care of the two eventualities discussed above. I have renamed the
rewritten batch scanz.bat. Note that before using this new batch,
you have to go through scanz.bat and edit all the directory path
references to correspond to your own configuration. This is, of
course, an inconvenience, but it is the best way of guaranteeing
that a batch complicated as this stays reasonably efficient.

TSBAT25.ARC     Batch file collection, T.Salmi
Filename        Comment                             Date      Time
--------        --------------------------------    ----      ----
ADDPATH.BAT     Append directories to the path    10-21-90  17:44:06
APATH-OM.BAT    Otto Makela's version of addpath  01-13-90  12:32:30
ARC2ZIP.BAT     Single .arc to .zip with comment  10-21-90  11:11:02
ASK.EXE         Ask questions in a batch file     12-29-90  13:50:10
BLANK.BAT       Poor man's screen saver           03-28-90  10:42:54
BLK.BAT         Poor man's screen saver & popup   10-21-90  19:51:38
C.BAT           Lazy changing of directory        03-14-90  15:39:46
COLOR.BAT       Set screen color attributes       10-21-90  20:00:02
D.BAT           Directory with sort & wildsearch  10-21-90  20:09:32
DAILY.BAT       Run a program only once a day     10-21-90  20:11:52
DELDIR.BAT      Remove directory and its files    01-22-91  19:34:20
DELPATH.BAT     Delete a directory from the path  10-21-90  18:34:30
FU.BAT          Poor man's function evaluator     03-12-91  08:00:32
LASTBOOT.BAT    Show date + time of previos boot  10-21-90  20:22:12
LINK1.BAT       How to link batch files together  10-31-89  14:26:14
LINK2.BAT       Batch link demo's second file     11-15-89  12:23:24
LOCATE.BAT      Wildcard file find                01-14-90  11:22:56
LOGRUN.BAT      Log program usage & time and run  04-15-90  22:46:54
M.BAT           Give multiple MsDos commands      03-04-90  11:08:08
MAKESURE.BAT    Simple command.com virus warning  01-14-90  11:54:56
MENU.BAT        Run programs from a menu          12-29-90  16:55:30
POPDIRE.BAT     Restore (pop) saved directory     01-14-90  11:57:14
POPPATH.BAT     Restore the saved path            01-14-90  11:59:44
PUSHDIRE.BAT    Non-resident push directory       01-14-90  11:58:18
PUSHPATH.BAT    Save the current path             01-14-90  11:58:44
RUN.BAT         Testing for viruses               01-14-90  12:11:24
SAFEDEL.BAT     Safe delete of files              12-28-90  18:53:46
SAFEDEL1.BAT    Auxiliary batch to safedel.bat    12-28-90  19:01:28
SCANZ.BAT       Scan for viruses (incl. execomp)  05-12-91  07:24:16
SCOPY.BAT       Copy a file with a single device  06-28-90  12:09:08
SETCOM.BAT      Secure your command.com           10-28-89  19:41:08
SETPRN.BAT      Set an Epson compatible printer   03-13-91  07:39:10
SETPUSHD.EXE    Program for nonresident pushdire  01-13-90  17:33:42
SETVAR.BAT      Sets a variable for delpath.bat   01-15-90  22:19:38
SHOW.BAT        Wildcard multifile type command   10-21-90  20:40:20
SHOW1.BAT       Auxiliary batch for show.bat      06-01-90  06:07:08
TSBAT.INF       Document                          05-12-91  08:39:28
TSBAT.NWS       News concerning this package      05-12-91  07:36:34
TSPROG.INF      List of PD programs from T.Salmi  03-30-91  10:23:20
UNPACK.BAT      Unpack-test-view any archivetype  12-28-90  19:30:56
VAASA.INF       Info: Finland, Vaasa, U of Vaasa  02-02-90  11:52:54
VIRUS.BAT       Another batch-based virus test    10-21-90  20:47:04
WHERE.BAT       Generic searchstring fname find   10-21-90  20:48:26
ZIPDATE.BAT     Equate .zip date to latest file   01-10-90  22:49:00
ZOO2ZIPH.BAT    Single .zoo to .zip on harddisk   03-27-91  22:06:16
----            ------             ------  -----
0045            104534              59924   43%

...................................................................
Prof. Timo Salmi        
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun