home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 005 / anti126.zip / ANTIAD.DOC < prev    next >
Text File  |  1994-12-20  |  28KB  |  631 lines

  1.  
  2.      ┌──────────┬───────────┐
  3.      │   BBS    ┼           │
  4.      │   ╓───╖  │ ╓         │                   AntiAd
  5.      │   ║   ║  ┼ ║         │
  6.      │   ╟───╢ ╓┼─║ ╓──     │                Version 1.26
  7.      ├┼──╫─┼─╫─╫■─╫─╨┼─╥───┼┤
  8.      │   ╙   ╙ ╙┼─╜ ───╜    │    (c) Copyright 1992-1994 - Stacy Smith
  9.      │          ┼           │
  10.      └──────────┴───────────┘
  11.  
  12.                                   Courtesy of:
  13.  
  14.                          The Bloom Beacon-Picayune BBS
  15.           Node 1: *** DOWN *** (USRobotics Courier Dual Standard V.34)
  16.                                     FidoNet
  17.                                      ILink
  18.                                     Intelec
  19.  
  20.                                   Stacy Smith
  21.  
  22.  
  23. ┌────────────────────┐
  24. │  1. Introduction:  │
  25. └────────────────────┘
  26.  
  27. AntiAd was developed due to recent developments in BBS ad files and their
  28. associated headaches.  The asinine sysops who insist on putting this excess
  29. baggage into archives at the expense of other sysops' disk space are getting
  30. more creative and annoying.
  31.  
  32. By slightly modifying their BBS ad file, perhaps adding spaces to the end of
  33. the file or stamping the time and date into the BBS ad, they were previously
  34. undetectable (until the BBS ad was added to a database). Not so with AntiAd.
  35.  
  36.  
  37. ┌──────────────────────────┐
  38. │  2. Features of AntiAd:  │
  39. └──────────────────────────┘
  40.  
  41.       ∙ Identifies BBS ads using conventional database algorithms for files
  42.         that are static (such as .EXE files created by TheDraw).  This method
  43.         of detection is extremely fast and 100% accurate.
  44.       ∙ Includes a BBS ads maintenance function so sysops can update their BBS
  45.         ads CRC database in real time.
  46.       ∙ Identifies tiny BBS ads by filename, allowing detection of 0-byte BBS
  47.         ads.
  48.       ∙ Identifies BBS ads using a new keyword algorithm for files that are
  49.         constantly changing.  This method of detection is slower and can be
  50.         less accurate depending upon how well the keywords are selected by the
  51.         sysop.
  52.       ∙ Up to 100 keyword sets of 5 to 10 keywords each can be configured by
  53.         the user. (These are arbitrary limits and can be raised, if necessary;
  54.         they seemed like good starting points).
  55.       ∙ AntiAd can execute another program as a child process, allowing upload
  56.         processors that only execute 1 file checker (virus checker) to use
  57.         AntiAd *and* another file checker.
  58.       ∙ Runs as a file tester in any upload processing utility, such as ULP,
  59.         Ziplab, ExzTest, etc.
  60.       ∙ Detected BBS ads are removed from the files on disk before being
  61.         repacked by the upload processing utility. They may be stored in a
  62.         subdirectory for subsequent review by the user (user-selectable).
  63.       ∙ AntiAd can generate list files to be passed to an archiver, allowing
  64.         removal of BBS ad files without unpacking the archive. This requires
  65.         proper handling by the upload processing utility or batch file.
  66.       ∙ User-selectable process logging to a disk file.
  67.       ∙ Written completely in C for optimal speed, using Microsoft C/C++ 7.0.
  68.       ∙ Lifetime registration; pay ONCE and your registration number will work
  69.         on all future versions!
  70.  
  71.  
  72. ┌────────────────────────────────────────────────────────┐
  73. │  3. Files Included in the AntiAd Distribution Archive  │
  74. └────────────────────────────────────────────────────────┘
  75.  
  76.         !NOTICE!        Information regarding support and registration.
  77.         ANTIAD.EXE      BBS ad detection and removal program.
  78.         ANTIAD.DB       BBS ads database file.
  79.         NAMES.LST       BBS ads name list file.
  80.         ANTIAD.DOC      This file.
  81.         ANTIAD.CFG      Sample configuration file.
  82.         CHK_ADS.BAT     Main batch file for mass archive BBS ad removal.
  83.         CHK_ADS2.BAT    Secondary batch file for mass archive BBS ad removal.
  84.         SUPPORT.DOC     List of authorized support sites for my shareware.
  85.         HISTORY.DOC     AntiAd revision history in reverse order.
  86.         REGISTER.FRM    Registration form for AntiAd.
  87.         FILE_ID.DIZ     Internal description file.
  88.  
  89. When you unzip the distribution archive, you should see my PKZIP authenticity
  90. verification stamp, and a '-AV' after every file in the archive:
  91.  
  92.         # SSU301    The Bloom Beacon-Picayune BBS
  93.  
  94. If there are any files missing or added, or the -AV stamp is missing, the
  95. archive has been tampered with. It would be advisable to call my BBS (listed at
  96. the top of this document) for the latest version of AntiAd.
  97.  
  98.  
  99. ┌───────────────────────────┐
  100. │  4. Program Requirements  │
  101. └───────────────────────────┘
  102.  
  103. To the best of my knowledge, this program will run on most any machine capable
  104. of running a BBS package. My BBS setup is PCBoard 14.5a/10 running under
  105. DESQview on a LANtastic network, but other sysops that I have been in contact
  106. with have successfully implemented AntiAd on a wide variety of hardware.
  107.  
  108. AntiAd requires DOS 3.x or later, as it uses DOS SHARE-compatible file reads
  109. and writes.  AntiAd's memory requirements are very small (about 80K or so, plus
  110. the CRC database and keyword memory allocated).  A hard disk is required (and
  111. not very many BBSes don't have them) so it goes without saying (although I did
  112. anyway; someone is bound to ask... <g>).
  113.  
  114.  
  115. ┌───────────────────┐
  116. │  5. Registration  │
  117. └───────────────────┘
  118.  
  119. AntiAd is not free; nor is AntiAd is crippled to force registration. AntiAd is
  120. fully functional, and will always remain so. The only variation with the
  121. registered copies is no time delay and beg message.
  122.  
  123. Why register? Besides a clean conscience, you will get a registration code that
  124. will work for all future versions of AntiAd, and will remove the delay and
  125. message at the end of execution.
  126.  
  127. The registration fee for your unique code is $10 for non-commercial BBSes. The
  128. registration fee for commercial BBSes, defined if you run your BBS in the
  129. course of a commercial business or for profit, is $20. Other variations are
  130. available; refer to the file REGISTER.FRM for all registration options. Please
  131. print the file REGISTER.FRM and fill it out. You can print out the form by
  132. issuing the following command from the DOS prompt:
  133.  
  134.         TYPE REGISTER.FRM > PRN
  135.  
  136.  
  137. ┌───────────────────────────────────────┐
  138. │  6. License, Warranty and Disclaimer  │
  139. └───────────────────────────────────────┘
  140.  
  141. I'll keep this part short and sweet, and dispense with the legal-ese:
  142.  
  143.         License: You are allowed to use AntiAd for 30 days, after which you
  144.            must either register AntiAd or stop using it completely. AntiAd
  145.            registration is a license for your use of AntiAd; I retain
  146.            ownership of the software. A single registration applies to a single
  147.            BBS system, regardless of the number of computers used in the
  148.            system. If you run two or more distinct BBS systems on the same
  149.            computer (with different names), you require two or more AntiAd
  150.            registrations. Refer to the registration form for the currect
  151.            pricing structure.
  152.  
  153.         Warranty: There isn't one. The only thing I'll guarantee is that
  154.            AntiAd will take up disk space, and will disappear when deleted.
  155.  
  156.         Disclaimer: I'm not responsible for anything bad that happens. AntiAd
  157.            works here, but I cannot be held responsible for it not working on
  158.            your computer or doing any damage to hardware or software.
  159.  
  160. If these aren't agreeable with you, then the best thing to do is delete AntiAd
  161. right now. I'll do my best to help any user (registered or not) that wants to
  162. use AntiAd, and I'll act on bug reports quickly, but I simply cannot and will
  163. not be responsible for anything bad, like lost data, disk crashes, or whatever
  164. else you can think of.
  165.  
  166.  
  167. ┌───────────────────┐
  168. │  7. Installation  │
  169. └───────────────────┘
  170.  
  171. GENERAL INSTALLATION:
  172. ─────────────────────
  173. Make a subdirectory on your hard drive. For the purposes of this document,
  174. we'll call it "C:\ANTIAD". Unarchive the AntiAd distribution archive into this
  175. subdirectory. You've more than likely already made it this far, if you're
  176. reading this file. <grin>
  177.  
  178. The AntiAd system opens a few files at once for various reasons. I would
  179. recommend that you have a minimum of FILES=30 per node in your system
  180. CONFIG.SYS file for a single-node system, since AntiAd is run in conjunction
  181. with your BBS and upload processing software.
  182.  
  183. If you are running under a network or a multitasking operating system, you
  184. should already have DOS's SHARE.EXE loaded. You must have SHARE loaded in order
  185. to take advantage of the file sharing and locking methods used by the AntiAd
  186. programs to prevent data loss. (If you are running a single-node system without
  187. a multitasker, SHARE is not needed).
  188.  
  189. Edit the configuration file to suit your needs. Proper configuration will
  190. require you to refer to this section, the previous section and the section
  191. titled "Configuration", which has an in-depth explanation of each configuration
  192. parameter and its function. It would probably be wise to fire up your printer
  193. for this document.
  194.  
  195. Note that for the AntiAd program, you can obtain a limited program syntax
  196. screen simply by executing the program with the -? (help) parameter.
  197.  
  198. INSTALLATION INTO YOUR UPLOAD PROCESSOR:
  199. ────────────────────────────────────────
  200. AntiAd is designed to operate on a subdirectory of files that have already been
  201. extracted by the upload processor.  The best application for AntiAd is to be
  202. executed as a file test utility, similar to a virus-scanning program, since at
  203. that point in time the files are already extracted from the archive being
  204. processed.  Depending upon how your upload processor operates, the command
  205. lines can be different.
  206.  
  207.     * NOTE: If your upload processor is limited to 1 file checker, add AntiAd
  208.             into your processor's configuration, and then configure AntiAd to
  209.             execute your file/virus checker using the CHK_CMD_LINE parameter.
  210.  
  211. If your upload processor executes the file testers from the directory where the
  212. files are located (this is how the ULP programs operates), the command line is
  213. simply:
  214.  
  215.     D:\ANTIAD\ANTIAD.EXE -Cd:\antiad\antiad.cfg
  216.  
  217. If your upload processor DOES NOT execute the file testers from the directory
  218. where the files are located, and passes a filespec to the program (this is how
  219. ExzTest works), the command line is:
  220.  
  221.     D:\ANTIAD\ANTIAD.EXE -Cd:\antiad\antiad.cfg -Pd:\path\*.*
  222.  
  223. The '-P' parameter defines to AntiAd where to find the files. Note that it will
  224. accept either a path (e.g. 'C:\TEMP\') or a filespec (e.g. 'C:\TEMP\*.*'); in
  225. other words, the "*.*" is superfluous.  Regardless of the filespec, AntiAd will
  226. check all files in the path passed to it.  This is to allow the highest level
  227. of compatibility with all upload processing utilities.
  228.  
  229. If you find yourself crunched for command-line space in your upload processing
  230. utility, the '-C' may be omitted in favor of using an environment variable
  231. (named "ANTIAD_CFG") to tell AntiAd where to find it's configuration file. To
  232. do this, add the following line to your AUTOEXEC.BAT file:
  233.  
  234.     set ANTIAD_CFG=c:\antiad\antiad.cfg
  235.  
  236. while changing the filespec as necessary to match the name and location of your
  237. AntiAd configuration file.
  238.  
  239. If your upload processing routine is capable of executing a command after each
  240. archive has been processed, you can use the list-file approach to removing BBS
  241. ads from the archive. This will guarantee that the ad files are removed, even
  242. in -AV protected archives. If you call AntiAd with the following command-line:
  243.  
  244.     ANTIAD.EXE -Cd:\antiad\antiad.cfg -Pd:\path\*.* -Ld:\antiad\ad.lst
  245.  
  246. You can then execute the following archiver statements to remove the ads from
  247. the compressed archive:
  248.  
  249.     ARJ d d:\path\archive.arj !d:\antiad\ad.lst
  250.     LHA d d:\path\archive.arj @d:\antiad\ad.lst
  251.     PAK d d:\path\archive.arj @d:\antiad\ad.lst
  252.     PKPAK -d d:\path\archive.zip @d:\antiad\ad.lst
  253.     PKZIP -d d:\path\archive.zip @d:\antiad\ad.lst
  254.  
  255. Some notes on the list-file approach: if AntiAd finds no BBS ads, it will NOT
  256. create a BBS ads list file and will exit with an errorlevel you define in
  257. NO_AD_ERRLEV in the configuration file. If it finds one or more BBS ads, it
  258. WILL create the file and exit with the errorlevel defined as AD_ERRLEV. (AntiAd
  259. will not run in ULP using list-file mode; use the standard mode of operation
  260. for AntiAd with ULP.)
  261.  
  262.  
  263. ┌────────────────────┐
  264. │  8. Configuration  │
  265. └────────────────────┘
  266.  
  267. The sample configuration file included in the distribution archive is heavily
  268. commented, but some additional information is provided below:
  269.  
  270. REG_CODE
  271.     The registration code EXACTLY as provided to you on your registration
  272.     letter. If this is an unregistered version, comment out this line. Note
  273.     that this is case-sensitive, as the serial number, BBS name and sysop name
  274.     are all encrypted into this code.
  275.  
  276. BBS_NAME
  277.     The BBS name EXACTLY as provided to you on your registration letter. If
  278.     this is an unregistered version, comment out this lines. Note that this is
  279.     case-sensitive!
  280.  
  281. SYSOP_NAME
  282.     The sysop name EXACTLY as provided to you on your registration letter. If
  283.     this is an unregistered version, comment out this line. You get the picture
  284.     by now...
  285.  
  286. LOG_FILE
  287.     All of the AntiAd programs will write process and error information to a
  288.     log file, if desired. This is the path/filename of the log file for AntiAd
  289.     to record its activities. Comment out if you don't want any disk logging.
  290.  
  291. STORAGE_DIR
  292.     If you want AntiAd to use a specific directory for storage of BBS ads
  293.     detected and removed from archives, enter the full pathname (including the
  294.     trailing backslash). If you do not want the file saved for later
  295.     inspection, comment it out. I would not recommend using a RAM disk, since
  296.     the files would be lost when the system is rebooted or powered down. Note
  297.     that this will default CRC_DISP and KEYWORD_DISP to DELETE.
  298.  
  299. NO_AD_ERRLEV
  300.     The errorlevel that AntiAd is to return to DOS if no BBS ads were found by
  301.     AntiAd while processing the subdirectory specified. If this parameter or
  302.     the AD_ERRLEV parameter is commented out, then it will default to 0, since
  303.     most upload processors assume non-zero errorlevels to be program execution
  304.     errors, not information. This value must be between 0 and 255, inclusive.
  305.  
  306. AD_ERRLEV
  307.     The errorlevel that AntiAd is to return to DOS if one or more BBS ads were
  308.     found by AntiAd.
  309.  
  310. DB_DISP
  311.     This parameter defines how AntiAd dispositions files detected as BBS ads
  312.     via the CRC-32 signature method. If you want AntiAd to delete the ad file,
  313.     enter DELETE or comment the line out; if you want AntiAd to store the ad
  314.     file in the storage directory (and delete it from the archive being
  315.     processed), enter STORE. Note that for STORE to operate correctly, the
  316.     STORAGE_DIR parameter MUST be defined.
  317.  
  318. NAME_DISP
  319.     This parameter defines how AntiAd dispositions files detected as BBS ads
  320.     via the filename check. If you want AntiAd to delete the ad file, enter
  321.     DELETE; if you want AntiAd to store the ad file, enter STORE or comment the
  322.     line out.
  323.  
  324. KEYWORD_DISP
  325.     This parameter defines how AntiAd dispositions files detected as BBS ads
  326.     via the keyword algorithm. If you want AntiAd to delete the ad file, enter
  327.     enter DELETE; if you want AntiAd to store the file in the storage directory
  328.     (and delete it from the archive being processed), enter STORE or comment
  329.     the line out.
  330.  
  331. ADS_DB
  332.     The directory path and name for the BBS ads database. This database can be
  333.     updated by the sysop by using the '-F' parameter of AntiAd (see section 10
  334.     of this document), freeing the sysop from being reliant on me to maintain
  335.     the ads database. If you find a large number of new BBS ad files, please
  336.     upload them to my board for inclusion into my master ads database
  337.     distributed with AntiAd.  This database format is compatible with my
  338.     UpLoadProcessor (ULP) utility's BBS ads database.
  339.  
  340. NAME_LIST
  341.     The directory path and name for the BBS ads name list file. This is a ASCII
  342.     text file with one 12 character filename per line. Note that no wildcards
  343.     are permitted; this is by design to prevent accidental removal of files by
  344.     specifying something like '*.AD'.  Note that only tiny file (less than a
  345.     hard-coded number of bytes) will be checked by filename!
  346.  
  347. KEYWORDS
  348.     The keyword sets (separated by commas) to search potential BBS ad files
  349.     for. Note that these keywords are case-sensitive! If a potential ad file
  350.     contains ALL of the keywords or phrases, it will be dispositioned as a BBS
  351.     ad. I suggest using the BBS name, area code and exchange, modem brand and
  352.     other key terms in their ads that seem static. Between 5 and 10 keywords
  353.     are allowed per line; one line comprises a keyword set. Furthermore, a
  354.     keyword set line may not be more than 128 characters long. A maximum of 100
  355.     keyword sets may be defined. Note that BBS ad scanning time increases with
  356.     the number of keywords and keyword sets.
  357.  
  358. CHK_CMD_LINE
  359.     AntiAd is capable of executing another program before returning to the
  360.     upload processor. If this is desired enter the command line to be executed
  361.     by AntiAd, otherwise, comment the line out. Place the variable @FILE@
  362.     where the filespec is to be placed on the command line.
  363.     * NOTE: If this option is used, AntiAd will return the errorlevel returned
  364.             by this program to the upload processor, and will not use the
  365.             NO_AD_ERRLEV or AD_ERRLEV settings. This is done for optimum
  366.             compatibility with all upload processors.
  367.  
  368.  
  369. ┌──────────────────────────────┐
  370. │  9. Application Information  │
  371. └──────────────────────────────┘
  372.  
  373. ULP:
  374. ────
  375. The correct configuration setup for AntiAd within UpLoadProcessor is to be used
  376. as a file checker is as follows:
  377.  
  378.     FILE_CHECKER 2                      (or whatever the next number is...)
  379.     FILE_CHK_CMD C:\ANTIAD\ANTIAD -Cc:\antiad\antiad.cfg
  380.     FILE_CHK_ERR 0
  381.  
  382. In addition, ULP users should disable the integrated BBS ad checking (ADS_CHK
  383. set to NO), since AntiAd is more capable than ULP in detecting and removing BBS
  384. ads. You may also remove the '-C' parameter if you choose to use the
  385. environment variable approach.
  386.  
  387. EXZTEST:
  388. ────────
  389. The following is an excerpt from a message to me from Mike Cocke, outlining how
  390. he has installed AntiAd:
  391.  
  392.     ======================================================================
  393.     Packet: SALTAIR
  394.       Date: 12-10-92 (16:58)             Number: 7410
  395.       From: MIKE COCKE                   Refer#: 7192
  396.         To: STACY SMITH                   Recvd: NO
  397.       Subj: EXZTEST AND ANTIAD             Conf: (3) Utility
  398.     ----------------------------------------------------------------------
  399.     SS> I have a question regarding ExzTest and ANTI-AD that you may be
  400.     SS> able to answer. Does ExzTest repack the archive after processing?
  401.     SS> Is it selective? Do I need to trigger it in some fashion?
  402.  
  403.     It repacks the archives if that config option has been set.
  404.  
  405.     SS> I have a user having a little difficulty with ExzTest and AntiAd,
  406.     SS> and I'm trying to help him. Got a copy of 2.22, and read the docs,
  407.     SS> but that part wasn't clear.
  408.  
  409.     2.22 has some problems, including a system hanger.  Stop by the Hacker
  410.     Central and grab XZT8MC.ZIP
  411.  
  412.     SS> Would you be willing to share how you implemented AntiAd into
  413.     SS> ExzTest? I'd like to document it in the AntiAd docs...
  414.  
  415.     Sure - in a nutshell, set 'rezip secondary archives' to on, and install
  416.     AntiAd as a virus tester.  The key is the first point.  If this isn't
  417.     set, removals won't matter.
  418.     ======================================================================
  419.  
  420. If you have any further questions, I would suggest contacting Mike Cocke and
  421. getting the most recent version of ExzTest from his board or Salt Air.
  422.  
  423. ZIPLAB:
  424. ───────
  425. Apparently, ZipLab will not support the operation of more than one file checker
  426. automatically. Or at least, how to add more than one is not readily apparent in
  427. the documentation. Therefore, configure AntiAd into ZipLab and your virus
  428. scanner into AntiAd's CHK_CMD_LINE parameter. In this way, ZipLab will call
  429. AntiAd, AntiAd will call your virus checker, and then return to ZipLab.
  430.  
  431. GENERIC BATCH FILE:
  432. ───────────────────
  433. The following generic batch file (modeled after PCBTEST.BAT) will autodetect
  434. the compression format of the archive using ARCID (again, a utility written by
  435. me), unpack the archive, check it for ads, remove any ads found via the
  436. list-file method, scan the files for viruses, and then clean up. It can easily
  437. be expanded and/or modified to suit your needs:
  438.  
  439.     @Echo off
  440.     cls
  441.  
  442.     if exist pcbpass.txt del pcbpass.txt
  443.     if exist pcbfail.txt del pcbfail.txt
  444.  
  445.     d:\arcid\arcid %1 arj lzh zip
  446.     if errorlevel 98 goto UNKNOWN
  447.     if errorlevel 5  goto ZIP_TESTING
  448.     if errorlevel 4  goto PAK_TESTING
  449.     if errorlevel 3  goto LZH_TESTING
  450.     if errorlevel 2  goto ARJ_TESTING
  451.     if errorlevel 1  goto ARC_TESTING
  452.  
  453.     Echo ERROR: ARCID critical error...please notify sysop! > pcbfail.txt
  454.     exit
  455.  
  456.     :UNKNOWN
  457.     Echo ERROR: Unknown file format! > pcbfail.txt
  458.     exit
  459.  
  460.     :ARC_TESTING
  461.     md testing
  462.     cd testing
  463.     pkunpak -r %1
  464.     if not errorlevel 0 goto UNPACK_ERROR
  465.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  466.     if exist d:\antiad\ad.lst pkunpak -d %1 @d:\antiad\ad.lst
  467.     goto SCAN
  468.  
  469.     :ARJ_TESTING
  470.     md testing
  471.     cd testing
  472.     arj e -y %1
  473.     if not errorlevel 0 goto UNPACK_ERROR
  474.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  475.     if exist d:\antiad\ad.lst arj d -y %1 !d:\antiad\ad.lst
  476.     goto SCAN
  477.  
  478.     :LZH_TESTING
  479.     md testing
  480.     cd testing
  481.     lha e /m1 %1
  482.     if not errorlevel 0 goto UNPACK_ERROR
  483.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  484.     if exist d:\antiad\ad.lst lha d /m1 %1 @d:\antiad\ad.lst
  485.     goto SCAN
  486.  
  487.     :PAK_TESTING
  488.     md testing
  489.     cd testing
  490.     pak e /wa %1
  491.     if not errorlevel 0 goto UNPACK_ERROR
  492.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  493.     if exist d:\antiad\ad.lst pak d %1 @d:\antiad\ad.lst
  494.     goto SCAN
  495.  
  496.     :ZIP_TESTING
  497.     md testing
  498.     cd testing
  499.     pkunzip -o %1
  500.     if not errorlevel 0 goto UNPACK_ERROR
  501.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  502.     if exist d:\antiad\ad.lst pkzip -d %1 @d:\antiad\ad.lst
  503.     goto SCAN
  504.  
  505.     :SCAN
  506.     scan /a /nomem /nopause *.*
  507.     if not errorlevel 0 goto VIRUS_ERROR
  508.  
  509.     cd ..
  510.     echo y|del testing\*.*
  511.     rd testing
  512.     if exist d:\antiad\ad.lst del d:\antiad\ad.lst
  513.     Echo File passed all tests... > pcbpass.txt
  514.     exit
  515.  
  516.     :UNPACK_ERROR
  517.     echo y|del testing\*.*
  518.     rd testing
  519.     if exist d:\antiad\ad.lst del d:\antiad\ad.lst
  520.     Echo ERROR: File failed integrity test... > pcbfail.txt
  521.     exit
  522.  
  523.     :VIRUS_ERROR
  524.     echo y|del testing\*.*
  525.     rd testing
  526.     if exist d:\antiad\ad.lst del d:\antiad\ad.lst
  527.     Echo ERROR: File failed virus test... > pcbfail.txt
  528.     exit
  529.  
  530.  
  531. ┌────────────────────────┐
  532. │  10. Manual Operation  │
  533. └────────────────────────┘
  534.  
  535. In order for sysops to be able to 'keep up' with new ads produced by the weenie
  536. sysops who insert the @!&*#%$ things, AntiAd is capable of scanning a BBS ad
  537. file and updating the BBS ads with it's information. Don't worry about
  538. duplication, as part of the process is to purge duplicate BBS ad info. The
  539. command-line syntax for this functions is:
  540.  
  541.     ANTIAD -Cantiad.cfg -Fbbs.ad
  542.  
  543. where 'antiad.cfg' is the full path and filename for the AntiAd configuration
  544. file, and 'bbs.ad' is the path and filename for the BBS ad file to be added to
  545. the BBS ads database. I would suggest only adding executable or ANSI BBS ads to
  546. the database, since they are not easily changed by a sysop before insertion
  547. into an archive.
  548.  
  549. If you have a subdirectory full of BBS ads to add to the database, the
  550. following batch file will automate the procedure:
  551.  
  552.     for %%f in (c:\temp\*.*) do ANTIAD -Cc:\antiad\antiad.cfg -F%%f
  553.  
  554. I would greatly appreciate your uploading of any new BBS ad files that you may
  555. collect over time to my BBS so I can update the master listing that I include
  556. with the AntiAd distribution archive. Please refer to the top of this document
  557. for my BBS number.
  558.  
  559. The latest version of my BBS ads database is included in the distribution
  560. archive. In order to add whatever new BBS ads information that may be
  561. contained, you can merge it with your current BBS database:
  562.  
  563.     ANTIAD -Cantiad.cfg -Mother.db
  564.  
  565. where 'antiad.cfg' is the full path and filename for the AntiAd configuration
  566. file, and 'other.db' is the path and filename for the other BBS ads datatbase
  567. to be merged with the master ads database.
  568.  
  569.  
  570. ┌───────────────┐
  571. │  11. Support  │
  572. └───────────────┘
  573.  
  574. If you require support for AntiAd, I can be contacted by any of the following
  575. means:
  576.  
  577.     ∙ Fidonet netmail (node:  1:151/106)
  578.     ∙ Internet private mail to "stacy.smith@cencore.com"
  579.     ∙ Fidonet, ILink and Intelec PCBoard and Sysops conferences
  580.     ∙ My Support conference (#2 on my BBS) which is linked to the Salt Air
  581.       (PCBoard home system) ULP Support conference, as well as the Intelec
  582.       and SmartNet networks' ULP Support conferences
  583.     ∙ The ILink ULP Support conference (separate and distinct, #3 on my BBS).
  584.     ∙ The RIME ULP Support conference (separate and distinct)
  585.  
  586.  
  587. ┌────────────────────────────┐
  588. │  12. The Future of AntiAd  │
  589. └────────────────────────────┘
  590.  
  591. AntiAd will be supported as long as I'm in the BBSing business (which will be
  592. quite a while...once it's in your blood, you can never shake it <g>). The
  593. AntiAd system will be rapidly expanding it's features so it will be your first
  594. choice in BBS ad eradicator. Some current plans:
  595.  
  596.       ∙ Develop a series of keyword sets to allow detection of most, if not
  597.         all, BBS ads.
  598.       ∙ None...any ideas from you guys? Thanks! <g>
  599.  
  600. If you have any other suggestions, contact me by U.S. snail-mail or on my BBS
  601. at the number at the top of this document.
  602.  
  603. Thanks for giving AntiAd a try!
  604.  
  605.  
  606. ┌────────────────────────────────┐
  607. │  Appendix A:  DOS Errorlevels  │
  608. └────────────────────────────────┘
  609.  
  610. The following is a list of the errorlevels than can be returned by AntiAd:
  611.  
  612.         Variable    Successful execution
  613.         Variable    Successful execution, BBS ad list file created
  614.         Variable    Successful execution, file checker errorlevel returned
  615.         99          Help screen (executing a program with no or an
  616.                         insufficient number of arguments)
  617.         100         Could not close all open files
  618.         101         Unknown command line parameter
  619.         102         Config file not found
  620.         103         Too many keywords in a keyword set
  621.         104         Too few keywords in a keyword set
  622.         105         Too many keyword sets defined
  623.         106         Keyword set line too long
  624.         110         Unable to allocate heap memory
  625.         111         Unable to open or lock disk logging file
  626.         114         Unable to open BBS ads database file
  627.         115         Invalid filename provided by user on command-line
  628.         116         Invalid path provided by user on command-line
  629.         117         Unable to open BBS ads name list file
  630.         200         Undefined error (internal to AntiAd program)
  631.