home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / ANTI091B.ZIP / ANTI-AD.DOC < prev    next >
Encoding:
Text File  |  1992-10-02  |  17.7 KB  |  407 lines

  1.  
  2.      ┌──────────┬───────────┐
  3.      │   BBS    ┼           │
  4.      │   ╓───╖  │ ╓         │                   ANTI-AD
  5.      │   ║   ║  ┼ ║         │
  6.      │   ╟───╢ ╓┼─║ ╓──     │                Version 0.91ß
  7.      ├┼──╫─┼─╫─╫■─╫─╨┼─╥───┼┤
  8.      │   ╙   ╙ ╙┼─╜ ───╜    │      (c) Copyright 1992 - Stacy Smith
  9.      │          ┼           │
  10.      └──────────┴───────────┘
  11.  
  12.  
  13.                                 Courtesy of:
  14.  
  15.                         The Bloom Beacon-Picayune BBS
  16.           Node 1: (804) 525-9760 (USRobotics Courier Dual Standard)
  17.              Node 2: (804) 525-5372 (USRobotics Courier V.32bis)
  18.                               FidoNet 1:276/112
  19.                                   Intelec
  20.  
  21.                                 Stacy Smith
  22.                               Route 6 Box 189
  23.                            Forest, Virginia 24551
  24.  
  25.  
  26. ┌────────────────────┐
  27. │  1. Introduction:  │
  28. └────────────────────┘
  29.  
  30. ANTI-AD was developed due to recent developments in BBS ad files and their
  31. associated headaches.  The asinine sysops who insist on putting this excess
  32. baggage into files at the expense of other sysops' disk space are getting more
  33. creative and annoying.
  34.  
  35. By slightly modifying their BBS ad file, perhaps adding spaces to the end of
  36. the file or stamping the time and date in the BBS ad.  These modified files
  37. were previsously undetectable (until the BBS ad was added to a database) until
  38. ANTI-AD.
  39.  
  40.  
  41. ┌───────────────────────────┐
  42. │  2. Features of ANTI-AD:  │
  43. └───────────────────────────┘
  44.  
  45.       ∙ Identifies BBS ads using conventional CRC-32 algorithms for files that
  46.         are static.  This method of detection is extremely fast and 100%
  47.         accurate.
  48.       ∙ Includes a BBS ads maintenance utility so sysops can update their BBS
  49.         ads CRC databases in real time.
  50.       ∙ Identifies BBS ads using a new keyword algorithm for files that are
  51.         constantly changing.  This method of detection is slower and can be
  52.         less accurate depending upon how well the keywords are selected by the
  53.         user.
  54.       ∙ Up to 100 keyword sets of up to 10 keywords each can be configured by
  55.         the user. (These are arbitrary limits and can be raised, if necessary;
  56.         they seemed good starting points).
  57.       ∙ Runs as a file tester in an upload processing utility, such as ULP,
  58.         Ziplab, etc.
  59.       ∙ Detected BBS ads are removed from the files on disk before being
  60.         repacked by the upload processing utility. They may be stored in a
  61.         subdirectory for subsequent review by the user.
  62.       ∙ User-selectable process logging to a disk file.
  63.       ∙ Written mostly in C (and a little assembler) for optimal speed, using
  64.         Borland C++ 3.1 and Turbo Assembler 3.1.
  65.       ∙ Lifetime registration; pay ONCE and your registration number will work
  66.         on all future versions!
  67.  
  68.  
  69. ┌─────────────────────────────────────────────────────────┐
  70. │  3. Files Included in the ANTI-AD Distribution Archive  │
  71. └─────────────────────────────────────────────────────────┘
  72.  
  73.         ANTI-AD.EXE     BBS ad detection and removal program.
  74.         ANTI-AD.DB      BBS ads database file.
  75.         ANTI-AD.DOC     This file.
  76.         ANTI-AD.CFG     Sample configuration file.
  77.         HISTORY.TXT     ANTI-AD revision history in reverse order.
  78.         REGISTER.FRM    Registration form for ANTI-AD.
  79.         FILE_ID.DIZ     Internal description file.
  80.  
  81. When you unzip the distribution archive, you should see my PKZIP authenticity
  82. verification stamp, and a '-AV' after every file in the archive:
  83.  
  84.         # SSU301    The Bloom Beacon-Picayune BBS
  85.  
  86. If there are any files missing or added, or the -AV stamp is missing, the
  87. archive has been tampered with. It would be advisable to call my BBS (listed at
  88. the top of this document) for the latest version of ANTI-AD.
  89.  
  90.  
  91. ┌───────────────────────────┐
  92. │  4. Program Requirements  │
  93. └───────────────────────────┘
  94.  
  95. To the best of my knowledge, this program will run on most any IBM-compatible
  96. machine. I have personally tested and developed ANTI-AD on the following
  97. machines, with no problems:
  98.  
  99.         10 MHz 80286 computer (CompuAdd) with:
  100.            ∙ 1 megabyte of motherboard memory with a 2 megabyte EMS card
  101.            ∙ 42 megabytes of MFM hard disk space
  102.            ∙ MS-DOS 5.0 with 4DOS 4.0 command interpreter
  103.            ∙ CGA graphics subsystem
  104.            ∙ NAS16550AFN serial port UART
  105.            ∙ US Robotics Courier V.32bis external modem
  106.  
  107.         33 MHz 80486 computer (CompuAdd Express) with:
  108.            ∙ PCBoard 14.5a/E3
  109.            ∙ 12 megabytes of motherboard memory
  110.            ∙ 245 megabytes of IDE hard disk space
  111.            ∙ MS-DOS 5.0 with 4DOS 4.0 command interpreter
  112.            ∙ DESQview 2.42 and QEMM 6.02
  113.            ∙ SVGA graphics subsystem
  114.            ∙ NAS16550AFN serial port UARTs
  115.            ∙ US Robotics Courier V.32bis external modems
  116.  
  117.         33 MHz 80386 computer (Zeos) with:
  118.            ∙ 8 megabytes of motherboard memory
  119.            ∙ 130 megabytes of IDE hard disk space
  120.            ∙ OS/2 GA VDM with 4DOS 4.0 command interpreter
  121.            ∙ SVGA graphics subsystem
  122.            ∙ 16450 serial port UART
  123.            ∙ Everex Evercom 2400 baud internal modem
  124.  
  125. Other sysops that I have been in contact with have successfully implemented
  126. ANTI-AD on setups with CD-ROMs, networks (e.g. Novell, LANtastic) and other
  127. varying hardware.
  128.  
  129. ANTI-AD requires DOS 3.x or later, as it uses DOS SHARE-compatible file reads
  130. and writes.  ANTI-AD's memory requirements are very small (about 80K or so,
  131. plus the CRC database and keyword memory allocated).  A hard disk is required
  132. (and not very many BBSes don't have them) so it goes without saying (although I
  133. did anyway; someone is bound to ask...).
  134.  
  135.  
  136. ┌───────────────────┐
  137. │  5. Registration  │
  138. └───────────────────┘
  139.  
  140. ANTI-AD is not free; nor is ANTI-AD is crippled to force registration. ANTI-AD
  141. is fully functional, and will always remain so. The only variation with the
  142. registered copies is no time delay and beg message.
  143.  
  144. Why register? Besides a clean conscience, you will get a registration code that
  145. will work for all future versions of ANTI-AD, and will remove the delay and
  146. message at the end of execution.
  147.  
  148. Also, registered users get a large time limit and unlimited downloading from my
  149. BBS, if they choose to do so...
  150.  
  151. The registration fee for your unique code is $10 for non-commercial BBSes. The
  152. registration fee for commercial BBSes, defined if you run your BBS in the
  153. course of a commercial business, or your if BBS turns a profit, is $20. Other
  154. variations are available; refer to the file REGISTER.FRM for all registration
  155. options. Please print the file REGISTER.FRM and fill it out. You can print out
  156. the form by issuing the following command from the DOS prompt:
  157.  
  158.         TYPE REGISTER.FRM > PRN
  159.  
  160.  
  161. ┌───────────────────────────────────────┐
  162. │  6. License, Warranty and Disclaimer  │
  163. └───────────────────────────────────────┘
  164.  
  165. I'll keep this part short and sweet, and dispense with the legal-ese:
  166.  
  167.         License: You are allowed to use ANTI-AD for 30 days, after which you
  168.            must either register ANTI-AD or stop using it completely. ANTI-AD
  169.            registration is a license for your use of ANTI-AD; I retain
  170.            ownership of the software. A single registration applies to a single
  171.            BBS system, regardless of the number of computers used in the
  172.            system. If you run two or more distinct BBS systems on the same
  173.            computer (with different names), you require two or more ANTI-AD
  174.            registrations. Refer to the registration form for the currect
  175.            pricing structure.
  176.  
  177.         Warranty: There isn't one. The only thing I'll guarantee is that
  178.            ANTI-AD will take up disk space, and will disappear when deleted.
  179.  
  180.         Disclaimer: I'm not responsible for anything bad that happens. ANTI-AD
  181.            works here, but I cannot be held responsible for it not working on
  182.            your computer or doing any damage to hardware or software.
  183.  
  184. If these aren't agreeable with you, then the best thing to do is delete ANTI-AD
  185. right now. I'll do my best to help any user (registered or not) that wants to
  186. use ANTI-AD, and I'll act on bug reports quickly, but I simply cannot and will
  187. not be responsible for anything bad, like lost data, disk crashes, or whatever
  188. else you can think of.
  189.  
  190.  
  191. ┌───────────────────┐
  192. │  7. Installation  │
  193. └───────────────────┘
  194.  
  195. GENERAL INSTALLATION:
  196. ─────────────────────
  197. Make a subdirectory on your hard drive. For the purposes of this document,
  198. we'll call it "C:\ANTI-AD". Unarchive the ANTI-AD distribution archive into
  199. this subdirectory. You've more than likely already made it this far, if you're
  200. reading this file. <grin>
  201.  
  202. The ANTI-AD system opens several files at once for various reasons. I would
  203. recommend that you have a minimum of FILES=40 in your system CONFIG.SYS file
  204. for a single-node system, since ANTI-AD is run in conjunction with your BBS
  205. software.
  206.  
  207. If you are running under a network or a multitasking operating system, you
  208. should already have DOS's SHARE.EXE loaded. You must have SHARE loaded in order
  209. to take advantage of the file sharing and locking methods used by the ANTI-AD
  210. programs to prevent data loss. (If you are running a single-node system without
  211. a multitasker, SHARE is not needed).
  212.  
  213. Edit the configuration file to suit your needs. Proper configuration will
  214. require you to refer to this section, the previous section and the section
  215. titled "Configuration", which has an in-depth explanation of each configuration
  216. parameter and its function.
  217.  
  218. Note that for the ANTI-AD program, you can obtain a limited program syntax
  219. screen simply by executing the program with no arguments.
  220.  
  221. INSTALLATION INTO YOUR UPLOAD PROCESSOR:
  222. ────────────────────────────────────────
  223. ANTI-AD is designed to operate on a subdirectory of files that have already
  224. been extracted by the upload processor.  The best application for ANTI-AD is to
  225. be executed as a file test utility, similar to a virus-scanning program, since
  226. at that point in time the files are already extracted from the archive being
  227. process.
  228.  
  229. Depending upon how your upload processor operates, the command lines can be
  230. different.  Unless there is a failure in operation, ANTI-AD always returns 0 as
  231. its errorlevel, regardless of whether BBS ads are found or not.  This is to
  232. prevent a false trigger of an upload processing error.
  233.  
  234. If your upload processor executes the file testers from the directory where the
  235. files are located (this is how ULP operates), the command line is simply:
  236.  
  237.     D:\ANTI-AD\ANTI-AD.EXE -Cd:\anti-ad\anti-ad.cfg
  238.  
  239. If your upload processor DOES NOT execute the file testers from the directory
  240. where the files are located, and passes a filespec to the program, the command
  241. line is:
  242.  
  243.     D:\ANTI-AD\ANTI-AD.EXE -Cd:\anti-ad\anti-ad.cfg -Dd:\path\*.*
  244.  
  245. The '-D' parameter defines to ANTI-AD where to find the files. Note that it
  246. will accept either a path (e.g. 'C:\TEMP\') or a filespec (e.g. 'C:\TEMP\*.*');
  247. in other words, the "*.*" is superfluous.  Regardless of the filespec, ANTI-AD
  248. will check all files in the path passed to it.  This is to allow the highest
  249. level of compatibility with all upload processing utilities.
  250.  
  251. NOTE: If you are a user of ULP, the correct configuration setup for ANTI-AD
  252. used as a file checker is as follows:
  253.  
  254.     FILE_CHECKER 2          (or whatever the next number is...)
  255.     FILE_CHK_CMD C:\ANTI-AD\ANTI-AD -Cc:\anti-ad\anti-ad.cfg
  256.     FILE_CHK_ERR 0
  257.  
  258.  
  259. ┌────────────────────┐
  260. │  8. Configuration  │
  261. └────────────────────┘
  262.  
  263. The sample configuration file included in the distribution archive is heavily
  264. commented, but some additional information is provided below:
  265.  
  266. REG_CODE
  267.     The registration code EXACTLY as provided to you on your registration
  268.     letter. If this is an unregistered version, comment out this line. Note
  269.     that this is case-sensitive, as the serial number, BBS name and sysop name
  270.     are all encrypted into this code.
  271.  
  272. BBS_NAME
  273.     The BBS name EXACTLY as provided to you on your registration letter. If
  274.     this is an unregistered version, comment out this lines. Note that this is
  275.     case-sensitive!
  276.  
  277. SYSOP_NAME
  278.     The sysop name EXACTLY as provided to you on your registration letter. If
  279.     this is an unregistered version, comment out this line. You get the picture
  280.     by now...
  281.  
  282. LOG_FILE
  283.     All of the ANTI-AD programs will write process and error information to a
  284.     log file, if desired. This is the path/filename of the log file for ANTI-AD
  285.     to record its activities. Comment out if you don't want any disk logging.
  286.  
  287. STORAGE_DIR
  288.     If you want ANTI-AD to use a specific directory for storage of BBS ads
  289.     detected and removed from archives, enter the full pathname (including the
  290.     trailing backslash). If you do not want the file saved for later
  291.     inspection, comment it out. I would not recommend using a RAM disk, since
  292.     the files would be lost when the system is rebooted or powered down.
  293.  
  294. ADS_DB
  295.     The directory path and name for the BBS ads database. This database can be
  296.     updated by the sysop by using the '-F' parameter of ANTI-AD (see section 10
  297.     of this document), freeing the sysop from being reliant on me to maintain
  298.     the ads database. If you find a large number of new BBS ad files, please
  299.     upload them to my board for inclusion into my master ads database
  300.     distributed with ANTI-AD.  This database format is compatible with my
  301.     UpLoadProcessor (ULP) utility's BBS ads database.
  302.  
  303. KEYWORDS
  304.     The keyword sets (separated by commas) to search potential BBS ad files
  305.     for. Note that these keywords are case-sensitive! If a potential ad file
  306.     contains ALL of the keywords or phrases, it will be dispositioned as a BBS
  307.     ad. I suggest using the BBS name, area code and exchange, modem brand and
  308.     other key terms in their ads that seem static. Up to 10 keywords are
  309.     allowed per line; one line comprises a keyword set. A maximum of 100
  310.     keyword sets may be defined. Note that BBS ad scanning time increases with
  311.     the number of keywords and keyword sets.
  312.  
  313.  
  314. ┌────────────────────────┐
  315. │  10. Manual Operation  │
  316. └────────────────────────┘
  317.  
  318. In order for sysops to be able to 'keep up' with new ads produced by the weenie
  319. sysops who insert the @!&*#%$ things, ANTI-AD is capable of scanning a BBS ad
  320. file and updating the BBS ads with it's information. Don't worry about
  321. duplication, as part of the process is to purge duplicate BBS ad info. The
  322. command-line syntax for this functions is:
  323.  
  324.     ANTI-AD -Canti-ad.cfg -Fbbs.ad
  325.  
  326. where 'anti-ad.cfg' is the full path and filename for the ANTI-AD configuration
  327. file, and 'bbs.ad' is the path and filename for the BBS ad file to be added to
  328. the BBS ads database.
  329.  
  330. If you have a subdirectory full of BBS ads to add to the database, the
  331. following batch file will automate the procedure:
  332.  
  333.     for %%f in (c:\temp\*.*) do ANTI-AD -Cc:\anti-ad\anti-ad.cfg -F%%f
  334.  
  335. I would greatly appreciate your uploading of any new BBS ad files that you may
  336. collect over time to my BBS so I can update the master listing that I include
  337. with the ANTI-AD distribution archive. Please refer to the top of this document
  338. for my BBS number.
  339.  
  340. The latest version of my BBS ads database is included in the distribution
  341. archive. In order to add whatever new BBS ads information that may be
  342. contained, you can merge it with your current BBS database:
  343.  
  344.     ANTI-AD -Canti-ad.cfg -Mother.db
  345.  
  346. where 'anti-ad.cfg' is the full path and filename for the ANTI-AD configuration
  347. file, and 'other.db' is the path and filename for the other BBS ads datatbase
  348. to be merged with the master ads database.
  349.  
  350.  
  351. ┌───────────────┐
  352. │  11. Support  │
  353. └───────────────┘
  354.  
  355. If you require support for ANTI-AD, I can be contacted by any of the following
  356. means:
  357.  
  358.     ∙ Fidonet Netmail addressed to Stacy Smith, node 1:276/112 (aka 1:276/100)
  359.     ∙ Intelec Shareware conference
  360.     ∙ Intelec PCBoard conference
  361.     ∙ The ULP Support conference (#42) on Salt Air (PCBoard support BBS)
  362.     ∙ The Support conference (#2) on my BBS (listed at the top of this
  363.       document).
  364.  
  365.  
  366. ┌─────────────────────────────┐
  367. │  12. The Future of ANTI-AD  │
  368. └─────────────────────────────┘
  369.  
  370. ANTI-AD will be supported as long as I'm in the BBSing business (which will be
  371. quite a while...once it's in your blood, you can never shake it <grin>). The
  372. ANTI-AD system will be rapidly expanding it's features so it will be your first
  373. choice in BBS ad eradicator. Some current plans:
  374.  
  375.       ∙ Develop a series of keyword sets to allow detection of most, if not
  376.         all, BBS ads.
  377.       ∙ None...any ideas from you guys?
  378.  
  379. If you have any other suggestions, contact me by U.S. snail-mail or on my BBS
  380. at the number at the top of this document.
  381.  
  382. Thanks for giving ANTI-AD a try!
  383.  
  384.  
  385. ┌────────────────────────────────┐
  386. │  Appendix A:  DOS Errorlevels  │
  387. └────────────────────────────────┘
  388.  
  389. The errorlevels returned to DOS by the ANTI-AD system programs are consistent
  390. among all of the programs (primarily with the error conditions); the following
  391. is a list of the errorlevels than can be returned by the ANTI-AD programs, along
  392. with which programs return the codes:
  393.  
  394.         0       Successful execution
  395.         99      Help screen (executing a program with no or an insufficient
  396.                    number of arguments)
  397.         100     Could not close all open files
  398.         101     Unknown command line parameter
  399.         102     Config file not found
  400.         103     Invalid config file format
  401.         110     Unable to allocate heap memory
  402.         111     Unable to open or lock disk logging file
  403.         114     Unable to open BBS ads database file
  404.         115     Invalid filename provided by user on command-line
  405.         116     Invalid path provided by user on command-line
  406.         200     Undefined error (internal to ANTI-AD program)
  407.