Stolen From Apple
folklore.org
folklore.org
A lot of arcade videogames have similar things, like the ones that were in Robotron:2084 and Sinistar. Popular arcade titles were counterfeited all the time, this was done as a safety measure if it ever came down to a courtroom verification of the code.
Konami for example saw that pirates usually erased their logo from the boot sequence so what they did is insert some code that detected when this happened and modified the game accordingly.
One case was the TMNT game for the NES which when pirated set itself in a ultra-hard mode that was impossible to beat since the final boss keep replenishing its energy.
http://earthboundcentral.com/2011/05/earthbounds-copy-protec...
The article claims that it would only happen to experienced ROM hackers, but I could easily see some lazy bootleggers only fixing the first copy protection check without completely testing the game and selling the half-broken result to some hapless kid.
Physically, custom carts could easily be made. To prevent this (from a purely legal standpoint) Nintendo made it so the GBA internal ROM was looking for specific data (validated by hash of sorts) on the cart, or it would reject it and refuse to boot. This data happened to be the (copyrighted) logo displayed on boot, hence it made unapproved carts either unbootable or illegal.
"What is the fourth word from the second paragraph on page 13?"
Presumably you didn't have access to a copy machine if you were stealing software back then...
In any case, thanks for reviving some great memories!
I imagine hardware manufacturers similarly incorporate some form of identifying macros these days. Of course, most people who buy clones wouldn't really care, but at least the publishers of those clones would be wise to avoid bringing too much attention... Unless they're in a country that has very lax copyright enforcement.
$ cat dsmos.c
main() { puts(-16 * 4096 + 0x1600); }
$ gcc -o dsmos dsmos.c
$ ./dsmos
Your karma check for today: There once was was a user that whined his existing OS was so blind, he'd do better to pirate an OS that ran great but found his hardware declined. Please don't steal Mac OS! Really, that's way uncool. (C) Apple Computer, Inc.U??VWS?5P
From the excellent:
http://www.osxbook.com/book/bonus/chapter7/binaryprotection/
On Mountain Lion.
cat "/System/Library/Extensions/Dont Steal Mac OS X.kext/LICENSE"cat "/System/Library/Extensions/Dont Steal Mac OS X.kext/LICENSE" Copyright (c) 2006,2009 Apple Inc. All rights reserved.
The purpose of this Apple software is to protect Apple copyrighted materials from unauthorized copying and use. You may not copy, modify, reverse engineer, publicly display, publicly perform, sublicense, transfer or redistribute this software, in whole or in part. If you have obtained a copy of this Apple software and do not have a valid license from Apple to use it, please immediately destroy or delete it from your computer.
I think you actually can do some of those things legally, right?
% kextstat | grep Steal
99 0 0xffffff7f81afc000 0x5000 0x5000 com.apple.Dont_Steal_Mac_OS_X (7.0.0) <74 7 4 3 1>http://webcache.googleusercontent.com/search?q=cache%3Ahttp%...
In 1980, a company called Franklin Computer produced a clone of the Apple II called the Franklin Ace, designed to run the same software. They copied almost every detail of the Apple II, including all of its ROM based software and all the documentation, and sold it at a lower price than Apple. We even found a place in the manual where they forgot to change "Apple" to "Ace". Apple was infuriated, and sued Franklin. They eventually won, and forced Franklin to withdraw the Ace from the market.
Even though Apple won the case, it was pretty scary for a while, and it wasn't clear until the end that the judge would rule in Apple's favor - Franklin argued that they had a right to copy the Apple II ROMs, since it was just a "functional mechanism" necessary for software compatibility. We anticipated that someone might try a similar trick with the Macintosh someday. If they were clever enough (which Franklin wasn't), they could disguise the code (say by systematically permuting some registers) so it wouldn't look that similar at the binary level. We thought that we better take some precautions.
Steve decided that if a company copied the Mac ROM into their computer, he would like to be able to do a demo during the trial, where he could type a few keystokes into an unmodified infringing machine, and have a large "Stolen From Apple" icon appear on its screen. The routines and data to accomplish that would have to be incorporated into our ROM in a stealthy fashion, so the cloners wouldn't know how to find or remove it.
It was tricky enough to be a fun project. Susan designed a nice "Stolen from Apple" icon, featuring prison bars. Steve Capps had recently come up with a simple scheme for compressing ROM-based icons to save space, so we compressed the icon using his technique, which not only reduced the overhead but also made it much harder to detect the icon. Finally, we wrote a tiny routine to decompress the icon, scale it up and display it on the screen. We hid it in the middle of some data tables, so it would be hard to spot when disassembling the ROM.
All you had to do to invoke it is enter the debugger and type a 6 digit hexadecimal address followed by a "G", which meant execute the routine at that address. We demoed it for Steve and he liked it. We were kind of hoping someone would copy the ROM just so we could show off our foresight.
As far as I know, no one ever did copy the ROM in a commercial project, so it wasn't really necessary, but it did create some intrigue for a while. We let it slip that there was a "stolen from Apple" icon hidden in there somewhere, partially to deter people from copying the ROM. At least one hacker became moderately obsessed with trying to find it.
Steve Jasik was the author of the MacNosy disassembler/debugger, which could be used to create pseudo-source for the ROM. He found out about the "stolen from Apple" icon pretty early on, and became determined to isolate it. He lived in Palo Alto, so I would occasionally bump into him, and he would ask me for hints or tell me his latest theory about how it was concealed, which was invariably wrong.
This went on for two or three years, before he finally cracked it: I ran into him and he had it nailed, telling me about the compressed icon and the address of the display routine. I congratulated him, but was never sure if he figured it out himself or if someone with access to the source code told him.
"As far as I know, no one ever did copy the ROM in a commercial project, so it wasn't really necessary"
Not to belittle the work, but this is exactly the sort of response I expected of Jobs.
As you say "It was tricky enough to be a fun project" so kudos to all but, really, this smacks of paranoia.
It's a cute story, but if a cloner was dumb, he'd copy the the ROM as is and wouldn't care if the icon was hidden or not. A smarter cloner would tweak the code and the resulting ROM image would've likely had different offsets, so typing "<hex-address> G" in front of a judge simply wouldn't work. It doesn't really smacks of paranoia, but it does look like something Steve Jobs would've insisted on.
Not paranoid in the usual definition, but quite pertinent to the Jobs ideal.
I could see a really compelling demo where they bring out the machine still in the shrinkwrapped box, open it in front of the court, turn it on, and hit the register.
http://en.wikipedia.org/wiki/Apple_ProDOS#Unlicensed_Apple_I...
Useless doesn't mean the same thing as never used.
Some might say the best security systems are the ones the thieves don't know are there.
Some might say that thieves should know what security systems may be there... I know if I was a thief I'd avoid stealing smart phones all together!
The best thieves already know what security systems are in place, the real battle is making sure they are actually secure.
That's what I get for deriding the wisdom of almighty Big-Jobs!
What, in particular, did you dis-agree with?
https://news.ycombinator.com/item?id=5532040
https://news.ycombinator.com/item?id=5532358
https://news.ycombinator.com/item?id=5532380
and let’s see if you get the same reaction for deriding the wisdom of the almighty Kōzuki-San.
I will certainly take time to refresh, and reflect on other's input from now on, at least for 5 or 10 minutes.
I get "antsy" easily :-) Sorry.
http://www.romitaman.com/Images/Category_2/subcat_1532/SpyMa...
Not really all that paranoid. Not a large investment for a possible huge payoff later. Also, this was the kind of thing that Capps loved to do; probably took him an hour or two one evening.
The Magic Sac wasn't supposed to run with EEPROMs -- in theory you had to obtain a real Mac ROM from somewhere -- but all you really had to do was clip a pin on a 27256 and the 'Sac wouldn't know the difference.
> this smacks of paranoia
Counterpoint: Isn't company-wide email randomization similarly paranoid or self-defeating? If so, at least he's in good company (Mark Zuckerberg and Elon Musk have used this tactic).
"UPDATE: In a version of the memo I first posted, there was a repeated paragraph, with slight differences. This might have been a software error–several versions I got of this entire memo had different punctuation in various places." --http://allthingsd.com/20090402/the-entire-facebook-goodbye-g...
To get it to run ProDOS we had to reburn the EPROM on that sucker :-): http://en.wikipedia.org/wiki/Apple_ProDOS#Unlicensed_Apple_I...
There's a similar mechanism in OSX to this day: http://www.projectosx.com/forum/index.php?showtopic=1320