News for hackers. Stuff that matters.
Re:Cracking BurgerTime, a 1982 game on a floppy disk by JoshTriplett on Sunday January 03, 2016 @12:49AM (#10829686)
Interesting exploration and impressive persistence. This approach definitely provides more detailed information about how the process worked. This seems like the only approach that would have worked back in 1982.

Reading the description of the archive.org project at https://archive.org/details/apple_ii_library_4am&tab=about makes it clear that this effort intentionally deconstructs and documents the original copy protection.

Other than as an exploration of copy protection, though, I can't help but wonder if the simplest approach to preserve and run the same software today would involve an appropriate emulator, more accurate floppy drive emulation, and the unmodified original disk image. The crazy amount of self-decryption and obfuscated code wouldn't matter as long as it found what it expected on the disk; the modifications just let it run on real hardware using a copied disk.

Apart from allowing the use of the original unmodified disk, emulation would also avoid the possibility of missing more subtle copy protection schemes. This particular disk made things easier by just stopping the game at the start. Some of the worse copy protection mechanisms developed later would detect a copied game, leave it somewhat playable, but make it either exceptionally difficult or intentionally broken near the end. Sometimes they would include a more obvious copy protection scheme to defeat that prevented playing the game at all, so that a prospective cracker would think themselves successful once the game starts. See http://media.earthboundcentral.com/2011/05/earthbounds-copy-... for an example.

Re:Cracking BurgerTime, a 1982 game on a floppy disk by kevin_thibedeau on Sunday January 03, 2016 @02:50AM (#10829883)
Some copy protection systems relied on using subtle timing errors to create disks that would read as "corrupt" by standard system software. Replicating this behavior in an emulator would be a major undertaking as well as being hard to reproduce in an image format.
Re:Cracking BurgerTime, a 1982 game on a floppy disk by abrookewood on Sunday January 03, 2016 @06:39AM (#10830293)
I was never very advanced at cracking, but I do remember back on the C64 I encountered a number of games that had corrupt/unreadable sectors on the disk. Many copy programs would halt when they encountered these errors meaning you couldn't copy the disk. I had one program (no idea what it was called anymore) that would skip the errors and write everything else. To beat the copy protection, I would open the sector with the read error on the original disk, swap out for my mostly complete copy, and then write the disk error to that sector. I always thought it was kind of weird that I could write an unreadable error, but it seemed to work most of the time.
Re:Cracking BurgerTime, a 1982 game on a floppy disk by delinka on Sunday January 03, 2016 @09:04AM (#10830623)
I think the ultimate problem with emulation is the disk image: how do you image a disk with these subtle timing errors? The default behavior of the software operating the drive isn't aware of half tracks; every vendor uses different tricks so you don't know which 'timing errors' to activate; etc.
Re:Cracking BurgerTime, a 1982 game on a floppy disk by david-given on Sunday January 03, 2016 @12:01PM (#10831248)
Go look into Kryoflux:

http://www.kryoflux.com/?page=kf_features

It's a USB floppy controller which allows you to image the raw magnetic state of the disk (subject to head step and width). It allows you to record the disk and then try to figure out what the format is. It's good enough to allow you to read CLV disks, such as Mac floppies, from an image taken from a CAV drive, such as a PC one. I don't know whether it supports half tracks --- probably --- but it will certainly support all the weird timing error tricks.

It's not what I would call user friendly but once you've figured it out the results are magical. I was able to image an ancient BBC Micro floppy disk once and then spend ages figuring out how to parse the sector layout and encoding density working with just the image. Not only does this avoid having to keep working with the fragile disk, but it's way faster!

Re:Cracking BurgerTime, a 1982 game on a floppy disk by trav4225 on Sunday January 03, 2016 @03:39AM (#10829952)
This.
Re:Cracking BurgerTime, a 1982 game on a floppy disk by jmount on Sunday January 03, 2016 @11:24AM (#10831094)
The problem is a lot of the age machines (Apple II in particular) had a lot of direct control over the disk hardware. So they could move the head in "half track" increments (reading from positions that potentially interfere with standard disk positions) and it is uncertain what on the physical disk is the intended image without somewhat knowing how the drive head is scheduled to move. Obviously something more sophisticated than a drive of the time could image the whole floppy (and one could simulate a drive over that)- but using a drive of the time isn't enough to make usable images in all cases. I think the software that tried to do so were called "nibblers" or "nibble editors", but it has been a long time.
Re:Cracking BurgerTime, a 1982 game on a floppy disk by MagerValp on Sunday January 03, 2016 @01:03PM (#10831473)
This is actually not a problem today, see e.g. the ipf image format and hardware such as KryoFlux:

http://info-coach.fr/atari/documents/_mydoc/IPF-Documentatio... http://www.archiveteam.org/index.php?title=Rescuing_Floppy_D...

Re:Cracking BurgerTime, a 1982 game on a floppy disk by JoshTriplett on Monday January 04, 2016 @02:49AM (#10834457)
"Under MAME license" is unfortunately a showstopper for FOSS. Particularly unfortunate because MAME itself has started the process of moving away from that license and towards a FOSS license (see https://github.com/mamedev/mame/blob/master/README.md#licens...).

Do you know if the authors of that code would consider releasing it under a FOSS-compatible license (e.g. MIT, LGPL, or GPL, depending on preferences about copyleft)? Failing that, do you know if a FOSS library exists to read and write the IPF image format?

Re:Cracking BurgerTime, a 1982 game on a floppy disk by jmount on Thursday January 07, 2016 @02:16PM (#10860029)
Neat. I knew a superior drive could copy everything, I didn't know this had become common.