home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / COMPRESS / CHKAV20.ZIP / CHKAV.DOC < prev    next >
Encoding:
Text File  |  1991-05-03  |  4.6 KB  |  87 lines

  1.                                    ChkAV 2.0
  2.                        CopyRight 1991 by Dave Navarro, Jr.
  3.                           Courtesy of The Bard's Lair
  4.  
  5.  
  6.      A big problem nowadays for sysops is the ever increasing problem of
  7.      BBS's like Rusty & Edies that reZIP all their files using their own
  8.      -AV, often overwriting a legitimate -AV created by the original
  9.      author, solely for the purpose of advertising their BBS number to
  10.      attract more callers.  I'll agree that any BBS can always use more
  11.      callers, but that's the purpose behind ZIP comments, do your
  12.      advertising there, and if that file is uploaded to another BBS and
  13.      your ZIP comment get's overwritten, well at least the person who
  14.      uploaded that file saw your ad.
  15.  
  16.      Where am I going with all this?  Well, after reading a long discussion
  17.      in the RIME/MetroLink conference concerning the subject, I came across
  18.      a few messages between a few individuals who were working on a program
  19.      that would check for the AV in a ZIP and return an error level if it
  20.      found one.  Well, I jumped on the modem, called up the BBS that had
  21.      the program and downloaded it, and it worked really nicely.  However,
  22.      there were a few problems.
  23.  
  24.      The program I downloaded would execute PKUNZIP using the -T option to
  25.      test the zip and redirect that output to a text file.  The ChkAV program
  26.      would then search that text file for the presence of -AV and if found,
  27.      would return an error level.  Well it works, but if you happen to run
  28.      accross a ZIP file with a file called -AV (a valid DOS filename) it
  29.      thinks that the file has an -AV in it.  Also, if you have a ZIP file
  30.      with a LOT of files in it, the procedure slows your filechecking
  31.      considerably.
  32.  
  33.      Being a programmer myself, and having just written a library to
  34.      access information inside of ZIP files, I thought I'd see if I could
  35.      find a more direct method.  Unfortunately, while Phil Katz was nice
  36.      enough to thoroughly describe the information fields within a ZIP
  37.      header, he gave no information whatsoever about -AV's or testing
  38.      for them.  But after a couple of hours of pouring over his notes and
  39.      some notes I made, I found out a fool-proof method for determining
  40.      is a ZIP has an -AV in it.  Unfortunately, I cannot determine who's
  41.      -AV it is, but you can't have everything.
  42.  
  43.      To use ChkAv, just type ChkAv FILENAME.EXT, and ChkAv will return
  44.      ERRORLEVEL=1 if the file is not a valid ZIP, ERRORLEVEL=2 if the
  45.      file has an -AV, or no ERRORLEVEL if the file does not exist or
  46.      does not contain an -AV.  Note:  ChkAv also works with self-
  47.      extracting ZIP files as well.
  48.  
  49.    * Version 2.0 now does all printing through DOS so that output may
  50.      be redirected.
  51.  
  52.      --------------------------------------------------------------------
  53.                                  Whose AV 1.0
  54.                      CopyRight 1991 by Dave Navarro, Jr.
  55.  
  56.      Well just after I wrote ChkAv, I started getting messages asking if
  57.      I could make it so that ChkAv could figure WHOSE AV it was.  While
  58.      I'm not a half bad programmer, I am not good enough to figure out the
  59.      encryption technique that PK used for AV's.  The only way to accomplish
  60.      it is to unzip the file and search for the name.  So, I wrote Whose AV
  61.      which will search the PATH for WHOSAV.CFG which contains a list of the
  62.      'names' you want to search for, then calls PKUNZIP to unzip the file
  63.      with the -T function and redirect it to a file called WHOSAV.LST which
  64.      is then parsed for the 'names' contained in WHOSAV.CFG.  If one is
  65.      found an errorlevel is returned and the 'name' found is printed to
  66.      the screen.  All output is redirectable so you could redirect the
  67.      name to a text file for a message or something.  After WHOSAV is
  68.      finished it erases WHOSAV.LST.
  69.  
  70.      I hope that together these utilities help sysops to help combat the
  71.      problem of BBS's that abuse the AV privelage.
  72.  
  73.  
  74. Disclaimer:
  75.  
  76.     ChkAv and WhosAv were tested on a 486 machine with everything on it,
  77.     and a generic XT clone with 640k and monochrome and worked without any
  78.     problems.  However, if ChkAv does not work on your system, or causes
  79.     any problems I cannot be held responsible.  Use this file at your own
  80.     risk.
  81.  
  82.     If you do have any problems, or suggestions, please call The Bard's
  83.     Lair at 718-381-3651 and leave me a note.  I currently run ChkAv and
  84.     WhosAv in my PROUT1.BAT file in ProDoor and it works without a hitch.
  85.  
  86.  
  87.