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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 05-01-2011, 09:41 AM   #151 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: Tokyo
Posts: 163
kazbluesky is on a distinguished road
Default

Fantastic ! I'm really looking forward to the next tutorial. Thanks Schmoopi
kazbluesky is offline   Reply With Quote
Old 05-11-2011, 11:47 PM   #152 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: Tokyo
Posts: 163
kazbluesky is on a distinguished road
Default

Any news?
kazbluesky is offline   Reply With Quote
Old 05-20-2011, 04:20 PM   #153 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 1
Mutix is on a distinguished road
Default

Hi,

First of all, I'd like to thank everyone from the iphonedevsdk community for sharing all their knowledge. I have learned a lot from these forums, and have nearly always found an answer to questions I had regarding iOS development.

I'm in the same boat as a lot of people here, have released my first app a few weeks ago, and, despite it not being a general public app, it has already been cracked and put on appulous.

It has been cracked by an automated cracking program (there's a text file in the .ipa package that actually mentions this: "[...] Cracked by [...] using Clutch 1.1 RC2.").

So I'm looking into implementing some anti piracy checks to try and turn the cracked app into a demo version for the future updates.

I have implemented a few techniques in this thread, but have a few questions:


Quote:
Originally Posted by Damian View Post
And here it is
Code:
if(fabs([infoModifiedDate timeIntervalSinceReferenceDate] - [pkgInfoModifiedDate timeIntervalSinceReferenceDate]) > 600) {	
		 //Pirated
	}
if(fabs([infoModifiedDate2 timeIntervalSinceReferenceDate] - [pkgInfoModifiedDate timeIntervalSinceReferenceDate]) > 600) {	
		 //Pirated
	}

This doesn't seem to work, on simulator or on device (SDK 4.3).

The second check:

Code:
fabs([infoModifiedDate2 timeIntervalSinceReferenceDate] - [pkgInfoModifiedDate timeIntervalSinceReferenceDate]) > 600
always seems to return true ?

Anyone else getting this ?



Also, concerning the encryption check: does this entail that we need to declare that our app uses some form of encryption when we submit it to Apple (thus leading to a lot of red tape procedures etc) ?


I also just wanted to double check about the info.plist filesize. This check works fine when I run the app on my devices, although I have noticed that the file size changes if it's being run in the simulator.

Is the file size (on the device) going to be the same as the debug one when using the release scheme ?



Many thanks,

Regards
Mutix is offline   Reply With Quote
Old 05-21-2011, 08:18 AM   #154 (permalink)
Registered Member
 
Quasha's Avatar
 
Join Date: May 2011
Location: Internet
Posts: 15
Quasha is on a distinguished road
Default

Thnak you very much for thiis fantastic and really great thread with the great tutorial.
Quasha is offline   Reply With Quote
Old 05-24-2011, 11:47 AM   #155 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 57
PuchkoffDevelopment is on a distinguished road
Default

Does this code really work?
My app got cracked with piracy protection implemented.
__________________
Check out my iPad apps: SDK Tutorials for Beginners SDK Tutorials Advanced SDK Tutorials Cocos2D
My company: Puchkoff Media
PuchkoffDevelopment is offline   Reply With Quote
Old 05-27-2011, 08:28 AM   #156 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

the code "work" but this don't mean that is uncrackable, and however depend on what you exactly written....maybe you just copy\pasted and something gone wrong.....
__________________
dany_dev is offline   Reply With Quote
Old 05-27-2011, 12:03 PM   #157 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 2
Gamepro65 is on a distinguished road
Default

Not sure if it has been mentioned yet but the simulator detection code is a little off. Not sure if its an XCode 4 thing but my simulator gid is 20, not 10. Simple change will make this code work as it was intended.
Gamepro65 is offline   Reply With Quote
Old 06-13-2011, 03:30 AM   #158 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 33
fast is on a distinguished road
Default

and with this code:
Code:
 NSString *filePath = @"/Applications/Cydia.app";
     if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]) {   
     
     NSUserDefaults  *defaults         = [NSUserDefaults standardUserDefaults];
     NSArray         *languages        = [defaults objectForKey:@"AppleLanguages"];
     NSString    *currentLanguage  = [languages objectAtIndex:0];
     NSLog(@"Codice lingua %@", currentLanguage);
     
     
     if( [currentLanguage isEqualToString:@"it"] ) {	
     UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Attenzione!"
     message:@"L'applicazione ha identificato questo dispositivo com jailbroken"
     delegate:nil
     cancelButtonTitle:@"OK"
     otherButtonTitles:nil];
     
     [alert show];
     [alert release];
     
     } else {
     
     UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Warning!"
     message:@"The app detect yuor iPhone is Jailbroken!"
     delegate:nil
     cancelButtonTitle:@"OK"
     otherButtonTitles:nil];
     
     [alert show];
     [alert release];     
     }
}
fast is offline   Reply With Quote
Old 01-11-2012, 07:40 PM   #159 (permalink)
hzc
Registered Member
 
Join Date: Aug 2008
Posts: 9
hzc is on a distinguished road
Default Encrypted binary and Apple testing

Regarding the function to test if the binary executable file is encrypted, is the binary encrypted before or after an Apple reviewer starts testing? If after, then the app will fail the encryption test and the reviewer will most likely reject the app.

Has anyone submitted an app with the encryption test? How did that fare?
hzc is offline   Reply With Quote
Old 01-30-2012, 07:04 PM   #160 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 245
samurle is on a distinguished road
Default

Quote:
Originally Posted by hzc View Post
Regarding the function to test if the binary executable file is encrypted, is the binary encrypted before or after an Apple reviewer starts testing? If after, then the app will fail the encryption test and the reviewer will most likely reject the app.

Has anyone submitted an app with the encryption test? How did that fare?
I would take a wild guess and say that apps are not reviewed with Apple's DRM encryption.

Assuming DRM encryption (LC_ENCRYPTION_INFO) is only applied at the very last moment when
a person buys and downloads an app from the AppStore, as it needs your deviceID for encoding,
I would guess the reviewer has direct access to your app, and doesn't need to do all of this.

And, if DRM encryption (guessing) interferes with Apple's testing tools, that may be one
reason why apps are not reviewed with encryption.

Last edited by samurle; 02-03-2012 at 07:00 PM.
samurle is offline   Reply With Quote
Old 02-03-2012, 02:26 PM   #161 (permalink)
Shmoopi LLC
 
Shmoopi's Avatar
 
Join Date: Jun 2009
Location: Virginia
Posts: 213
Shmoopi is on a distinguished road
Default

Quote:
Originally Posted by hzc View Post
Regarding the function to test if the binary executable file is encrypted, is the binary encrypted before or after an Apple reviewer starts testing? If after, then the app will fail the encryption test and the reviewer will most likely reject the app.

Has anyone submitted an app with the encryption test? How did that fare?
If you do the encryption check, it will give a false positive if an Apple reviewer tests your app. Unfortunately there is no way to get around that

On a side note:
I'm looking for beta testers for my paid Anti-Piracy Library. If you'd like to give it a shot, please message me. Thanks!

Last edited by Shmoopi; 02-15-2012 at 06:51 PM.
Shmoopi is offline   Reply With Quote
Old 03-19-2012, 08:06 PM   #162 (permalink)
Shmoopi LLC
 
Shmoopi's Avatar
 
Join Date: Jun 2009
Location: Virginia
Posts: 213
Shmoopi is on a distinguished road
Default

New tutorial is up! Check it out in the tutorials section
Shmoopi is offline   Reply With Quote
Old 03-30-2012, 04:18 AM   #163 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 18
xefil is on a distinguished road
Default

Quote:
Originally Posted by hzc View Post
Regarding the function to test if the binary executable file is encrypted, is the binary encrypted before or after an Apple reviewer starts testing? If after, then the app will fail the encryption test and the reviewer will most likely reject the app.

Has anyone submitted an app with the encryption test? How did that fare?
<>
Sorry I've not seen the answers.
Also it means this check could not be implemented. If the encryption-signature is applied after, we never are able to verify if the app is signed or not or better, Apple would not approve the app because until it's not signed if I put a exit on the encryption check, apple review would fail and maybe the App would not approved?

Thank's a lot for the help!

X3f

Last edited by xefil; 03-30-2012 at 04:24 AM.
xefil is offline   Reply With Quote
Reply

Bookmarks

Tags
debugger, iphone, piracy, prevention, protection

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
» Online Users: 466
15 members and 451 guests
alexeir, David-T, Dj_kades, foslock, HemiMG, iAppDeveloper, jeroenkeij, LunarMoon, Mijator, Pauluz85, pipposanta, QuantumDoja, robsmy, sacha1996, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

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