Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cracks the app but does not store the cracked file #31

Closed
satishb3 opened this issue May 19, 2014 · 9 comments
Closed

cracks the app but does not store the cracked file #31

satishb3 opened this issue May 19, 2014 · 9 comments

Comments

@satishb3
Copy link

iPhone 5s, iOS 7.0.6

I have used Clutch 1.4.5 (git-2) (without any conf file) to crack the Gmail app. It cracked the app but didn't store the cracked ipa file in the specified location.

SatishB:/var/mobile/Cracked root# cd /User/Documents/Cracked/
SatishB:/User/Documents/Cracked root# ls
SatishB:/User/Documents/Cracked root# Clutch GmailHybrid
You're using a Clutch development build, checking for updates..
Your version of Clutch is up to date!
Clutch 1.4.5 (git-2)
---------------------------------
DEBUG | Preferences.m:42 | preferences_location: /etc/clutch.conf
DEBUG | Preferences.m:43 | (null)
DEBUG | main.m:605 | app to crack {
    ApplicationBasename = "GmailHybrid.app";
    ApplicationBundleID = "com.google.Gmail";
    ApplicationContainer = "/private/var/mobile/Applications/6A7E68BA-5E78-4AEF-8B60-C868CFA141C9/";
    ApplicationDirectory = "/private/var/mobile/Applications/6A7E68BA-5E78-4AEF-8B60-C868CFA141C9/GmailHybrid.app/";
    ApplicationDisplayName = Gmail;
    ApplicationExecutableName = GmailHybrid;
    ApplicationName = GmailHybrid;
    ApplicationVersion = "3.0.2";
    MinimumOSVersion = "6.0";
    RealUniqueID = "6A7E68BA-5E78-4AEF-8B60-C868CFA141C9";
}
Cracking GmailHybrid...
DEBUG | Cracker.m:80 | ------Prepairing from Installed App------
DEBUG | Cracker.m:92 | Temporary Directory: /tmp/clutch_bKehoNA8/Payload/GmailHybrid.app
Creating working directory...
DEBUG | Cracker.m:103 | Temporary Binary Path: /tmp/clutch_bKehoNA8/Payload/GmailHybrid.app/GmailHybrid
DEBUG | Cracker.m:111 | Binary Path: /private/var/mobile/Applications/6A7E68BA-5E78-4AEF-8B60-C868CFA141C9/GmailHybrid.app/GmailHybrid
DEBUG | Cracker.m:113 | -------End Prepairing Installed App-----
DEBUG | Cracker.m:120 | ------Generating Paths------
DEBUG | Cracker.m:139 | /User/Documents/Cracked/Gmail-v3.0.2-no-name-cracker-(Clutch-1.4.5).ipa
DEBUG | Cracker.m:141 | ------End Generating Paths-----
DEBUG | Cracker.m:150 | ------Executing crack------
DEBUG | izip.m:29 | created IPAPAth /User/Documents/Cracked/Gmail-v3.0.2-no-name-cracker-(Clutch-1.4.5).ipa
DEBUG | Cracker.m:165 | ------Crack Operation------
DEBUG | Cracker.m:167 | beginning crack operation
DEBUG | Cracker.m:212 | ------Zip Operation------
DEBUG | Cracker.m:213 | beginning zip operation
DEBUG | Cracker.m:222 | using old zip
DEBUG | Binary.m:396 | attempting to crack binary to file! finalpath /tmp/clutch_bKehoNA8/Payload/GmailHybrid.app/GmailHybrid
DEBUG | Binary.m:397 | DEBUG: binary path /private/var/mobile/Applications/6A7E68BA-5E78-4AEF-8B60-C868CFA141C9/GmailHybrid.app/GmailHybrid
DEBUG | Cracker.m:231 | container yo /private/var/mobile/Applications/6A7E68BA-5E78-4AEF-8B60-C868CFA141C9/ /tmp/clutch_HdhckVGT/
/tmp/clutch-zip: line 1: zip: command not found
DEBUG | Cracker.m:239 | zip original ok
DEBUG | Cracker.m:241 | ------End Zip Op------
DEBUG | Binary.m:406 | basedir ok
Performing initial analysis...
DEBUG | Binary.m:414 | open ok
DEBUG | Binary.m:431 | local arch - arm64
DEBUG | Binary.m:481 | 32bit Thin armv7 binary detected
DEBUG | Binary.m:483 | mach_header feedface 12 9
DEBUG | Binary.m:491 | local_arch = God64
DEBUG | Binary.m:492 | [TRU GOD MODE ENABLED]
DEBUG | Binary.m:1077 | Dumping 32bit segment..
DEBUG | Binary.m:1097 | 32bit dumping: offset 0
dumping binary: analyzing load commands
DEBUG | Binary.m:1127 | found segment
DEBUG | Binary.m:1127 | found segment
DEBUG | Binary.m:1127 | found segment
DEBUG | Binary.m:1127 | found segment
DEBUG | Binary.m:1108 | found encryption info
DEBUG | Binary.m:1113 | found code signature
dumping binary: obtaining ptrace handle
dumping binary: forking to begin tracing
dumping binary: successfully forked
dumping binary: obtaining mach port
dumping binary: preparing code resign
dumping binary: preparing to dump
dumping binary: ASLR enabled, identifying dump location dynamically
DEBUG | Binary.m:1269 | 32-bit Region Size: 16384 2129920
DEBUG | Binary.m:1269 | 32-bit Region Size: 2129920 2129920
dumping binary: performing dump
dumping binary: patched cryptid
 [=============================================================================>] 100%
 dumping binary: writing new checksum
DEBUG | Binary.m:518 | crack ok!
DEBUG | Cracker.m:195 | crack operation ok!
packaging: waiting for zip thread
DEBUG | Cracker.m:197 | -----End Crack Op------
DEBUG | Cracker.m:246 | ------Zip Cracked Op------
packaging: compressing IPA
DEBUG | Cracker.m:311 | old metadata /private/var/mobile/Applications/6A7E68BA-5E78-4AEF-8B60-C868CFA141C9/iTunesMetadata.plist /tmp/clutch_bKehoNA8/iTunesMetadata.plist
DEBUG | Cracker.m:322 | Moving iTunesMetadata
DEBUG | Cracker.m:323 | copy from /private/var/mobile/Applications/6A7E68BA-5E78-4AEF-8B60-C868CFA141C9/iTunesMetadata.plist to /tmp/clutch_bKehoNA8/iTunesMetadata.plist
DEBUG | Cracker.m:346 | Copying iTunesArtwork
DEBUG | Cracker.m:347 | copy from /private/var/mobile/Applications/6A7E68BA-5E78-4AEF-8B60-C868CFA141C9/iTunesArtwork, to /tmp/clutch_bKehoNA8/iTunesArtwork
DEBUG | Cracker.m:254 | package IPA ok
DEBUG | izip.m:149 | working dir /tmp/clutch_bKehoNA8
DEBUG | Cracker.m:258 | zip cracked ok
packaging: compression level 0
DEBUG | Cracker.m:276 | ------End Zip Crack Op------
DEBUG | Cracker.m:291 | ------End Execute Crack------
DEBUG | ApplicationLister.m:153 | cracked app ok
DEBUG | ApplicationLister.m:154 | this crack lol 302
DEBUG | Cracker.m:295 | Saved cracked app info!
        /User/Documents/Cracked/Gmail-v3.0.2-no-name-cracker-(Clutch-1.4.5).ipa
elapsed time: 1.00s

Applications cracked:

GmailHybrid

Total success: 1   Total failed: 0
SatishB:/User/Documents/Cracked root# ls
SatishB:/User/Documents/Cracked root#
SatishB:/User/Documents/Cracked root#

Having the below clutch.conf file in place, it cracked the app and stored the cracked ipa file properly.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CrackerName</key>
    <string>sat</string>
    <key>CreditFile</key>
    <string>NO</string>
    <key>IPADirectory</key>
    <string>/var/mobile/Cracked</string>
    <key>MetadataEmail</key>
    <string></string>
    <key>UseNativeZip</key>
    <string>YES</string>
    <key>NumberBasedMenu</key>
    <string>YES</string>
    <key>CompressionLevel</key>
    <string>8</string>
</dict>
</plist>

May be some issue with folder permissions.

@NinjaLikesCheez
Copy link
Member

So as long as you have a config file it stores the file correctly? I'll address this when I have time - but for now just use a config file until I can update this :)

@NinjaLikesCheez
Copy link
Member

Just tried to replicate this and cannot - have you got zip installed from Cydia?

@satishb3
Copy link
Author

I have installed zip from Cydia and it worked without config file.

So even if we don't have zip installed it works with config file, strange.

@NinjaLikesCheez
Copy link
Member

Ok so

no-zip + no-prefs = no-write
zip + no-prefs = write
no-zip + prefs = write

Is that right?

@satishb3
Copy link
Author

yes, thats right

@ttwj
Copy link
Member

ttwj commented May 19, 2014

Clutch should automatically generate a configuration if it doesn't exist, I
think the default configuration was set to use CLI zip. In the
configuration you provided NativeZip was enabled, so it used ZipArchive to
zip.

@satishb3
Copy link
Author

Now I understood why it worked with my conf file.
In my case, it didn't create the configuration file automatically.
It would be great if you change it to use NativeZip or mention in the Readme that ZIP has to be installed from Cydia.

@Tatsh
Copy link
Collaborator

Tatsh commented May 19, 2014

Could run which zip in the app too for verification that zip is in $PATH.

@ttwj
Copy link
Member

ttwj commented Jun 24, 2014

fixed in 1.4.6, reverts to built-in zip library if zip is not found

@ttwj ttwj closed this as completed Jun 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants