This project allows ordinary users to directly mount OS X disk images under Linux via FUSE. darling-dmg is part of Darling - http://www.darlinghq.org
My name is Mark Conigliaro (MCTD81) and Ive been a beginner developer in the iPhone scene since the release of iOS 3. I havent however gave back until a few months ago. I began working on a mac only app called DMG Decrypter. It allows easy GUI based decryption of the ipsw root DMG file for easy development and also to explore the Userland.
Without darling-dmg, the only way to do this would be to manually extract the DMG file, become root and mount the HFS+ filesystem as root. This is slow, wasteful and may even crash your system. The project's author has seen the Linux HFS+ implementation cause kernel crashes.
Supported file types
Dmg File Extension
- DMG (UDIF) files containing an Apple Disk Image.
- Apple Disk Images containing an HFS+/HFSX file system.
- HFS+/HFSX file systems (incl. file systems embedded within HFS).
This means, darling-dmg can mount DMG files or unpacked DMG files or a single partition carved out of the latter.
Read only access only.
Build Requirements
You need the development packages for following libraries: fuse, icu, openssl, zlib, bzip2.
Usage
Decrypt Root Filesystem Dmg
Accessing resource forks
Resource forks are available via xattrs (extended attributes) or preferably under the name /original/filename#..namedfork#rsrc
.
Reusability
Some people have had success with using darling-dmg as a library for their own use.
Firmwares come as .ipsw files, which are .zip files in disguise.
Here's what the folder structure looks like (example: iPhone5,4 on iOS 9.2.1):
All of these files can be extracted using keys and xpwn.
Firmware keys are posted on
Root Of Dmg File Size
For the kernelcache, run:
xpwntool path/to/cache /path/to/output -k KEY -iv IV -decrypt
The root filesystem is in the largest DMG file of the .ipsw. To extract it, download dmg (OS X, Windows). Make sure dmg or dmg.exe is in your path and execute one of the following:
Root Of Dmg File Free
./dmg input.dmg output.dmg -k KEY
(OS X)
Dmg File In Windows
dmg.exe input.dmg output.dmg -k KEY
(Windows)