• Stars
    star
    266
  • Rank 154,103 (Top 4 %)
  • Language
    Objective-C
  • Created about 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dumps decrypted mach-o files from encrypted applications、framework or app extensions.

It is recommended to use frida-ios-dump instead!

Dumps decrypted mach-o files from encrypted applicationsframework or app extensions.

You should install MonkeyDev first

Usage

  1. open dumpdecrypted.xcodeproj edit dumpdecrypted.plist
{
	Filter = {
		Bundles = ("target.bundle.id");
	};
}
  1. Set Build Settings
  • MonkeyDevDeviceIP
  • MonkeyDevDevicePort
  1. launch application or app extension
mach-o decryption dumper
DISCLAIMER: This tool is only meant for security research purposes, not for application crackers.
[+] detected 32bit ARM binary in memory.
[+] offset to cryptid found: @0x1ba08(from 0x1b000) = a08
[+] Found encrypted data at address 00004000 of length 573440 bytes - type 1.
[+] Opening /private/var/mobile/Containers/Bundle/Application/A9622900-FC0A-4D64-AC2E-AC9B69773A22/xxx.app/PlugIns/xxx.appex/xxx for reading.
[+] Reading header
[+] Detecting header type
[+] Executable is a FAT image - searching for right architecture
[+] Correct arch is at offset 16384 in the file
[+] Opening /var/mobile/Containers/Data/PluginKitPlugin/D5C1CB12-DB5B-4C53-9191-B23142841035/Documents/xxx.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 4a08
[+] Closing original file
[+] Closing dump file

Check And Thin

$ otool -l xxx.decrypted | grep crypt

xxx.decrypted (architecture armv7):
     cryptoff 16384
    cryptsize 10960896
      cryptid 0
xxx.decrypted (architecture arm64):
     cryptoff 16384
    cryptsize 12124160
      cryptid 1

Thin:

$ lipo -thin armv7 xxx.decrypted -output xxx_armv7.decrypted  
$ lipo -thin armv64 xxx.decrypted -output xxx_arm64.decrypted

Author

Dumpdecrypted was orignally developed by stefanesser. Learn from conradev

More Repositories

1

MonkeyDev

CaptainHook Tweak、Logos Tweak and Command-line Tool、Patch iOS Apps, Without Jailbreak.
Objective-C
6,071
star
2

frida-ios-dump

pull decrypted ipa from jailbreak device
JavaScript
2,803
star
3

MonkeyDevSpecs

A Private Specs Repo for Monkeydev
Ruby
692
star
4

iOSREBook

《iOS应用逆向与安全》随书源码
C++
496
star
5

RxSwiftStudy

RxSwift Article And Study Demo
Swift
259
star
6

MacReverse

MacReverse Tools and Demo
Objective-C
197
star
7

AntiAntiDebug

tweak、 lldb python for anti anti debug
Python
181
star
8

JarEncrypt

Jar包保护加密解决方案
Java
148
star
9

weekly

Coder博客群周报,目的在于分享每周看到的干货或者自己的分享
61
star
10

cydiarepo

This is a cydia repo created on github
Objective-C
59
star
11

OnlineIpaInstall

Fast upload ipa online to install
Python
45
star
12

MacKext

Learn MacOS kernel extensions
C
42
star
13

ios-security

iOS ROP以及逃逸沙盒的简单实践
C
40
star
14

WeChatPod

Wechat pod for MonkeyDev
Objective-C
37
star
15

iOSREBook-issues

《iOS应用逆向与安全》 勘误
34
star
16

MonkeyDev-Xcode-Templates

MonkeyDev-Xcode-Templates
32
star
17

MDSettingCenter

Common Setting Center For MonkeyDev(统一的插件界面设置模块)
Objective-C
18
star
18

MDCycript

cycript demo for MonkeyDev
Cycript
12
star
19

algorithm

AES、DES C语言实现与原理
C++
12
star
20

alonemonkey.github.io

新的博客,原博客:www.blogfshare.com
HTML
9
star
21

RevealForward

不在一个局域网下使用Reveal查看界面结构
Objective-C
8
star
22

ios-reverse-course

7
star
23

SwizzlePod

SwizzlePod for MonkeyDev
Objective-C
5
star
24

MonkeyDevSite

http://monkeydev.org/
CSS
4
star
25

WhatsAppPod

a pod demo for iOS Book
Objective-C
4
star
26

YouKuPod

remove youku ad
Ruby
3
star
27

monkeydev.github.io

MonkeyDev Site
HTML
2
star
28

MonkeyPod

An Example for MonkeyPod
Objective-C
2
star
29

MonkeyDevPod

An example Pod for MonkeyDev
Objective-C
2
star
30

RedirectUrl

JavaScript
1
star