#dmg #dictionary #cracker #encrpyted #attack

bin+lib dmg-cracker

Tool for performing dictionary attacks on encrypted DMG images on OSX

7 releases

0.1.6 Oct 3, 2023
0.1.5 Oct 2, 2023
0.1.4 May 31, 2023
0.1.3 Apr 8, 2023
0.1.1 Feb 21, 2023

#883 in Command line utilities

39 downloads per month

Custom license and GPL-3.0-only

167 lines

DMG Cracker

Linting and tests codecov License: MIT

CLI for performing dictionary attacks on encrypted Apple Disk Image files (.dmg)

While this tool offers a solution for accessing encrypted disk images, it is important to note that it is intended for personal use only and should not be used for illegal purposes. The author assumes no responsibility for any misuse of the tool and it is the responsibility of the user to comply with all applicable laws and regulations.

Demo GIF


cargo install dmg-cracker

Upcoming features

  • investigate implementing AES decrpytion manually. Current road block being a method of extracting the key generation salt from the dmg file headers
  • support for testing different permutations of a given password list
  • increase test coverage

Testing / Contributing

Any contributions or issue raising is welcomed. If you wish to contribute then:

  1. fork/clone this repo
  2. make changes on a branch taken from main
  3. submit a pull request against main

Pull requests will be blocked from merging automatically if:

  • there are failing tests
  • linting rules have been violated.


~140K SLoC