Skip to content

About

Dumps decrypted mach-o files from encrypted iPhone applications from memory to disk. This tool is necessary for security researchers to be able to look under the hood of encryption.

Resources

Stars

2 stars

Watchers

5 watching

Forks

 
 

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Dumps decrypted iPhone Applications to a file - better solution than those GDB scripts for non working GDB versions
(C) Copyright 2011-2014 Stefan Esser


Compile:
First adjust the Makefile if you have a different iOS SDK installed.
And then just: make


Signing:
codesign -s - --entitlements entitlements.plist -f dumpdecrypted.dylib

Install:
ssh root@{ipaddress} "mkdir /usr/local/lib"
scp dumpdecrypted.dylib root@{ipaddress}:/usr/local/lib/
scp dumpdecrypted root@{ipaddress}:/usr/local/bin/

Usage:
iPod:~ root# dumpdecrypted Scan.app Scan > Scan.decrypted

mach-o decryption dumper
DISCLAIMER: This tool is only meant for security research purposes, not for application crackers.

[+] detected 64bit ARM binary in memory.
[+] offset to cryptid found: @0x100064b18(from 0x100064000) = b18
[+] Found encrypted data at address 00004000 of length 49152 bytes - type 1.
[+] Opening /private/var/mobile/Applications/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Scan.app/Scan for reading.
[+] Reading header
[+] Detecting header type
[+] Executable is a plain MACH-O image
[+] Copying the not encrypted start of the file
[+] Dumping the decrypted data into the file
[+] Copying the not encrypted remainder of the file
[+] Setting the LC_ENCRYPTION_INFO->cryptid to 0 at offset b18
[+] Closing original file
[+] Closing dump file

About

Dumps decrypted mach-o files from encrypted iPhone applications from memory to disk. This tool is necessary for security researchers to be able to look under the hood of encryption.

Resources

Stars

2 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages