Home » Archimedes archive » Micro User » MU 1991-06.adf » PD-Stuff » Utilities/!FileCheck/!Help/Readme

Utilities/!FileCheck/!Help/Readme

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Micro User » MU 1991-06.adf » PD-Stuff
Filename: Utilities/!FileCheck/!Help/Readme
Read OK:
File size: 0AE0 bytes
Load address: 0000
Exec address: 0000
File contents
***************************** Copyright Notice ****************************
*                                                                         *
*                          (c) 1991 Glyn Davies                           *
*                                                                         *
***************************************************************************


                  Know if a !Run, !Boot, or !RunImage file 

                           increases in length

                             



Program : !FileCheck

Author  : Glyn Davies

Purpose : Notify user if !Boot, !Run or !RunImage files increase in size
and rename offending files.

Version : 2.00 March 1991

Intro

     After reading many articles about viruses on the Acorn Archimedes I
set about trying to write a program which will copy it's self from one 
application to  another, and discovered it was surprisingly easy.   

Worried about this I  used the knowledge that I had gained in writing
 a 'virus' to write an anti virus, and !FileCheck is the result.

N.B. My Virus stays locked in my disc box!




How it does it!

    The program waits for WIMP message 5 (double click), when this occurs
it checks to see if an application is the object of the double click then
the   program looks for the 3 main application files:
         !Run
         !RunImage
         !Boot
    
 It then looks for its own data files: 

         !Runlen
         !Bootlen
         !Imagelen

 If any of the standard files (!Run, !RunImage, !Boot) are not present
it does not look for its accompanying data file.It then finds the length 
of the WIMP files and loads the data of their original length.

If the files have increased in size then they are renamed:

!Run      --->  !Virusrun
!Boot     --->  !Virusboot
!RunImage --->  !VirusImg


The user is notified of this and should then examine the offending file/s. 
 
If the file size has decreased then the data files are updated.

If the file size is unchanged then the datafiles are left unchanged.


N.B. This program does not attempt to remove any viruses it merely attempts
to prevent their spread.


If you have used this program to protect your system and if it has worked 
as spec against a virus, I would like to hear about it.  Any cash is 
welcome, I want to get the RiscOS programmers reference manuals, but as yet
cashflow is at an all time low.

Copyright remains mine however this application may be freely distributed,
as long as it is not sold for more than two pounds.
It may not be altered in any way except to rename the datafiles (in case 
any virus checks for mine)


I can be reached at :

   Plas Eyton,
   Sontley,
   Wrexham,
   Wales.
   LL130YD

   Help Util by Loring (TA.)

Recomended book 'ARCHIMEDES ASSEMBLY LANGUAGE'
00000000  0a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |.***************|
00000010  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 20 43  |************** C|
00000020  6f 70 79 72 69 67 68 74  20 4e 6f 74 69 63 65 20  |opyright Notice |
00000030  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
00000040  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 0a 2a 20 20  |************.*  |
00000050  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000090  20 20 20 20 20 20 20 2a  0a 2a 20 20 20 20 20 20  |       *.*      |
000000a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000b0  20 20 20 20 28 63 29 20  31 39 39 31 20 47 6c 79  |    (c) 1991 Gly|
000000c0  6e 20 44 61 76 69 65 73  20 20 20 20 20 20 20 20  |n Davies        |
000000d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000e0  20 20 20 2a 0a 2a 20 20  20 20 20 20 20 20 20 20  |   *.*          |
000000f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000120  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 2a  |               *|
00000130  0a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |.***************|
00000140  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000170  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 0a 0a 0a 20  |************... |
00000180  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000190  20 4b 6e 6f 77 20 69 66  20 61 20 21 52 75 6e 2c  | Know if a !Run,|
000001a0  20 21 42 6f 6f 74 2c 20  6f 72 20 21 52 75 6e 49  | !Boot, or !RunI|
000001b0  6d 61 67 65 20 66 69 6c  65 20 0a 0a 20 20 20 20  |mage file ..    |
000001c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000001d0  20 20 20 20 20 20 20 69  6e 63 72 65 61 73 65 73  |       increases|
000001e0  20 69 6e 20 6c 65 6e 67  74 68 0a 0a 20 20 20 20  | in length..    |
000001f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000200  20 20 20 20 20 20 20 20  20 0a 0a 0a 0a 50 72 6f  |         ....Pro|
00000210  67 72 61 6d 20 3a 20 21  46 69 6c 65 43 68 65 63  |gram : !FileChec|
00000220  6b 0a 0a 41 75 74 68 6f  72 20 20 3a 20 47 6c 79  |k..Author  : Gly|
00000230  6e 20 44 61 76 69 65 73  0a 0a 50 75 72 70 6f 73  |n Davies..Purpos|
00000240  65 20 3a 20 4e 6f 74 69  66 79 20 75 73 65 72 20  |e : Notify user |
00000250  69 66 20 21 42 6f 6f 74  2c 20 21 52 75 6e 20 6f  |if !Boot, !Run o|
00000260  72 20 21 52 75 6e 49 6d  61 67 65 20 66 69 6c 65  |r !RunImage file|
00000270  73 20 69 6e 63 72 65 61  73 65 20 69 6e 20 73 69  |s increase in si|
00000280  7a 65 0a 61 6e 64 20 72  65 6e 61 6d 65 20 6f 66  |ze.and rename of|
00000290  66 65 6e 64 69 6e 67 20  66 69 6c 65 73 2e 0a 0a  |fending files...|
000002a0  56 65 72 73 69 6f 6e 20  3a 20 32 2e 30 30 20 4d  |Version : 2.00 M|
000002b0  61 72 63 68 20 31 39 39  31 0a 0a 49 6e 74 72 6f  |arch 1991..Intro|
000002c0  0a 0a 20 20 20 20 20 41  66 74 65 72 20 72 65 61  |..     After rea|
000002d0  64 69 6e 67 20 6d 61 6e  79 20 61 72 74 69 63 6c  |ding many articl|
000002e0  65 73 20 61 62 6f 75 74  20 76 69 72 75 73 65 73  |es about viruses|
000002f0  20 6f 6e 20 74 68 65 20  41 63 6f 72 6e 20 41 72  | on the Acorn Ar|
00000300  63 68 69 6d 65 64 65 73  20 49 0a 73 65 74 20 61  |chimedes I.set a|
00000310  62 6f 75 74 20 74 72 79  69 6e 67 20 74 6f 20 77  |bout trying to w|
00000320  72 69 74 65 20 61 20 70  72 6f 67 72 61 6d 20 77  |rite a program w|
00000330  68 69 63 68 20 77 69 6c  6c 20 63 6f 70 79 20 69  |hich will copy i|
00000340  74 27 73 20 73 65 6c 66  20 66 72 6f 6d 20 6f 6e  |t's self from on|
00000350  65 20 0a 61 70 70 6c 69  63 61 74 69 6f 6e 20 74  |e .application t|
00000360  6f 20 20 61 6e 6f 74 68  65 72 2c 20 61 6e 64 20  |o  another, and |
00000370  64 69 73 63 6f 76 65 72  65 64 20 69 74 20 77 61  |discovered it wa|
00000380  73 20 73 75 72 70 72 69  73 69 6e 67 6c 79 20 65  |s surprisingly e|
00000390  61 73 79 2e 20 20 20 0a  0a 57 6f 72 72 69 65 64  |asy.   ..Worried|
000003a0  20 61 62 6f 75 74 20 74  68 69 73 20 49 20 20 75  | about this I  u|
000003b0  73 65 64 20 74 68 65 20  6b 6e 6f 77 6c 65 64 67  |sed the knowledg|
000003c0  65 20 74 68 61 74 20 49  20 68 61 64 20 67 61 69  |e that I had gai|
000003d0  6e 65 64 20 69 6e 20 77  72 69 74 69 6e 67 0a 20  |ned in writing. |
000003e0  61 20 27 76 69 72 75 73  27 20 74 6f 20 77 72 69  |a 'virus' to wri|
000003f0  74 65 20 61 6e 20 61 6e  74 69 20 76 69 72 75 73  |te an anti virus|
00000400  2c 20 61 6e 64 20 21 46  69 6c 65 43 68 65 63 6b  |, and !FileCheck|
00000410  20 69 73 20 74 68 65 20  72 65 73 75 6c 74 2e 0a  | is the result..|
00000420  0a 4e 2e 42 2e 20 4d 79  20 56 69 72 75 73 20 73  |.N.B. My Virus s|
00000430  74 61 79 73 20 6c 6f 63  6b 65 64 20 69 6e 20 6d  |tays locked in m|
00000440  79 20 64 69 73 63 20 62  6f 78 21 0a 0a 0a 0a 0a  |y disc box!.....|
00000450  48 6f 77 20 69 74 20 64  6f 65 73 20 69 74 21 0a  |How it does it!.|
00000460  0a 20 20 20 20 54 68 65  20 70 72 6f 67 72 61 6d  |.    The program|
00000470  20 77 61 69 74 73 20 66  6f 72 20 57 49 4d 50 20  | waits for WIMP |
00000480  6d 65 73 73 61 67 65 20  35 20 28 64 6f 75 62 6c  |message 5 (doubl|
00000490  65 20 63 6c 69 63 6b 29  2c 20 77 68 65 6e 20 74  |e click), when t|
000004a0  68 69 73 20 6f 63 63 75  72 73 0a 69 74 20 63 68  |his occurs.it ch|
000004b0  65 63 6b 73 20 74 6f 20  73 65 65 20 69 66 20 61  |ecks to see if a|
000004c0  6e 20 61 70 70 6c 69 63  61 74 69 6f 6e 20 69 73  |n application is|
000004d0  20 74 68 65 20 6f 62 6a  65 63 74 20 6f 66 20 74  | the object of t|
000004e0  68 65 20 64 6f 75 62 6c  65 20 63 6c 69 63 6b 20  |he double click |
000004f0  74 68 65 6e 0a 74 68 65  20 20 20 70 72 6f 67 72  |then.the   progr|
00000500  61 6d 20 6c 6f 6f 6b 73  20 66 6f 72 20 74 68 65  |am looks for the|
00000510  20 33 20 6d 61 69 6e 20  61 70 70 6c 69 63 61 74  | 3 main applicat|
00000520  69 6f 6e 20 66 69 6c 65  73 3a 0a 20 20 20 20 20  |ion files:.     |
00000530  20 20 20 20 21 52 75 6e  0a 20 20 20 20 20 20 20  |    !Run.       |
00000540  20 20 21 52 75 6e 49 6d  61 67 65 0a 20 20 20 20  |  !RunImage.    |
00000550  20 20 20 20 20 21 42 6f  6f 74 0a 20 20 20 20 0a  |     !Boot.    .|
00000560  20 49 74 20 74 68 65 6e  20 6c 6f 6f 6b 73 20 66  | It then looks f|
00000570  6f 72 20 69 74 73 20 6f  77 6e 20 64 61 74 61 20  |or its own data |
00000580  66 69 6c 65 73 3a 20 0a  0a 20 20 20 20 20 20 20  |files: ..       |
00000590  20 20 21 52 75 6e 6c 65  6e 0a 20 20 20 20 20 20  |  !Runlen.      |
000005a0  20 20 20 21 42 6f 6f 74  6c 65 6e 0a 20 20 20 20  |   !Bootlen.    |
000005b0  20 20 20 20 20 21 49 6d  61 67 65 6c 65 6e 0a 0a  |     !Imagelen..|
000005c0  20 49 66 20 61 6e 79 20  6f 66 20 74 68 65 20 73  | If any of the s|
000005d0  74 61 6e 64 61 72 64 20  66 69 6c 65 73 20 28 21  |tandard files (!|
000005e0  52 75 6e 2c 20 21 52 75  6e 49 6d 61 67 65 2c 20  |Run, !RunImage, |
000005f0  21 42 6f 6f 74 29 20 61  72 65 20 6e 6f 74 20 70  |!Boot) are not p|
00000600  72 65 73 65 6e 74 0a 69  74 20 64 6f 65 73 20 6e  |resent.it does n|
00000610  6f 74 20 6c 6f 6f 6b 20  66 6f 72 20 69 74 73 20  |ot look for its |
00000620  61 63 63 6f 6d 70 61 6e  79 69 6e 67 20 64 61 74  |accompanying dat|
00000630  61 20 66 69 6c 65 2e 49  74 20 74 68 65 6e 20 66  |a file.It then f|
00000640  69 6e 64 73 20 74 68 65  20 6c 65 6e 67 74 68 20  |inds the length |
00000650  0a 6f 66 20 74 68 65 20  57 49 4d 50 20 66 69 6c  |.of the WIMP fil|
00000660  65 73 20 61 6e 64 20 6c  6f 61 64 73 20 74 68 65  |es and loads the|
00000670  20 64 61 74 61 20 6f 66  20 74 68 65 69 72 20 6f  | data of their o|
00000680  72 69 67 69 6e 61 6c 20  6c 65 6e 67 74 68 2e 0a  |riginal length..|
00000690  0a 49 66 20 74 68 65 20  66 69 6c 65 73 20 68 61  |.If the files ha|
000006a0  76 65 20 69 6e 63 72 65  61 73 65 64 20 69 6e 20  |ve increased in |
000006b0  73 69 7a 65 20 74 68 65  6e 20 74 68 65 79 20 61  |size then they a|
000006c0  72 65 20 72 65 6e 61 6d  65 64 3a 0a 0a 21 52 75  |re renamed:..!Ru|
000006d0  6e 20 20 20 20 20 20 2d  2d 2d 3e 20 20 21 56 69  |n      --->  !Vi|
000006e0  72 75 73 72 75 6e 0a 21  42 6f 6f 74 20 20 20 20  |rusrun.!Boot    |
000006f0  20 2d 2d 2d 3e 20 20 21  56 69 72 75 73 62 6f 6f  | --->  !Virusboo|
00000700  74 0a 21 52 75 6e 49 6d  61 67 65 20 2d 2d 2d 3e  |t.!RunImage --->|
00000710  20 20 21 56 69 72 75 73  49 6d 67 0a 0a 0a 54 68  |  !VirusImg...Th|
00000720  65 20 75 73 65 72 20 69  73 20 6e 6f 74 69 66 69  |e user is notifi|
00000730  65 64 20 6f 66 20 74 68  69 73 20 61 6e 64 20 73  |ed of this and s|
00000740  68 6f 75 6c 64 20 74 68  65 6e 20 65 78 61 6d 69  |hould then exami|
00000750  6e 65 20 74 68 65 20 6f  66 66 65 6e 64 69 6e 67  |ne the offending|
00000760  20 66 69 6c 65 2f 73 2e  20 0a 20 0a 49 66 20 74  | file/s. . .If t|
00000770  68 65 20 66 69 6c 65 20  73 69 7a 65 20 68 61 73  |he file size has|
00000780  20 64 65 63 72 65 61 73  65 64 20 74 68 65 6e 20  | decreased then |
00000790  74 68 65 20 64 61 74 61  20 66 69 6c 65 73 20 61  |the data files a|
000007a0  72 65 20 75 70 64 61 74  65 64 2e 0a 0a 49 66 20  |re updated...If |
000007b0  74 68 65 20 66 69 6c 65  20 73 69 7a 65 20 69 73  |the file size is|
000007c0  20 75 6e 63 68 61 6e 67  65 64 20 74 68 65 6e 20  | unchanged then |
000007d0  74 68 65 20 64 61 74 61  66 69 6c 65 73 20 61 72  |the datafiles ar|
000007e0  65 20 6c 65 66 74 20 75  6e 63 68 61 6e 67 65 64  |e left unchanged|
000007f0  2e 0a 0a 0a 4e 2e 42 2e  20 54 68 69 73 20 70 72  |....N.B. This pr|
00000800  6f 67 72 61 6d 20 64 6f  65 73 20 6e 6f 74 20 61  |ogram does not a|
00000810  74 74 65 6d 70 74 20 74  6f 20 72 65 6d 6f 76 65  |ttempt to remove|
00000820  20 61 6e 79 20 76 69 72  75 73 65 73 20 69 74 20  | any viruses it |
00000830  6d 65 72 65 6c 79 20 61  74 74 65 6d 70 74 73 0a  |merely attempts.|
00000840  74 6f 20 70 72 65 76 65  6e 74 20 74 68 65 69 72  |to prevent their|
00000850  20 73 70 72 65 61 64 2e  0a 0a 0a 49 66 20 79 6f  | spread....If yo|
00000860  75 20 68 61 76 65 20 75  73 65 64 20 74 68 69 73  |u have used this|
00000870  20 70 72 6f 67 72 61 6d  20 74 6f 20 70 72 6f 74  | program to prot|
00000880  65 63 74 20 79 6f 75 72  20 73 79 73 74 65 6d 20  |ect your system |
00000890  61 6e 64 20 69 66 20 69  74 20 68 61 73 20 77 6f  |and if it has wo|
000008a0  72 6b 65 64 20 0a 61 73  20 73 70 65 63 20 61 67  |rked .as spec ag|
000008b0  61 69 6e 73 74 20 61 20  76 69 72 75 73 2c 20 49  |ainst a virus, I|
000008c0  20 77 6f 75 6c 64 20 6c  69 6b 65 20 74 6f 20 68  | would like to h|
000008d0  65 61 72 20 61 62 6f 75  74 20 69 74 2e 20 20 41  |ear about it.  A|
000008e0  6e 79 20 63 61 73 68 20  69 73 20 0a 77 65 6c 63  |ny cash is .welc|
000008f0  6f 6d 65 2c 20 49 20 77  61 6e 74 20 74 6f 20 67  |ome, I want to g|
00000900  65 74 20 74 68 65 20 52  69 73 63 4f 53 20 70 72  |et the RiscOS pr|
00000910  6f 67 72 61 6d 6d 65 72  73 20 72 65 66 65 72 65  |ogrammers refere|
00000920  6e 63 65 20 6d 61 6e 75  61 6c 73 2c 20 62 75 74  |nce manuals, but|
00000930  20 61 73 20 79 65 74 0a  63 61 73 68 66 6c 6f 77  | as yet.cashflow|
00000940  20 69 73 20 61 74 20 61  6e 20 61 6c 6c 20 74 69  | is at an all ti|
00000950  6d 65 20 6c 6f 77 2e 0a  0a 43 6f 70 79 72 69 67  |me low...Copyrig|
00000960  68 74 20 72 65 6d 61 69  6e 73 20 6d 69 6e 65 20  |ht remains mine |
00000970  68 6f 77 65 76 65 72 20  74 68 69 73 20 61 70 70  |however this app|
00000980  6c 69 63 61 74 69 6f 6e  20 6d 61 79 20 62 65 20  |lication may be |
00000990  66 72 65 65 6c 79 20 64  69 73 74 72 69 62 75 74  |freely distribut|
000009a0  65 64 2c 0a 61 73 20 6c  6f 6e 67 20 61 73 20 69  |ed,.as long as i|
000009b0  74 20 69 73 20 6e 6f 74  20 73 6f 6c 64 20 66 6f  |t is not sold fo|
000009c0  72 20 6d 6f 72 65 20 74  68 61 6e 20 74 77 6f 20  |r more than two |
000009d0  70 6f 75 6e 64 73 2e 0a  49 74 20 6d 61 79 20 6e  |pounds..It may n|
000009e0  6f 74 20 62 65 20 61 6c  74 65 72 65 64 20 69 6e  |ot be altered in|
000009f0  20 61 6e 79 20 77 61 79  20 65 78 63 65 70 74 20  | any way except |
00000a00  74 6f 20 72 65 6e 61 6d  65 20 74 68 65 20 64 61  |to rename the da|
00000a10  74 61 66 69 6c 65 73 20  28 69 6e 20 63 61 73 65  |tafiles (in case|
00000a20  20 0a 61 6e 79 20 76 69  72 75 73 20 63 68 65 63  | .any virus chec|
00000a30  6b 73 20 66 6f 72 20 6d  69 6e 65 29 0a 0a 0a 49  |ks for mine)...I|
00000a40  20 63 61 6e 20 62 65 20  72 65 61 63 68 65 64 20  | can be reached |
00000a50  61 74 20 3a 0a 0a 20 20  20 50 6c 61 73 20 45 79  |at :..   Plas Ey|
00000a60  74 6f 6e 2c 0a 20 20 20  53 6f 6e 74 6c 65 79 2c  |ton,.   Sontley,|
00000a70  0a 20 20 20 57 72 65 78  68 61 6d 2c 0a 20 20 20  |.   Wrexham,.   |
00000a80  57 61 6c 65 73 2e 0a 20  20 20 4c 4c 31 33 30 59  |Wales..   LL130Y|
00000a90  44 0a 0a 20 20 20 48 65  6c 70 20 55 74 69 6c 20  |D..   Help Util |
00000aa0  62 79 20 4c 6f 72 69 6e  67 20 28 54 41 2e 29 0a  |by Loring (TA.).|
00000ab0  0a 52 65 63 6f 6d 65 6e  64 65 64 20 62 6f 6f 6b  |.Recomended book|
00000ac0  20 27 41 52 43 48 49 4d  45 44 45 53 20 41 53 53  | 'ARCHIMEDES ASS|
00000ad0  45 4d 42 4c 59 20 4c 41  4e 47 55 41 47 45 27 0a  |EMBLY LANGUAGE'.|
00000ae0