<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>CrackerCast Podcast - MrCracker.com - all things hacking &#187; Reverse Engineering</title>
	<atom:link href="http://mrcracker.com/category/reverse-engineering/feed/" rel="self" type="application/rss+xml" />
	<link>http://mrcracker.com</link>
	<description>all things hacking.</description>
	<lastBuildDate>Tue, 07 Sep 2010 16:46:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.6.3" -->
	<copyright>Copyright &#xA9; 2010 CrackerCast Podcast - MrCracker.com - all things hacking </copyright>
	<managingEditor>comments@mrcracker.com (MrCracker.com)</managingEditor>
	<webMaster>comments@mrcracker.com (MrCracker.com)</webMaster>
	<category>Hacking</category>
	<ttl>1440</ttl>
	<image>
		<url>http://mrcracker.com/logos/cig3.gif</url>
		<title>CrackerCast Podcast - MrCracker.com - all things hacking &#187; Reverse Engineering</title>
		<link>http://mrcracker.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle>All things hacking.</itunes:subtitle>
	<itunes:summary>CrackerCast covers news and topics about all things hacking!</itunes:summary>
	<itunes:keywords>hack, hacking, security, hacker, computer security,</itunes:keywords>
	<itunes:category text="Technology" />
	<itunes:category text="Technology">
		<itunes:category text="Tech News" />
	</itunes:category>
	<itunes:category text="Technology">
		<itunes:category text="Podcasting" />
	</itunes:category>
	<itunes:author>MrCracker.com</itunes:author>
	<itunes:owner>
		<itunes:name>MrCracker.com</itunes:name>
		<itunes:email>comments@mrcracker.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://mrcracker.com/logos/cig3.gif" />
		<item>
		<title>iPhone Piracy 101: Steps to Prevent it</title>
		<link>http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=iphone-piracy-101-steps-to-prevent-it</link>
		<comments>http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 19:05:32 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Headline]]></category>
		<category><![CDATA[Reverse Engineering]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone piracy]]></category>
		<category><![CDATA[Piracy]]></category>

		<guid isPermaLink="false">http://mrcracker.com/?p=476</guid>
		<description><![CDATA[Now that you know how iPhone piracy works, you probably want to know how you can prevent it. This article will tell you that, but please note this. This is getting published for all to see, including the people that want to crack your application. If I provide you with code or a method to do a certain check in here, do not just copy it verbatim, tweak it a little so that the crackers don’t know exactly what to look for.]]></description>
			<content:encoded><![CDATA[<p><em>**This is a guest article by Will Strafach. Unlike you, this person got off his ass and earned some $$ writing about what he loves. He has accomplished something with his life, he has written for MrCracker.com . What have you done? <a href="../2009/05/2009/05/2009/05/write-for-mrc/">Click Here to start.</a>**</em></p>
<p><a href="http://mrcracker.com/wp-content/uploads/2009/06/iphonepirate.png"><img class="alignleft size-thumbnail wp-image-483" style="margin: 10px;" title="iphonepirate" src="http://mrcracker.com/wp-content/uploads/2009/06/iphonepirate-150x150.png" alt="iphonepirate" width="150" height="150" /></a><br style="height: 1em;" />Now that you know how iPhone piracy works, (if not, click <a href="http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/" target="_blank">here</a> to read previous article), you probably want to know how you can prevent it. This article will tell you that, but please note this. This is getting published for all to see, including the people that want to crack your application. If I provide you with code or a method to do a certain check in here, do not just copy it verbatim, tweak it a little so that the crackers don’t know exactly what to look for.<br />
<br style="height: 1em;" />Since we know that crackers are going to crack your app anyway, we do not want to look at this in a “we need to stop them” way. You must know that it will happen. We need to think of this in a “hold them off as long as possible” way. The first step would be obfuscation, to confuse them. Save the code attached to the end of this post and save it In a file called “<strong>iPhoneOS_swi.S</strong>”. Include it in one of your projects and, for example, you want a discrete exit(), simply call <strong>swi_exit();</strong> from your code. Crackers will soon catch on to this, but it is at least better then flat out and obviously calling exit(). This will at least cause some confusion. If you want to try further obfuscation, use <strong>swi_exit_obfuscated()</strong>, but change it around a bit so people can’t do a simple byte search to patch it. I have not tested that one yet, but in theory it should change the “<strong>NOP</strong>” to “<strong>SWI 0&#215;11</strong>” in memory. Usually, kernel restrictions block this type of obfuscation, but funnily enough the patch that is needed for WinterBoard and such to work, is what allows this trick to work, in theory. Another less obvious thing you can check is if the app is running as root, which it normally should not be unless a cracker was running it in GDB via SSH like they normally do. So use something like the <strong>swi_getgid() </strong>to check if it is running as 0, which is root, and if so <strong>swi_exit()</strong>. Again, I must stress to play with this a bit, because if you do it exactly then it will be obvious for the crackers, as I can safely say they will read this article.<br />
<br style="height: 1em;" />Now, above I am talking about how to exit the app without the cracker seeing the call directly in IDA, but you are probably thinking, “But chronic, in what cases would I actually need to exit the application? What kind of checks can I do?”. This is where things get a little shady. If I specifically give out checks to use, they are useless since they are public and they will be looked for. Instead, I will give you some tips&#8230;<br />
<br style="height: 1em;" /></p>
<ol>
<li>stringWithFormat: is your friend. Use it to construct a string in a buffer letter by letter instead of having the whole string there in your code, easily searchable in IDA Pro. It is comparable to the sprintf(); of Objective-C, you could almost say.</li>
<li> Excessively use stringWithFormat: to “obfuscate” strings that do other things in your application, even the text of an AlertView or something. The goal would be to annoy the cracker when looking for all of the calls to stringWithFormat:, maybe even to the point where he would not try to take that shortcut if you use it enough times for legitimate strings.</li>
<li> Keep in mind that Info.plist is modified. You can check the size, the existence of the “SignerIdentity” key…use your imagination. The crackers /need/ to modify this file, so use that to your advantage.</li>
</ol>
<pre class="brush: cpp">
/*
* iPhoneOS_swi.S
*
* Created by Will Strafach on 5/23/09
* Copyright 2009 Chronic Dev. All rights reserved.
*
* Mini-License: Keep this header here, do not modify it or anything,
* and you can use this in your projects. Also, I grant MrCracker.com
* permission to use this in their &quot;iPhone Piracy 101&quot; article.
*/

.global _swi_exit
.global _swi_exit_obfuscated
.global _syscall_exit
.global _syscall_chmod
.global _syscall_chown
.global _syscall_getpid
.global _syscall_getuid
.global _syscall_geteuid
.global _syscall_access
.global _syscall_getegid
.global _syscall_getgid

_swi_exit:
SWI 0x11
BX LR

_swi_exit_obfuscated:
MOV R0, #0x11
STRB R0, [PC,#0x10]
MOV R0, #0x00
STRB R0, [PC,#0x8]
STRB R0, [PC,#0x4]
MOV R0, #0xEF
STRB R0, [PC,#-0x4]
NOP
BX LR

_syscall_exit:
MOV R12, #1
SWI 0x80
BX LR

_syscall_chmod:
MOV R12, #15
SWI 0x80
BX LR

_syscall_chown:
MOV R12, #16
SWI 0x80
BX LR

_syscall_getpid:
MOV R12, #20
SWI 0x80
BX LR

_syscall_getuid:
MOV R12, #24
SWI 0x80
BX LR

_syscall_geteuid:
MOV R12, #25
SWI 0x80
BX LR

_syscall_access:
MOV R12, #33
SWI 0x80
BX LR

_syscall_getegid:
MOV R12, #43
SWI 0x80
BX LR

_syscall_getgid:
MOV R12, #47
SWI 0x80
BX LR
</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=iPhone+Piracy+101%3A+Steps+to+Prevent+it+-+http://bit.ly/4b8og2&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;t=iPhone+Piracy+101%3A+Steps+to+Prevent+it" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;title=iPhone+Piracy+101%3A+Steps+to+Prevent+it" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;title=iPhone+Piracy+101%3A+Steps+to+Prevent+it" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;title=iPhone+Piracy+101%3A+Steps+to+Prevent+it" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;title=iPhone+Piracy+101%3A+Steps+to+Prevent+it" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;n=iPhone+Piracy+101%3A+Steps+to+Prevent+it&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=iPhone+Piracy+101%3A+Steps+to+Prevent+it&amp;body=Link: http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Now%20that%20you%20know%20how%20iPhone%20piracy%20works%2C%20you%20probably%20want%20to%20know%20how%20you%20can%20prevent%20it.%20This%20article%20will%20tell%20you%20that%2C%20but%20please%20note%20this.%20This%20is%20getting%20published%20for%20all%20to%20see%2C%20including%20the%20people%20that%20want%20to%20crack%20your%20application.%20If%20I%20provide%20you%20with%20code%20or%20a%20method%20to%20do%20a%20certain%20check%20in%20here%2C%20do%20not%20just%20copy%20it%20verbatim%2C%20tweak%20it%20a%20little%20so%20that%20the%20crackers%20don%E2%80%99t%20know%20exactly%20what%20to%20look%20for." rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;t=iPhone+Piracy+101%3A+Steps+to+Prevent+it" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;t=iPhone+Piracy+101%3A+Steps+to+Prevent+it" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=iPhone+Piracy+101%3A+Steps+to+Prevent+it&amp;body=Link: http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Now%20that%20you%20know%20how%20iPhone%20piracy%20works%2C%20you%20probably%20want%20to%20know%20how%20you%20can%20prevent%20it.%20This%20article%20will%20tell%20you%20that%2C%20but%20please%20note%20this.%20This%20is%20getting%20published%20for%20all%20to%20see%2C%20including%20the%20people%20that%20want%20to%20crack%20your%20application.%20If%20I%20provide%20you%20with%20code%20or%20a%20method%20to%20do%20a%20certain%20check%20in%20here%2C%20do%20not%20just%20copy%20it%20verbatim%2C%20tweak%20it%20a%20little%20so%20that%20the%20crackers%20don%E2%80%99t%20know%20exactly%20what%20to%20look%20for." rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;submitHeadline=iPhone+Piracy+101%3A+Steps+to+Prevent+it&amp;submitSummary=Now%20that%20you%20know%20how%20iPhone%20piracy%20works%2C%20you%20probably%20want%20to%20know%20how%20you%20can%20prevent%20it.%20This%20article%20will%20tell%20you%20that%2C%20but%20please%20note%20this.%20This%20is%20getting%20published%20for%20all%20to%20see%2C%20including%20the%20people%20that%20want%20to%20crack%20your%20application.%20If%20I%20provide%20you%20with%20code%20or%20a%20method%20to%20do%20a%20certain%20check%20in%20here%2C%20do%20not%20just%20copy%20it%20verbatim%2C%20tweak%20it%20a%20little%20so%20that%20the%20crackers%20don%E2%80%99t%20know%20exactly%20what%20to%20look%20for.&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;title=iPhone+Piracy+101%3A+Steps+to+Prevent+it&amp;desc=Now%20that%20you%20know%20how%20iPhone%20piracy%20works%2C%20you%20probably%20want%20to%20know%20how%20you%20can%20prevent%20it.%20This%20article%20will%20tell%20you%20that%2C%20but%20please%20note%20this.%20This%20is%20getting%20published%20for%20all%20to%20see%2C%20including%20the%20people%20that%20want%20to%20crack%20your%20application.%20If%20I%20provide%20you%20with%20code%20or%20a%20method%20to%20do%20a%20certain%20check%20in%20here%2C%20do%20not%20just%20copy%20it%20verbatim%2C%20tweak%20it%20a%20little%20so%20that%20the%20crackers%20don%E2%80%99t%20know%20exactly%20what%20to%20look%20for." rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;title=iPhone+Piracy+101%3A+Steps+to+Prevent+it" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-friendfeed">
			<a href="http://www.friendfeed.com/share?title=iPhone+Piracy+101%3A+Steps+to+Prevent+it&amp;link=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/" rel="nofollow" class="external" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;title=iPhone+Piracy+101%3A+Steps+to+Prevent+it&amp;srcUrl=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;srcTitle=iPhone+Piracy+101%3A+Steps+to+Prevent+it&amp;snippet=Now%20that%20you%20know%20how%20iPhone%20piracy%20works%2C%20you%20probably%20want%20to%20know%20how%20you%20can%20prevent%20it.%20This%20article%20will%20tell%20you%20that%2C%20but%20please%20note%20this.%20This%20is%20getting%20published%20for%20all%20to%20see%2C%20including%20the%20people%20that%20want%20to%20crack%20your%20application.%20If%20I%20provide%20you%20with%20code%20or%20a%20method%20to%20do%20a%20certain%20check%20in%20here%2C%20do%20not%20just%20copy%20it%20verbatim%2C%20tweak%20it%20a%20little%20so%20that%20the%20crackers%20don%E2%80%99t%20know%20exactly%20what%20to%20look%20for." rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;title=iPhone+Piracy+101%3A+Steps+to+Prevent+it&amp;summary=Now%20that%20you%20know%20how%20iPhone%20piracy%20works%2C%20you%20probably%20want%20to%20know%20how%20you%20can%20prevent%20it.%20This%20article%20will%20tell%20you%20that%2C%20but%20please%20note%20this.%20This%20is%20getting%20published%20for%20all%20to%20see%2C%20including%20the%20people%20that%20want%20to%20crack%20your%20application.%20If%20I%20provide%20you%20with%20code%20or%20a%20method%20to%20do%20a%20certain%20check%20in%20here%2C%20do%20not%20just%20copy%20it%20verbatim%2C%20tweak%20it%20a%20little%20so%20that%20the%20crackers%20don%E2%80%99t%20know%20exactly%20what%20to%20look%20for.&amp;source=CrackerCast Podcast - MrCracker.com - all things hacking" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/&amp;title=iPhone+Piracy+101%3A+Steps+to+Prevent+it" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://mrcracker.com/2009/06/iphone-piracy-101-steps-to-prevent-it/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>iPhone Piracy 101: How it works</title>
		<link>http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=iphone-piracy-101-how-it-works</link>
		<comments>http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/#comments</comments>
		<pubDate>Fri, 29 May 2009 21:58:47 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Headline]]></category>
		<category><![CDATA[Piracy]]></category>
		<category><![CDATA[Reverse Engineering]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone piracy]]></category>

		<guid isPermaLink="false">http://mrcracker.com/?p=470</guid>
		<description><![CDATA[Developing iPhone applications is all the rage now. From the mutli-million dollar software company, to the teenager in his bedroom, it has become a new phenomenon. There are now over one billion application downloads from the Apple App Store, and even more in the unofficial homebrew Cydia Store, which is an application that allows developers to make available, for free or for pay, applications that utilize private calls and libraries. For both though, there is a rising problem for developers. Read more...]]></description>
			<content:encoded><![CDATA[<p><em>**This is a guest article by Will Strafach. Unlike you, this person got off his ass and earned some $$ writing about what he loves. He has accomplished something with his life, he has written for MrCracker.com . What have you done? <a href="../2009/05/2009/05/write-for-mrc/">Click Here to start.</a>**</em></p>
<p><br style="height: 1em;" /><a href="http://mrcracker.com/wp-content/uploads/2009/05/iphone_pirate_2.jpg"><img class="alignleft size-thumbnail wp-image-471" style="margin-left: 10px; margin-right: 10px;" title="iphone_pirate_2" src="http://mrcracker.com/wp-content/uploads/2009/05/iphone_pirate_2-150x150.jpg" alt="iphone_pirate_2" width="150" height="150" /></a> Developing iPhone applications is all the rage now. From the mutli-million dollar software company, to the teenager in his bedroom, it has become a new phenomenon. There are now over one billion application downloads from the Apple App Store, and even more in the unofficial homebrew Cydia Store, which is an application that allows developers to make available, for free or for pay, applications that utilize private calls and libraries. For both though, there is a rising problem for developers. This problem is piracy of their applications, which means people buy the application and patch it to work on the device’s of other people for free. In this article, I will tell you how exactly people pirate the applications, and how you can fight back. Keep in mind that eventually, one way or another, the application will get cracked. Instead of thinking with the mindset, “How can I not let this get cracked?”, it is easier to think like, “How can I prevent this from getting cracked as long as possible?”.<br />
<br style="height: 1em;" />First, someone must buy the application. Normally, applications are encrypted with Apple’s FairPlay DRM software, but crackers have found a way around this. They then use “GNU Debugger”, or “gdb” for short, to run it. This program is available in Cydia. When the application is running, since they are controlling it via gdb, the cracker can dump the decrypted application from memory as it is running. Normally, after this, they stick the decrypted binary in the encrypted file, where the encrypted binary used to be, and then set a value called the “crypt id” from 1 to 0, to allow it to run decrypted. At this point, the application is fully decrypted, despite the intentions of Apple’s Fairplay DRM. Finally, inside of the “.app’ file, the key “SignerIdentity” with the value “Apple iPhone OS Application Signing” is added, to make the system think “It’s decrypted, it’s in the place that AppStore apps go, but it’s OK because this key means it is from Apple”. At this point, if you have added no protections to your application, the cracker is done. They simply upload their crack to a website like rapidshare.com and then distribute it as if they were super cool hackers that knew what they were doing. That’s it. Many applications have now employed additional protections though, like checking if the value “SignerIdentity” is in the Info.plist file, and although this does help, it can still be defeated. All the cracker has to do is search for the “SignerIdentity” string in IDA Pro, and then they can see what refers to it, then allowing them to see your check. The easiest thing they can do is simply patch the string to be “BLAHBLAHBLAH”, because then “SignerIdentity” can be in the plist undisturbed, and I do not think that there is any legit reason for “BLAHBLAHBLAH” to be there anyway.<br />
<br style="height: 1em;" />All in all, most crackers are script kiddies that simply try using GDB to decrypt it, and then give up with anything more complicated than the standard “SignerIdentity” check. Read my upcoming article, “iPhone Piracy 101: Steps to Prevent it” for more advanced techniques you can use to prevent piracy of your application.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=iPhone+Piracy+101%3A+How+it+works+-+http://bit.ly/2RNtz1&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;t=iPhone+Piracy+101%3A+How+it+works" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;title=iPhone+Piracy+101%3A+How+it+works" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;title=iPhone+Piracy+101%3A+How+it+works" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;title=iPhone+Piracy+101%3A+How+it+works" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;title=iPhone+Piracy+101%3A+How+it+works" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;n=iPhone+Piracy+101%3A+How+it+works&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=iPhone+Piracy+101%3A+How+it+works&amp;body=Link: http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Developing%20iPhone%20applications%20is%20all%20the%20rage%20now.%20From%20the%20mutli-million%20dollar%20software%20company%2C%20to%20the%20teenager%20in%20his%20bedroom%2C%20it%20has%20become%20a%20new%20phenomenon.%20There%20are%20now%20over%20one%20billion%20application%20downloads%20from%20the%20Apple%20App%20Store%2C%20and%20even%20more%20in%20the%20unofficial%20homebrew%20Cydia%20Store%2C%20which%20is%20an%20application%20that%20allows%20developers%20to%20make%20available%2C%20for%20free%20or%20for%20pay%2C%20applications%20that%20utilize%20private%20calls%20and%20libraries.%20For%20both%20though%2C%20there%20is%20a%20rising%20problem%20for%20developers.%20Read%20more..." rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;t=iPhone+Piracy+101%3A+How+it+works" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;t=iPhone+Piracy+101%3A+How+it+works" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=iPhone+Piracy+101%3A+How+it+works&amp;body=Link: http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Developing%20iPhone%20applications%20is%20all%20the%20rage%20now.%20From%20the%20mutli-million%20dollar%20software%20company%2C%20to%20the%20teenager%20in%20his%20bedroom%2C%20it%20has%20become%20a%20new%20phenomenon.%20There%20are%20now%20over%20one%20billion%20application%20downloads%20from%20the%20Apple%20App%20Store%2C%20and%20even%20more%20in%20the%20unofficial%20homebrew%20Cydia%20Store%2C%20which%20is%20an%20application%20that%20allows%20developers%20to%20make%20available%2C%20for%20free%20or%20for%20pay%2C%20applications%20that%20utilize%20private%20calls%20and%20libraries.%20For%20both%20though%2C%20there%20is%20a%20rising%20problem%20for%20developers.%20Read%20more..." rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;submitHeadline=iPhone+Piracy+101%3A+How+it+works&amp;submitSummary=Developing%20iPhone%20applications%20is%20all%20the%20rage%20now.%20From%20the%20mutli-million%20dollar%20software%20company%2C%20to%20the%20teenager%20in%20his%20bedroom%2C%20it%20has%20become%20a%20new%20phenomenon.%20There%20are%20now%20over%20one%20billion%20application%20downloads%20from%20the%20Apple%20App%20Store%2C%20and%20even%20more%20in%20the%20unofficial%20homebrew%20Cydia%20Store%2C%20which%20is%20an%20application%20that%20allows%20developers%20to%20make%20available%2C%20for%20free%20or%20for%20pay%2C%20applications%20that%20utilize%20private%20calls%20and%20libraries.%20For%20both%20though%2C%20there%20is%20a%20rising%20problem%20for%20developers.%20Read%20more...&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;title=iPhone+Piracy+101%3A+How+it+works&amp;desc=Developing%20iPhone%20applications%20is%20all%20the%20rage%20now.%20From%20the%20mutli-million%20dollar%20software%20company%2C%20to%20the%20teenager%20in%20his%20bedroom%2C%20it%20has%20become%20a%20new%20phenomenon.%20There%20are%20now%20over%20one%20billion%20application%20downloads%20from%20the%20Apple%20App%20Store%2C%20and%20even%20more%20in%20the%20unofficial%20homebrew%20Cydia%20Store%2C%20which%20is%20an%20application%20that%20allows%20developers%20to%20make%20available%2C%20for%20free%20or%20for%20pay%2C%20applications%20that%20utilize%20private%20calls%20and%20libraries.%20For%20both%20though%2C%20there%20is%20a%20rising%20problem%20for%20developers.%20Read%20more..." rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;title=iPhone+Piracy+101%3A+How+it+works" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-friendfeed">
			<a href="http://www.friendfeed.com/share?title=iPhone+Piracy+101%3A+How+it+works&amp;link=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/" rel="nofollow" class="external" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;title=iPhone+Piracy+101%3A+How+it+works&amp;srcUrl=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;srcTitle=iPhone+Piracy+101%3A+How+it+works&amp;snippet=Developing%20iPhone%20applications%20is%20all%20the%20rage%20now.%20From%20the%20mutli-million%20dollar%20software%20company%2C%20to%20the%20teenager%20in%20his%20bedroom%2C%20it%20has%20become%20a%20new%20phenomenon.%20There%20are%20now%20over%20one%20billion%20application%20downloads%20from%20the%20Apple%20App%20Store%2C%20and%20even%20more%20in%20the%20unofficial%20homebrew%20Cydia%20Store%2C%20which%20is%20an%20application%20that%20allows%20developers%20to%20make%20available%2C%20for%20free%20or%20for%20pay%2C%20applications%20that%20utilize%20private%20calls%20and%20libraries.%20For%20both%20though%2C%20there%20is%20a%20rising%20problem%20for%20developers.%20Read%20more..." rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;title=iPhone+Piracy+101%3A+How+it+works&amp;summary=Developing%20iPhone%20applications%20is%20all%20the%20rage%20now.%20From%20the%20mutli-million%20dollar%20software%20company%2C%20to%20the%20teenager%20in%20his%20bedroom%2C%20it%20has%20become%20a%20new%20phenomenon.%20There%20are%20now%20over%20one%20billion%20application%20downloads%20from%20the%20Apple%20App%20Store%2C%20and%20even%20more%20in%20the%20unofficial%20homebrew%20Cydia%20Store%2C%20which%20is%20an%20application%20that%20allows%20developers%20to%20make%20available%2C%20for%20free%20or%20for%20pay%2C%20applications%20that%20utilize%20private%20calls%20and%20libraries.%20For%20both%20though%2C%20there%20is%20a%20rising%20problem%20for%20developers.%20Read%20more...&amp;source=CrackerCast Podcast - MrCracker.com - all things hacking" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/&amp;title=iPhone+Piracy+101%3A+How+it+works" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://mrcracker.com/2009/05/iphone-piracy-101-how-it-works/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
