Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!widener!netnews.upenn.edu!vax1.cc.lehigh.edu!cert.sei.cmu.edu!krvw From: bcarter@claven.idbsu.edu Newsgroups: comp.virus Subject: Re: HyperCard anti-virus script bad (Mac) Message-ID: <0010.9104171702.AA08284@ubu.cert.sei.cmu.edu> Date: 16 Apr 91 07:47:34 GMT Sender: Virus Discussion List Lines: 44 Approved: krvw@sei.cmu.edu >Unfortunately, Bruce, if the script is going to spread, it has to get >past the scripts in the HOME card of HC. Passing the message directly >to HC does not bypass the HOME scripts. > >Mike >Mac Admin >WSOM CSG >CWRU >mike@pyrite.som.cwru.edu Of course sending to HyperCard bypasses the Home stack scripts, which you could have easily verified if you had bothered to check. Here is a simple example. There is a handler called "xy" in the stack script of the Home stacks of both version 1 and 2 of HyperCard. Execute the following handler from a button, or execute the statements individually from the message box. on mouseUp xy send "xy" to HyperCard end mouseUp The first xy executes the xy handler in the Home stack (which gives you an updating mouseLoc in the message box). Click to exit the xy handler. The send executes and you get a "Can't understand xy" message because HyperCard doesn't know what to do with the "xy" message. The handler is in the Home stack and has been bypassed by the send. Or here is a more directly related example. Put the following in your Home stack. on set answer "Tried to use set" end set This should prevent any set from being executed. It is easily bypassed by using the send format. Bruce Carter, Courseware Development Coordinator Lab: (208) 385-1859 Faculty Development Lab - Room 213 Office: (208) 385-1250 Simplot/Micron Technology Center CompuServe ID: 76666,511 Boise State University CREN (BITNET): duscarte@idbsu 1910 University Drive Internet: duscarte@idbsu.idbsu.edu Boise, ID 83725 --> Preferred: bcarter@claven.idbsu.edu ===============================================================================