Skip to content

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.

Notifications You must be signed in to change notification settings

Naituw/dumpdecrypted

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dumps decrypted iOS Applications to a file - better solution than those GDB scripts for non working GDB versions.

(C) Copyright 2011-2014 Stefan Esser

Includes modifications from conradev and ericcastro. In particular, is able to dump encrypted frameworks.

Compile

First adjust the Makefile if you have a different iOS SDK installed.

And then just:

make

Usage:

# chmod a+rx dumpdecrypted.dylib
# cp dumpdecrypted.dylib /usr/lib/
# su mobile

$ cd /var/mobile/Documents
$ DYLD_INSERT_LIBRARIES=(usr/lib/dumpdecrypted.dylib /var/containers/Bundle/Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/YYYY.app/YYYY


[+] Dumping YYYY
[+] detected 64bit ARM binary in memory.
[+] offset to cryptid found: @0x100018c08(from 0x100018000) = c08
[+] Found encrypted data at address 00004000 of length 720896 bytes - type 1.
[+] Opening /private/var/containers/Bundle/Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/YYYY.app/YYYY for reading.
[+] Reading header
[+] Detecting header type
[+] Executable is a plain MACH-O image
[+] Opening YYYY.decrypted for writing.
[+] 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 c08
[+] 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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C 95.9%
  • Makefile 4.1%