$ 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>