extract a dmg file
C Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README.md
abstractfile.c
abstractfile.h
base64.c
btree.c
catalog.c
checksum.c
common.h
dmg.h
dmgfile.c
dmgfile.h
dmglib.c
dmglib.h
extents.c
fastunicodecompare.c
hfscompress.c
hfscompress.h
hfslib.c
hfslib.h
hfsplus.h
io.c
main.c
partition.c
rawfile.c
resources.c
test.sh
udif.c
utility.c
volume.c
xattr.c

README.md

undmg

Extract a DMG file.

Usage

undmg < ./Sublime\ Text\ Build\ 3103.dmg

Building

This requires zlib, bzip2, glibc, a linker, and a c compiler to build.

git clone https://github.com/matthewbauer/undmg.git
cd undmg
make

Installing

make install

DMG

Apple has never released official specs for the DMG file format. Most of it has been reverse engineered. The best source of documentation is at newosxbook.com and the wikipedia page. However, there are some DMG files that won't work correctly with this tool.

What won't work

  • Apple Data Compression (haven't found any using this)
  • Signed DMG files (support is there from XPWN, I just haven't added a command line option)

License

GPL3, most of this code is from the xpwn project.