Software cracking

From HandWiki
Revision as of 22:18, 6 February 2024 by John Marlo (talk | contribs) (simplify)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Modification of software, often to use it for free

Software cracking (known as "breaking" mostly in the 1980s[1]) is an act of removing copy protection from a software.[2] Copy protection can be removed by applying a specific crack. A crack can mean any tool that enables breaking software protection, a stolen product key, or guessed password. Cracking software generally involves circumventing licensing and usage restrictions on commercial software by illegal methods. These methods can include modifying code directly through disassembling and bit editing, sharing stolen product keys, or developing software to generate activation keys.[3] Examples of cracks are: applying a patch or by creating reverse-engineered serial number generators known as keygens, thus bypassing software registration and payments or converting a trial/demo version of the software into fully-functioning software without paying for it.[4] Software cracking contributes to the rise of online piracy where pirated software is distributed to end-users[2] through filesharing sites like BitTorrent, One click hosting (OCH), or via Usenet downloads, or by downloading bundles of the original software with cracks or keygens.[4]

Some of these tools are called keygen, patch, loader, or no-disc crack. A keygen is a handmade product serial number generator that often offers the ability to generate working serial numbers in your own name. A patch is a small computer program that modifies the machine code of another program. This has the advantage for a cracker to not include a large executable in a release when only a few bytes are changed.[5] A loader modifies the startup flow of a program and does not remove the protection but circumvents it.[6][7] A well-known example of a loader is a trainer used to cheat in games.[8] Fairlight pointed out in one of their .nfo files that these type of cracks are not allowed for warez scene game releases.[9][6][10] A nukewar has shown that the protection may not kick in at any point for it to be a valid crack.[11]

Software cracking is closely related to reverse engineering because the process of attacking a copy protection technology, is similar to the process of reverse engineering.[12] The distribution of cracked copies is illegal in most countries. There have been lawsuits over cracking software.[13] It might be legal to use cracked software in certain circumstances.[14] Educational resources for reverse engineering and software cracking are, however, legal and available in the form of Crackme programs.

History

Software are inherently expensive to produce but cheap to duplicate and distribute. Therefore, software producers generally tried to implement some form of copy protection before releasing it to the market. In 1984, Laind Huntsman, the head of software development for Formaster, a software protection company, commented that "no protection system has remained uncracked by enterprising programmers for more than a few months".[2] In 2001, Dan S. Wallach, a professor from Rice University, argued that "those determined to bypass copy-protection have always found ways to do so – and always will".[15]

Most of the early software crackers were computer hobbyists who often formed groups that competed against each other in the cracking and spreading of software. Breaking a new copy protection scheme as quickly as possible was often regarded as an opportunity to demonstrate one's technical superiority rather than a possibility of money-making. Software crackers usually did not benefit materially from their actions and their motivation was the challenge itself of removing the protection.[2] Some low skilled hobbyists would take already cracked software and edit various unencrypted strings of text in it to change messages a game would tell a game player, often something considered vulgar. Uploading the altered copies on file sharing networks provided a source of laughs for adult users. The cracker groups of the 1980s started to advertise themselves and their skills by attaching animated screens known as crack intros in the software programs they cracked and released.[16] Once the technical competition had expanded from the challenges of cracking to the challenges of creating visually stunning intros, the foundations for a new subculture known as demoscene were established. Demoscene started to separate itself from the illegal "warez scene" during the 1990s and is now regarded as a completely different subculture. Many software crackers have later grown into extremely capable software reverse engineers; the deep knowledge of assembly required in order to crack protections enables them to reverse engineer drivers in order to port them from binary-only drivers for Windows to drivers with source code for Linux and other free operating systems. Also because music and game intro was such an integral part of gaming the music format and graphics became very popular when hardware became affordable for the home user.

With the rise of the Internet, software crackers developed secretive online organizations. In the latter half of the nineties, one of the most respected sources of information about "software protection reversing" was Fravia's website.

In 2017, a group of software crackers started a project to preserve Apple II software by removing the inherent Apple II copy protection.[17]

+HCU

The High Cracking University (+HCU) was founded by Old Red Cracker (+ORC), considered a genius of reverse engineering and a legendary figure in Reverse Code Engineering (RCE), to advance research into RCE. He had also taught and authored many papers on the subject, and his texts are considered classics in the field and are mandatory reading for students of RCE.[18]

The addition of the "+" sign in front of the nickname of a reverser signified membership in the +HCU. Amongst the students of +HCU were the top of the elite Windows reversers worldwide.[18] +HCU published a new reverse engineering problem annually and a small number of respondents with the best replies qualified for an undergraduate position at the university.[18]

+Fravia was a professor at +HCU. Fravia's website was known as "+Fravia's Pages of Reverse Engineering" and he used it to challenge programmers as well as the wider society to "reverse engineer" the "brainwashing of a corrupt and rampant materialism". In its heyday, his website received millions of visitors per year and its influence was "widespread".[18] On his site, +Fravia also maintained a database of the tutorials generated by +HCU students for posterity.[19]

Nowadays most of the graduates of +HCU have migrated to Linux and few have remained as Windows reversers. The information at the university has been rediscovered by a new generation of researchers and practitioners of RCE who have started new research projects in the field.[18]

Methods

The most common software crack is the modification of an application's binary to cause or prevent a specific key branch in the program's execution. This is accomplished by reverse engineering the compiled program code using a debugger such as SoftICE,[20] OllyDbg, GDB, or MacsBug until the software cracker reaches the subroutine that contains the primary method of protecting the software (or by disassembling an executable file with a program such as IDA).[21] The binary is then modified using the debugger or a hex editor such as HIEW[22] or monitor in a manner that replaces a prior branching opcode with its complement or a NOP opcode so the key branch will either always execute a specific subroutine or skip over it. Almost all common software cracks are a variation of this type. A region of code that must not be entered is often called a "bad boy" while one that should be followed is a "good boy".[23]

Proprietary software developers are constantly developing techniques such as code obfuscation, encryption, and self-modifying code to make binary modification increasingly difficult.[24] Even with these measures being taken, developers struggle to combat software cracking. This is because it is very common for a professional to publicly release a simple cracked EXE or Retrium Installer for public download, eliminating the need for inexperienced users to crack the software themselves.

A specific example of this technique is a crack that removes the expiration period from a time-limited trial of an application. These cracks are usually programs that alter the program executable and sometimes the .dll or .so linked to the application and the process of altering the original binary files is called patching.[12] Similar cracks are available for software that requires a hardware dongle. A company can also break the copy protection of programs that they have legally purchased but that are licensed to particular hardware, so that there is no risk of downtime due to hardware failure (and, of course, no need to restrict oneself to running the software on bought hardware only).

Another method is the use of special software such as CloneCD to scan for the use of a commercial copy protection application. After discovering the software used to protect the application, another tool may be used to remove the copy protection from the software on the CD or DVD. This may enable another program such as Alcohol 120%, CloneDVD, Game Jackal, or Daemon Tools to copy the protected software to a user's hard disk. Popular commercial copy protection applications which may be scanned for include SafeDisc and StarForce.[25]

In other cases, it might be possible to decompile a program in order to get access to the original source code or code on a level higher than machine code. This is often possible with scripting languages and languages utilizing JIT compilation. An example is cracking (or debugging) on the .NET platform where one might consider manipulating CIL to achieve one's needs. Java's bytecode also works in a similar fashion in which there is an intermediate language before the program is compiled to run on the platform dependent machine code.[26]

Advanced reverse engineering for protections such as SecuROM, SafeDisc, StarForce, or Denuvo requires a cracker, or many crackers to spend much more time studying the protection, eventually finding every flaw within the protection code, and then coding their own tools to "unwrap" the protection automatically from executable (.EXE) and library (.DLL) files.

There are a number of sites on the Internet that let users download cracks produced by warez groups for popular games and applications (although at the danger of acquiring malicious software that is sometimes distributed via such sites).[27] Although these cracks are used by legal buyers of software, they can also be used by people who have downloaded or otherwise obtained unauthorized copies (often through P2P networks).

Software piracy

Software cracking led to the distribution of pirated software around the world (software piracy). It was estimated that the United States lost US$2.3 billion in business application software in 1996. Software piracy rates were especially prevalent in African, Asian, East European, and Latin American countries. In certain countries such as Indonesia, Pakistan, Kuwait, China, and El Salvador,[28] 90% of the software used was pirated.[29]

See also

References

  1. Kevelson, Morton (October 1985). "Isepic". Ahoy!: pp. 71–73. https://archive.org/stream/Ahoy_Issue_22_1985-10_Ion_International_US#page/n71/mode/2up. "The origin of the term probably lies in the activity burglars in the still of the night." 
  2. 2.0 2.1 2.2 2.3 "What Motivates Software Crackers?". Sigi Goode and Sam Cruise, Australian National University, Journal of Business Ethics (2006). http://people.anu.edu.au/sigi/goode_jbe.pdf. 
  3. Tulloch, Mitch (2003). Microsoft Encyclopedia of Security. Redmond, Washington: Microsoft Press. p. 68. ISBN 0735618771. http://examples.oreilly.de/english_examples/9780735622180/cd_contents/Encyclopedia/EncySecur.pdf. Retrieved July 20, 2014. 
  4. 4.0 4.1 Kammerstetter, Markus; Platzer, Christian; Wondracek, Gilbert (2012-10-16). "Vanity, cracks and malware" (in en). Proceedings of the 2012 ACM conference on Computer and communications security. Raleigh North Carolina USA: ACM. pp. 809–820. doi:10.1145/2382196.2382282. ISBN 978-1-4503-1651-4. https://dl.acm.org/doi/10.1145/2382196.2382282. 
  5. Craig, Paul; Ron, Mark (April 2005). "Chapter 4: Crackers". in Burnett, Mark. Software Piracy Exposed - Secrets from the Dark Side Revealed. Publisher: Andrew Williams, Page Layout and Art: Patricia Lupien, Acquisitions Editor: Jaime Quigley, Copy Editor: Judy Eby, Technical Editor: Mark Burnett, Indexer: Nara Wood, Cover Designer: Michael Kavish. United States of America: Syngress Publishing. pp. 75–76. doi:10.1016/B978-193226698-6/50029-5. ISBN 1-932266-98-4. https://archive.org/details/softwarepiracyex0000crai/page/75. 
  6. 6.0 6.1 FLT (2013-01-22). "The_Sims_3_70s_80s_and_90s_Stuff-FLT". http://www.srrdb.com/release/details/The_Sims_3_70s_80s_and_90s_Stuff-FLT. "This can be the only reason you have come to the conclusion that a modified startup flow is the same like the imitated behavior of a protection, like an EMU does it." 
  7. Shub-Nigurrath [ARTeam]; ThunderPwr [ARTeam] (January 2006). "Cracking with Loaders: Theory, General Approach, and a Framework". CodeBreakers Magazine (Universitas-Virtualis Research Project) 1 (1). "A loader is a program able to load in memory and running another program.". 
  8. Nigurrath, Shub (May 2006). "Guide on how to play with processes memory, writing loaders, and Oraculumns". CodeBreakers Magazine (Universitas-Virtualis Research Project) 1 (2). 
  9. FLT (2013-09-29). "Test_Drive_Ferrari_Legends_PROPER-FLT". http://www.srrdb.com/release/details/Test_Drive_Ferrari_Legends_PROPER-FLT. "Test.Drive.Ferrari.Racing.Legends-SKIDROW was released with a "Loader" and not a cracked exe. This is why you see the original exe renamed to "TDFerrari_o.exe". As this is not allowed and in this case considerably slows down the game with Xlive messages while starting and playing the game, you can see why we have included a proper cracked." 
  10. SKIDROW (2013-01-21). "Test.Drive.Ferrari.Racing.Legends.Read.Nfo-SKIDROW". http://www.srrdb.com/release/details/Test.Drive.Ferrari.Racing.Legends.Read.Nfo-SKIDROW. "Yes our "method" is a loader and our competitors have used the same method for "cracking" xlive games like this." 
  11. "Batman.Arkham.City-FiGHTCLUB nukewar". 2011-12-02. https://pre.corrupt-net.org/?qid=D02. "UNNUKED: game.plays.full no.issues crack.is.fine no.single.byte.patch.used protection.bypass.means.not.active.means.removed protection.does.not.kick.in.at.any.point this.or.removal.makes.no.difference [ZoNeNET]" 
  12. 12.0 12.1 Eilam, Eldad (2005). Reversing : secrets of reverse engineering. Elliot J. Chikofsky. Indianapolis, IN: Wiley. ISBN 0-7645-9768-X. OCLC 80242141. https://www.worldcat.org/oclc/80242141. 
  13. Cheng, Jacqui (2006-09-27). "Microsoft files lawsuit over DRM crack". https://arstechnica.com/business/2006/09/7849/. 
  14. Fravia (November 1998). "Is reverse engineering legal?". http://www.woodmann.com/fravia/legal.htm. 
  15. Wallach, D.S. (October 2001). "Copy protection technology is doomed". Computer 34 (10): 48–49. doi:10.1109/2.955098. https://ieeexplore.ieee.org/document/955098. Retrieved March 10, 2023. 
  16. Reunanen, Markku; Wasiak, Patryk; Botz, Daniel (2015-03-26). "Crack Intros: Piracy, Creativity and Communication" (in en). International Journal of Communication 9: 20. ISSN 1932-8036. https://ijoc.org/index.php/ijoc/article/view/3731/1345. Retrieved June 17, 2022. 
  17. Pearson, Jordan (24 July 2017). "Programmers Are Racing to Save Apple II Software Before It Goes Extinct". Motherboard. https://motherboard.vice.com/en_us/article/gv39mx/programmers-are-racing-to-save-apple-ii-software-before-it-goes-extinct. 
  18. 18.0 18.1 18.2 18.3 18.4 Cyrus Peikari; Anton Chuvakin (12 January 2004). Security Warrior. "O'Reilly Media, Inc.". p. 31. ISBN 978-0-596-55239-8. https://archive.org/details/securitywarrior0000peik. 
  19. Vianello, Francesco. "Academy Home Page". https://rdk.deadbsd.org/fravia/71.6.196.237/fravia/academy.htm. 
  20. Ankit, Jain; Jason, Kuo; Jordan, Soet; Brian, Tse (April 2007). Software Cracking (April 2007). The University of British Columbia - Electrical and Computer Engineering. https://courses.ece.ubc.ca/cpen442/previous_years/2007_1_spring/modules/term_project/reports/2007/software_cracking.pdf. Retrieved 27 January 2018. 
  21. Cerven, Pavol (2002). Crackproof Your Software: Protect Your Software Against Crackers. No Starch Press. ISBN 1-886411-79-4. 
  22. "Protecting Software Codes By Guards". Hoi Chang, Mikhail J. Atallah, CERIAS, Purdue University (2001). https://www.cerias.purdue.edu/assets/pdf/bibtex_archive/bibtex_archive/2001-49.pdf. 
  23. "Reversing a Self-Modifying Binary with radare2". 2018-01-14. https://www.megabeets.net/reversing-a-self-modifying-binary-with-radare2/. 
  24. Ferguson, Justin; Kaminsky, Dan (2008). Reverse engineering code with IDA Pro. Burlington, MA: Syngress Pub. ISBN 978-0-08-055879-0. OCLC 272383172. https://www.worldcat.org/oclc/272383172. Retrieved June 8, 2022. 
  25. "Backup Protected Game CD/DVDs". http://m0001.gamecopyworld.com/games/gcw_cd-backup.shtml. 
  26. Canzanese, Raymond J. Jr.; Oyer, Matthew; Mancoridis, Spiros; Kam, Moshe. "A Survey of Reverse Engineering Tools for the 32-Bit Microsoft Windows Environment". College of EngineeringDrexel University. https://www.cs.drexel.edu/~spiros/teaching/CS675/asmrceFINAL.pdf. 
  27. McCandless, David (1997-04-01). "Warez Wars". Wired. ISSN 1059-1028. https://www.wired.com/1997/04/ff-warez/. Retrieved 2020-02-04. 
  28. Gopal, Ram D.; Sanders, G. Lawrence (September 2000). "Global software piracy: you can't get blood out of a turnip" (in en). Communications of the ACM 43 (9): 82–89. doi:10.1145/348941.349002. ISSN 0001-0782. 
  29. Gopal, Ram D.; Sanders, G. Lawrence (1998). "International Software Piracy: Analysis of Key Issues and Impacts". Information Systems Research 9 (4): 380–397. doi:10.1287/isre.9.4.380. ISSN 1047-7047. https://www.jstor.org/stable/23011033.