Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

moar stuff

  • Loading branch information...
commit d7cac207ab7501c831d82c5908c8dd2e083f6889 1 parent db232b1
Terence Tan authored
Showing with 11 additions and 7 deletions.
  1. +1 −1  Clutch.entitlements
  2. +8 −6 crack.m
  3. +2 −0  sign.sh
2  Clutch.entitlements
View
@@ -6,7 +6,7 @@
<array>
<string>$(AppIdentifierPrefix)us.hackulo.Clutch</string>
</array>
- <key>task_for_pid_allow</key>
+ <key>task_for_pid-allow</key>
<true/>
<key>run-unsigned-code</key>
<true/>
14 crack.m
View
@@ -216,16 +216,18 @@ void zip_resources(NSString *dir, NSString *zip) {
if (compressionArguments == nil)
compressionArguments = @"";
- NOTIFY("Compressing first stage resources (1/2)...");
+ NOTIFY("Compressing payload...");
system([[NSString stringWithFormat:@"cd %@; zip %@-m -r \"%@\" * 2>&1> /dev/null", workingDir, compressionArguments, ipapath] UTF8String]);
[[NSFileManager defaultManager] moveItemAtPath:[workingDir stringByAppendingString:@"Payload"] toPath:[workingDir stringByAppendingString:@"Payload_1"] error:NULL];
- NOTIFY("Compressing second stage payload (2/2)...");
-
- [[NSFileManager defaultManager] createSymbolicLinkAtPath:[workingDir stringByAppendingString:@"Payload"] withDestinationPath:[application_basedir stringByAppendingString:@"/../"] error:NULL];
-
- system([[NSString stringWithFormat:@"cd %@; zip %@-u -y -r -n .jpg:.JPG:.jpeg:.png:.PNG:.gif:.GIF:.Z:.gz:.zip:.zoo:.arc:.lzh:.rar:.arj:.mp3:.mp4:.m4a:.m4v:.ogg:.ogv:.avi:.flac:.aac \"%@\" Payload/* -x Payload/iTunesArtwork Payload/iTunesMetadata.plist \"Payload/Documents/*\" \"Payload/Library/*\" \"Payload/tmp/*\" \"Payload/*/%@\" \"Payload/*/SC_Info/*\" 2>&1> /dev/null", workingDir, compressionArguments, ipapath, binary_name] UTF8String]);
+
+// NOTIFY("Compressing second stage payload (2/2)...");
+//
+// [[NSFileManager defaultManager] createSymbolicLinkAtPath:[workingDir stringByAppendingString:@"Payload"] withDestinationPath:[application_basedir stringByAppendingString:@"/../"] error:NULL];
+//
+// system([[NSString stringWithFormat:@"cd %@; zip %@-u -y -r -n .jpg:.JPG:.jpeg:.png:.PNG:.gif:.GIF:.Z:.gz:.zip:.zoo:.arc:.lzh:.rar:.arj:.mp3:.mp4:.m4a:.m4v:.ogg:.ogv:.avi:.flac:.aac \"%@\" Payload/* -x Payload/iTunesArtwork Payload/iTunesMetadata.plist \"Payload/Documents/*\" \"Payload/Library/*\" \"Payload/tmp/*\" \"Payload/*/%@\" \"Payload/*/SC_Info/*\" 2>&1> /dev/null", workingDir, compressionArguments, ipapath, binary_name] UTF8String]);
+//
stop_bar();
2  sign.sh
View
@@ -0,0 +1,2 @@
+#!/bin/bash
+codesign -f -s "iPhone Developer" --entitlements Clutch.entitlements $1
Please sign in to comment.
Something went wrong with that request. Please try again.