home *** CD-ROM | disk | FTP | other *** search
/ Various Unprotection Examples / unprotect.zip / unprotect / KQ2UNP1W / KQ2UNP.DOC < prev   
Text File  |  1986-07-06  |  4KB  |  92 lines

  1.                 Copy Unprotecting King's Quest ][ Version 1.0W
  2.                               by the Road Runner
  3.                                  July 4, 1986
  4.  
  5.  
  6. In commemoration of 100 years of the Statue of Liberty, the accompanying 
  7. program and simple procedure will liberate your King's Quest ][ (Version 1.0W) 
  8. from the chains of copy protection, by creating a non-protected backup. To 
  9. create the backup, you will need: 
  10.  
  11.      .  An IBM PC, XT, AT or compatible running DOS 2.0 or greater and
  12.          having a 360KB or 1.2M drive identified as A,
  13.      .  The original King's Quest ][ (Version 1.0W) Diskettes 1 and 2,
  14.      .  Two blank diskettes on which the backup will be made,
  15.      .  Two diskette labels and two write protect tabs,
  16.      .  The DOS program DISKCOPY (or equivalent),
  17.      .  The accompanying program KQ2UNP.COM,
  18.      .  These instructions.
  19.  
  20. Follow these simple steps:
  21.  
  22.      1.  Run DISKCOPY to make a backup of KQ-][ Disk 2 onto one of the blanks.  
  23. You should have no difficulty making this copy since Disk 2 is not protected.  
  24. Label the copy "KQ-][ Disk 2" and put a write protect tab on it.  
  25.  
  26.      2.  Using DISKCOPY, make a backup of KQ-][ Disk 1 on the other blank 
  27. diskette.  Since it is protected, you should expect to see an "Unrecoverable 
  28. read error on track 6" message, followed by a "Target disk may be unusable" at 
  29. the end of the copy.  Ignore these warnings.  
  30.  
  31. (NOTE: If you do -not- get the warnings, you may not have the right version of 
  32. KQ-][ and these procedures may not work.  Instructions for unprotecting 
  33. earlier versions of KQ-][ can be found on several bulletin boards.) 
  34.  
  35.      3.  Run program KQ2UNP and follow its directions: 
  36.  
  37.          .  Insert the original KQ-][ Disk 1 in Drive A, then press ENTER,
  38.          .  Remove the orginal, put the Disk 1 copy in Drive A, then press 
  39.             ENTER. 
  40.  
  41.      4.  Remove the backup, label it "KQ-][ Disk 1" and put a write protect 
  42. tab on it.  
  43.  
  44. You are done!!  Enjoy the freedom!!  
  45.  
  46. ------------------------------------------------------------------------------
  47.  
  48. For those of you who would like to know how the copy protection and copy 
  49. unprotection work, here is an overview of the details.  
  50.  
  51. Copy Protection:
  52.  
  53. Track 6 Side 0 of KQ-][ Disk 1 has been specially formatted so that it cannot 
  54. be duplicated by most software disk copy programs.  When KQ-][ is booted, it 
  55. eventually reads track 6 to determine that the special format is present.  
  56. Specifically, it reads track 6 side 0 sectors 8 to 2 (backwards) as 1024 byte 
  57. sectors, then reads sector 1 as an 8192-byte sector.  It expects to find each 
  58. sector, and to get a CRC error on each read. If what is read is the expected 
  59. data, it assumes you have the original KQ-][ Disk 1, and runs the game.  It 
  60. never makes this check again during the game.  
  61.  
  62. Copy Unprotection:
  63.  
  64. The copy unprotection design takes advantage of several characteristics of the 
  65. KQ-][ copy protection scheme.  
  66.  
  67.         1.  Most importantly, KQ-][ uses ROM BIOS INT 13 calls to read the 
  68. copy protected sectors, hence a demon can be introduced to intercept KQ-][ 
  69. calls and fool the progam into believing it is reading the original.  
  70.  
  71.         2.  The diskette is formatted with 9 512-byte sectors per track and 
  72. track 6 side 1 is not used by KQ-][.  The 8192-byte sector of copy protected 
  73. data from side 0 can be stored in 16 of the 18 standard 512-byte sectors on 
  74. track 6 sides 0 and 1.  
  75.  
  76. Program KQ2UNP reads the boot record and copy protected data from the original 
  77. KQ-][ Disk 1.  On the copy, it writes a Road Runner produced boot record on 
  78. track 0, and a demon, the original boot record and copy protection data on 
  79. track 6.  
  80.  
  81. When the KQ-][ copy is booted, the Road Runner boot record reads track 6 into 
  82. memory, installs the demon, then gives control to the original boot record.  
  83. The demon passes on all disk read requests to the ROM BIOS until KQ-][ asks 
  84. for track 6 data.  It then feeds KQ-][ the copy protection garbage it expects, 
  85. until the last read call to track 6.  The demon then uninstalls itself and 
  86. vanishes, leaving no trace.  
  87.  
  88. ------------------------------------------------------------------------------
  89. Note:  This program and writeup can also be used to unprotect The Black 
  90.        Cauldron Version 1.1J.  
  91.  
  92.