home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / CHKANSI2.ZIP / CHKANSI2.DOC next >
Text File  |  1988-11-15  |  8KB  |  158 lines

  1.  
  2.                    ******************************************
  3.                    *                                        *
  4.                    *         CHKANSI2 - version 2.0         *
  5.                    *   (C)Copyright 1988, Gilmore Systems   *
  6.                    *                                        *
  7.                    ******************************************
  8.  
  9.                    High Tech Solutions to High Tech Problems
  10.  
  11.                                 Gilmore Systems
  12.                                  P.O. Box 3831
  13.                           Beverly Hills, CA 90212-0831
  14.  
  15.         Voice: (213) 275-8006   Data: (213) 276-5263   CIS [71350,1070]
  16.  
  17.     ------------------------------------------------------------------------
  18.  
  19.     As some of you already know, we offer virus detection programs.  We also
  20.     run the "Virus Info Palladium" BBS.
  21.  
  22.     Since most of us already know about computer viruses and "trojan  horse"
  23.     programs, we  won't discuss  them here.   We'll  just mention that these
  24.     programs must be executed on your computer in order for them to do their
  25.     dirty work.
  26.  
  27.     We'd like  to share  with you,  2 of  the most  common MISBELIEFS  about
  28.     computer damage that our vast number callers have expressed:
  29.  
  30.       1) Damage can ONLY occur when an infected or trojan program is run.
  31.       2) Damage CANNOT occur with data, text, or other non-program files.
  32.  
  33.     THESE STATEMENTS ARE WRONG!  Although damage is MOST LIKELY to occur  by
  34.     running a program, damage may also occur by TYPING A TEXT FILE or  other
  35.     display file on your computer screen.
  36.  
  37.     Most  people  now  have  the  ANSI.SYS  device driver installed on their
  38.     computer systems.  You can check  if this device driver is installed  on
  39.     your system  by checking  the file  CONFIG.SYS on  the root directory of
  40.     your boot disk - if  the CONFIG.SYS file contains a  statement something
  41.     like DEVICE=ANSI.SYS, it is installed on your system.
  42.  
  43.     This  ANSI  (American  National  Standards  Institue)  device  driver is
  44.     required by many programs.
  45.  
  46.                           SO - WHAT's THE BOTTOM LINE?
  47.  
  48.     Before going  into the  bottom line,  a brief  understanding of  how the
  49.     ANSI.SYS device  driver works  is needed.   Basically,  you can think of
  50.     this driver as a  sort of TSR (like  Borland's Sidekick, for example)  -
  51.     always in memory.   But it's not activated  by keystrokes - it  monitors
  52.     what's being sent to  your display screen.   It lets everything pass  to
  53.     the screen except  for the one  thing it looks  for - ESCAPE  SEQUENCES.
  54.     Programs requiring the ANSI driver  emit escape sequences to the  screen
  55.     to control such  things as color,  cursor positioning, screen  mode, and
  56.     other things just as a program emits escape sequences to your printer to
  57.     activate or deactivate  certain features such  as print fonts,  spacing,
  58.     underlining, etc.
  59.  
  60.     Since these escape sequences are intercepted by the ANSI driver, they do
  61.     not show up on the screen - you only see their effects.
  62.  
  63.  
  64.  
  65.  
  66.                                    THE DANGER
  67.  
  68.     The danger lies with the fact that the ANSI device driver also  responds
  69.     to  an  escape  sequence  which  can  RE-MAP  or  RE-DEFINE  ANY of your
  70.     keyboard's keys.   Not  only is  it capable  of such  nuisance things as
  71.     turning your 'A' key into an 'P' or <F10> key, but it is also capable of
  72.     re-defining  ANY  key  to  a  complete  character string - with carriage
  73.     return.  This means, for example,  an escape sequence can be emitted  to
  74.     change your <F1> key to mean "ERASE *.EXE"  - and if you press your <F1>
  75.     key  ANYTIME  after  the  ANSI  driver  received  the  re-define  escape
  76.     sequence,  you'll  quickly  find  that  all  of your executable files in
  77.     whatever directory you were in at the time are GONE!
  78.  
  79.                                  THERE's MORE!
  80.  
  81.     As if  this isn't  scary enough,  a program  does NOT  have to be run in
  82.     order to re-map or redefine any of your keys.  ANY TEXT OR DISPLAY  FILE
  83.     MAY CONTAIN EMBEDDED ANSI  CODES!  All you  need to do is  type the file
  84.     out to  your screen,  and the  ANSI driver  will intercept  all imbedded
  85.     codes - which may contain  keyboard redefinition.  Simply typing  a text
  86.     or display file onto your screen which contains embedded ANSI codes,  is
  87.     the same thing as a program emitting these ANSI codes.  The ANSI  driver
  88.     doesn't care where it came from, all it knows is that it's being sent to
  89.     the display screen, so it intecepts these codes and acts on them.
  90.  
  91.                                  WHAT CAN I DO?
  92.  
  93.     To be absolutely safe,  you could turn off  the ANSI driver by  removing
  94.     the  DEVICE=ANSI.SYS  from  your  CONFIG.SYS  file  and re-starting your
  95.     computer, but then you'd probably find a bunch of unreadable garbage  on
  96.     your screen from  some programs or  from typing certain  text or display
  97.     files which have legitimate ANSI display sequences in them, but  there's
  98.     a much better way:
  99.  
  100.                                   CHKANSI2.EXE
  101.  
  102.     We've  developed  a  program  here  which  we call CHKANSI2.EXE (or just
  103.     CHKANSI2 for short).  Simply execute the program without any parameters,
  104.     and instructions  on its  use will  appear on  your screen.   As a brief
  105.     synopsis  of  the  program,  CHKANSI2  goes  through  every  byte of any
  106.     questionable file you have - whether  its a text, display, data, or  any
  107.     other file, and checks for escape  sequences.  It prints - in  English -
  108.     any  escape  sequences  it  finds  and  concludes  with  how many escape
  109.     sequences it found, and out  of those, how many are  potentially harmful
  110.     (those that  redefine keys).   Since  an ANSI  display file  may contain
  111.     hundreds  or  even  thousands  of  escape  sequences,  see  the  program
  112.     instructions (by running the program without parameters) for how to turn
  113.     off the English  display of all  escape sequences except  for those that
  114.     redefine keyboard keys.
  115.  
  116.     Use CHKANSI2 whenever you've downloaded any text or display file  from a
  117.     BBS, or obtain same  from a "friend".   You should use CHKANSI2 to check
  118.     files PRIOR to typing or displaying them on your display screen.
  119.  
  120.  
  121.  
  122.  
  123.                              OPERATING ENVIRONMENT
  124.  
  125.     CHKANSI2 is  a   bound  executable  (also   known  as  FAPI   or  Family
  126.     Application), meaning it will execute equally well under the DOS or OS/2
  127.     operating environment - whichever you prefer. For IBM and all compatible
  128.     computers.
  129.  
  130.                                  CLOSING NOTES
  131.  
  132.     There is no charge, fee, or consideration for this program. CHKANSI2.EXE
  133.     may be freely distributed as long as it is not altered, the copyright is
  134.     not removed, and this documentation file is not altered and  accompanies
  135.     the program.  The accopmanying file  TEST2.TXT must not  be modified and
  136.     must also accompany the distribution.
  137.  
  138.     Keyboard key redefinition via ANSI.SYS is not actually part of the  ANSI
  139.     standard,  but  is  unique  to  DOS  and  OS/2  and possibly a few other
  140.     operating systems.
  141.  
  142.     We've included a text file - TEST2.TXT - in this distribution. This file
  143.     contains imbedded ANSI  escape sequences.  You may run  CHKANSI2 against
  144.     this file to  see how it  works - DO  NOT TYPE THIS  FILE as it contains
  145.     keyboard redefinitions.   Just  to make  sure you  don't type  the file,
  146.     we've put an End-Of-File mark as the first character in the file so that
  147.     none of your keyboard keys get redefined.
  148.  
  149.     This distribution contains 4 files: CHKANSI2.EXE, CHKANSI2.DOC,
  150.                                         TEST2.TXT, and READ.ME
  151.  
  152.  
  153.     - Chuck Gilmore, Pres.
  154.       Gilmore Systems
  155.  
  156. End.
  157.  
  158.