Header Hacker (Part 3)

See all articles from ZX-Appeal May 88
Author(s): Bill Rutter
Publication: ZX-Appeal
Pub Details: ZX-Appeal May 88
Date: May 1988
Pages: 4

A review of some of the common methods used to protect programs against piracy.

Normally, each block of a program is preceded by a border of thick Red and Cyan stripes. This is called a TONE LEADER and ensures that the code is taken into the memory at the correct time. By writing some machine code into the first loader, the system is bypassed, and we can now have LONGer, SHORTer, NARROWer, WIDer, and PULSed (or JERKY) tone leaders, which will not normally be copyable.

The TONE LEADER is followed by the Header, 17 bytes long, of the file attributes of the next block to be loaded. It is quite common to code in Headerless Files, or False Headers to stop copying.

A common method is to use an Anti-Merge Basic loader. This usually contains some sabotage POKES, which either crash the system, or give an ‘Out of Memory’ error. It is normally done by POKING an abnormally high value into the line length byte which precedes the last line. The program will run, but the MERGE routine crashes, because the last line appears to be too long.

The sabotage POKES, referred to above, cause a Reset if an error occurs (e.g BREAK key is pressed). The system variables area (23613/4) is normally used. Also 23659,which holds the number of lines where error messages are usually printed. If POKED with 0, the system will just ‘sit’ there, having no place to print messages. Also control codes can be embedded in the Basic to make the print either appear distorted, invisible or even display a message (usually a warning!) of some kind. It is also possible with machine code to raise or lower the BAUD rate (normally 1500).

Finally, what I term the hardware method is the infamous LENSLOK. At the beginning of the program a series of distorted random numbers is shown on screen and a special plastic lens in a holder is held to the screen, to decipher the numbers which are entered as the password. It can be difficult to use, and has been roundly condemned in the U.K.

This brief review may help to solve some of the problems, although there are many other methods in use. Get a Header Reader, and try some of the things I have outlined. Getting into that apparently unbreakable program can be very gratifying to a amateur ‘Basic’ hacker!