Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 12-20-2009, 04:35 PM   #51 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 169
Default

Quote:
Originally Posted by hellrider View Post
That's easy to pull off. Also, apple would never know that you implemented that, nor could they do anything, as according to them piracy is not a big deal.
Where did you read anything from Apple that says they believe piracy is not a big deal?

-t
thewitt is offline   Reply With Quote
Old 12-20-2009, 04:35 PM   #52 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 96
Default

I don't like it when people assume all jailbreakers are pirates. I've had a jailbroken iPod touch for over two years. The jailbreak community is thriving, and ripe with innovative applications and SB hacks
hellrider is offline   Reply With Quote
Old 12-20-2009, 04:37 PM   #53 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 96
Default

Quote:
Originally Posted by thewitt View Post
Where did you read anything from Apple that says they believe piracy is not a big deal?

-t
Obviously they did not explicitly say such a thing, but their inaction on the matter speaks volumes. Cracking apps is literally child's play; apple puts a huge burden on developers by letting them fend for themselves.
hellrider is offline   Reply With Quote
Old 12-20-2009, 04:38 PM   #54 (permalink)
Registered Member
 
kierster's Avatar
 
Join Date: Mar 2009
Location: Canada!
Posts: 261
Default

Thanks to the OP! Your research and effort will bring many advertisements to future pirates
__________________
Check out some of my apps:
Boltz ($0.99)
FreeBoltz (FREE)
Cross Digits ($2.99) [Universal!]
Cross Digits Lite (FREE) [Universal!]
Targets ($0.99) (Facebook | YouTube Demo)
Greg's Apps
kierster is offline   Reply With Quote
Old 12-20-2009, 04:48 PM   #55 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 96
Default

signerIdentity checks fail. at least compare an info.plist checksum or filesize
hellrider is offline   Reply With Quote
Old 12-20-2009, 04:52 PM   #56 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 169
Default

Quote:
Originally Posted by hellrider View Post
Obviously they did not explicitly say such a thing, but their inaction on the matter speaks volumes. Cracking apps is literally child's play; apple puts a huge burden on developers by letting them fend for themselves.
I love it when people assume that because a company takes a specific approach to what they perceive as a problem, the company automatically MUST be doing so in support of that problem.

It's very simple.

Apple has priorities as a company for this platform, and currently fighting piracy on the iPhone is not on their short list.

This does not mean it's not important to them, only that it's not currently as high on their list as the other things they are bringing to the platform.

Market penetration in Japan was a huge problem two years ago - they have solved this problem and now own more than 50% of the smart phone market in Japan.

Economic reality will always drive large corporations - and I would expect nothing else of Apple.

We as developers have to elevate the problem to it's proper level of importance, JUST as we had to so so on all of the game platforms of the last 20 years to get the attention of EVERY SINGLE hardware developer that's ever played in this arena.

Apple will address the problem when we make it a high priority for continuing to support the platform.

As long as we don't make it a high priority, they won't make it a high priority. How many of you have submitted bug reports in the Developer Connection to request that Apple do something to help us fight piracy. Any of you? I did - many months ago - and will continue to bring it to their attention whenever possible.

Their inaction at this time does not mean they condone piracy of course - nor that they don't take it seriously - it simply means that with tens of thousand of developers stepping up to the platform to try to take advantage of the nearly 80 million devices they have sold, it's not a serious enough problem to be addressed over the other issues on their plate.

Don't assume they support pirates or don't take piracy seriously simply because they have not yet implemented the pirate-proof platform.

When jailbroken phones simply stop operating, and running pirated Apps cause the phone to lock up, we'll hear a completely different screaming sound from that side of the user community.

I for one will not miss them when they move on to Android.

-t
thewitt is offline   Reply With Quote
Old 12-20-2009, 05:05 PM   #57 (permalink)
Shmoopi LLC
 
Shmoopi's Avatar
 
Join Date: Jun 2009
Location: Virginia
Posts: 203
Default

Quote:
Originally Posted by thewitt View Post
I love it when people assume that because a company takes a specific approach to what they perceive as a problem, the company automatically MUST be doing so in support of that problem.

It's very simple.

Apple has priorities as a company for this platform, and currently fighting piracy on the iPhone is not on their short list.

This does not mean it's not important to them, only that it's not currently as high on their list as the other things they are bringing to the platform.

Market penetration in Japan was a huge problem two years ago - they have solved this problem and now own more than 50% of the smart phone market in Japan.

Economic reality will always drive large corporations - and I would expect nothing else of Apple.

We as developers have to elevate the problem to it's proper level of importance, JUST as we had to so so on all of the game platforms of the last 20 years to get the attention of EVERY SINGLE hardware developer that's ever played in this arena.

Apple will address the problem when we make it a high priority for continuing to support the platform.

As long as we don't make it a high priority, they won't make it a high priority. How many of you have submitted bug reports in the Developer Connection to request that Apple do something to help us fight piracy. Any of you? I did - many months ago - and will continue to bring it to their attention whenever possible.

Their inaction at this time does not mean they condone piracy of course - nor that they don't take it seriously - it simply means that with tens of thousand of developers stepping up to the platform to try to take advantage of the nearly 80 million devices they have sold, it's not a serious enough problem to be addressed over the other issues on their plate.

Don't assume they support pirates or don't take piracy seriously simply because they have not yet implemented the pirate-proof platform.

When jailbroken phones simply stop operating, and running pirated Apps cause the phone to lock up, we'll hear a completely different screaming sound from that side of the user community.

I for one will not miss them when they move on to Android.

-t
Well said. However, I don't believe jailbroken phones are the problem. Jailbreaking was available long before applications were able to be pirated, and will continue to be around *hopefully long afterwords as well. But application piracy is wrong and should be eliminated. I'm sure that many other jailbroken users would say the same thing.
Shmoopi is offline   Reply With Quote
Old 12-20-2009, 05:44 PM   #58 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 169
Default

Jailbroken phones are simply an enabler - and dealing with one will certainly not be done without dealing with the other.

-t
thewitt is offline   Reply With Quote
Old 12-20-2009, 06:15 PM   #59 (permalink)
Registered Member
 
kierster's Avatar
 
Join Date: Mar 2009
Location: Canada!
Posts: 261
Default

Found this little tidbit from apple's documentation on
Code:
[[NSBundle mainBundle] infoDictionary]
"A dictionary, constructed from the bundle's Info.plist file, that contains information about the receiver. If the bundle does not contain an Info.plist file, a valid dictionary is returned but this dictionary contains only private keys that are used internally by the NSBundle class. The NSBundle class may add extra keys to this dictionary for its own use. "
Mac Dev Center: NSBundle Class Reference

The wording is throwing me off a little bit. At first I thought this meant that the mainBundle would always add keys, messing up any check on what has changed. But after reading it a second time i may understand it now. Does it mean it will make an info.plist if there is none present?
__________________
Check out some of my apps:
Boltz ($0.99)
FreeBoltz (FREE)
Cross Digits ($2.99) [Universal!]
Cross Digits Lite (FREE) [Universal!]
Targets ($0.99) (Facebook | YouTube Demo)
Greg's Apps
kierster is offline   Reply With Quote
Old 12-20-2009, 06:28 PM   #60 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 96
Default

No, that means that it won't return nil if there is no Info.plist in the bundle. Not something you need to concern yourself with, as you can't submit an app without an info.plist
hellrider is offline   Reply With Quote
Old 12-20-2009, 06:33 PM   #61 (permalink)
Registered Member
 
kierster's Avatar
 
Join Date: Mar 2009
Location: Canada!
Posts: 261
Default

Alright, that makes sense thanks
__________________
Check out some of my apps:
Boltz ($0.99)
FreeBoltz (FREE)
Cross Digits ($2.99) [Universal!]
Cross Digits Lite (FREE) [Universal!]
Targets ($0.99) (Facebook | YouTube Demo)
Greg's Apps
kierster is offline   Reply With Quote
Old 12-22-2009, 11:04 AM   #62 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 56
Default

Another code snippet I found; uses singer's ID but also checks for the dates the info.plist as a file, and the date it was compiled for distribution (that's how I got it).

snippie
natanavra is offline   Reply With Quote
Old 12-22-2009, 11:11 AM   #63 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 96
Default

Checksums are the most effective way to deter "noob" crackers. Anyone who knows some assembly can easily patch this, but its better than nothing.

Here's a function that returns the MD5 checksum of the given data.

Code:
#import CommonCrypto/CommonDigest.h

// this site fails with regards to disallowing < > in CODE blocks

NSString * data_getMD5(NSData *data) {
	
	if (data == nil)
		return nil;

	const void * bytes = [data bytes];
	int len = [data length];
	unsigned char digest[CC_MD5_DIGEST_LENGTH];
	
	CC_MD5_CTX c;
	CC_MD5_Init(&c);
	CC_MD5_Update(&c, bytes, len);
	CC_MD5_Final(digest, &c);
	
	return [NSString stringWithFormat:@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
			digest[0], digest[1], digest[2], digest[3],
			digest[4], digest[5], digest[6], digest[7],
			digest[8], digest[9], digest[10], digest[11],
			digest[12], digest[13], digest[14], digest[15] ];
}
Pass an NSData object holding the bytes of the info.plist.

Also, you can easily adapt it to do SHA1 instead.
hellrider is offline   Reply With Quote
Old 12-22-2009, 07:44 PM   #64 (permalink)
Shmoopi LLC
 
Shmoopi's Avatar
 
Join Date: Jun 2009
Location: Virginia
Posts: 203
Default

iPhone Anti-Piracy Protection Code Part 2 Is Out!
Shmoopi is offline   Reply With Quote
Old 02-15-2010, 02:22 AM   #65 (permalink)
Registered Member
 
Ivan's Avatar
 
Join Date: Oct 2008
Location: Christchurch, NZ
Posts: 120
Default

Like many others my app has been pirated and the entries on my high score table out number sales 10 to 1!

I am just about to release an update and was going to at least implement the simple check to stop the automated cracker.

However, being curious I first through I would download a pirated version and take a look, so I did a Google search and found my apps IPA file.

Once on my Windows PC I renamed the IPA file extension to ZIP and unzipped it. I noticed that all of the files had the correct timestamp (within 1 minute of each other) including the info.plist.

I then did a binary file compare on the info.plist and compared to the original one from my release to find they were identical. Also looking at the plist file SignerIdentity did not exist.

I am now confused.

Does that mean that this version wasn't cracked and people are uploading non-cracked versions? Am I missing something?

Cheers
Ivan
__________________
New game: Doodle Blitz - addictive, casual gaming.
iPhone games and utilities at http://www.ivanmackintosh.com. Updates and promos on Twitter
Ivan is offline   Reply With Quote
Old 02-18-2011, 04:16 AM   #66 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 101
Default

Hackers don't need to change the info.plist anymore! See the other anti-piracy thread.

My app ($1.99) has also been pirated even though there is also a free lite version of the app available. They download the pirated app approximately 500 times a day.

Last edited by dobry; 02-18-2011 at 04:18 AM.
dobry is offline   Reply With Quote
Reply

Bookmarks

Tags
anti-piracy, identity, piracy, protection, signer

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:31 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0