home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7458 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.8 KB  |  43 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!think.com!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!s.psych.uiuc.edu!amead
  3. From: amead@s.psych.uiuc.edu (Alan Mead)
  4. Subject: Re: my PD editor fights back / TP prot scheme
  5. References: <34646@adm.brl.mil>
  6. Message-ID: <Bz9E1I.56F@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: UIUC Department of Psychology
  9. Date: Mon, 14 Dec 1992 17:03:16 GMT
  10. Lines: 31
  11.  
  12. ATURNER@rcnvms.rcn.mass.edu (Alan Turner) writes:
  13.  
  14.  
  15. >I have my favorite PD editor which I use for small - quick little progs.
  16. >I decided that I would go in with Dos debug and just change the color attr
  17. >byte - so I can see my screen better - guess what?
  18. >The program knew that I modified one byte! and gave me an error message
  19. >accordingly! "Program has been altered" and blew up!
  20.  
  21. >This is my question because now I am curious - does anyone know of TP prot
  22. >schemes along these lines or is this a strictly assembly thing?
  23. >How can a program do this!!!????
  24.  
  25. Ah, your being prtected from those screen colors.   Probably what the 
  26. editor does is to keep a checksum of its size.  When you modified a 
  27. single byte, its computed checksum didn't match and it, as you say, 
  28. blew up (I would say self-destructed).
  29.  
  30. But this was probably intended as a safty feature to stop viri from
  31. causing damage rather than as copy protection.
  32.  
  33. And last I checked there were ready-made TP units to do this for you.  They
  34. might be called something like VIRPROT and, while you should check local
  35. ftp sites, I last saw such a beast on Garbo.
  36.  
  37. Note that you can also store information (like the screen color) inside
  38. the program (ie, and modify the object file instead of keeping track of
  39. a ".rc" file) in which case you have to carefully exclude those lines 
  40. form the checksum.
  41.  
  42. -alan
  43.