How to Crack a DMG Password
A dmg file is a compressed file structure, capable of containing folders, files, etc. Â Dmg files can be used for a variety of purposes, from encrypting a home directory (ie – FileVault) to encrypting a file structure manually. Â A dmg file can be encrypted fairly simply. From Disk Utility, create a dmg file by clicking on the File menu and selecting New and then Blank Disk Image. This will bring up a screen where you can provide a name for your home folder and a size, then select either AES 128 or AES 256, which is a bit slower.

Go ahead and click on Create and then at the resultant password screen go ahead and provide a password to be used. Â And let’s just go ahead and uncheck the option to create an entry in Keychain for the password.
If you would rather do so from the command line I covered how to do so in a previous post.
Now let’s download Spartan, a tool built by Ryan Kubasiak. Now download a dictionary file. I just used one of these (and for expedience sake I paired down the contents to only have about 100 possible passwords, one of which was mine). Now go ahead and open Spartan, clicking on Go! at the splash screen.

Spartan
At the Choose a File screen, browse to and then select your password file, clicking Choose once you have done so. At the next Choose a File screen browse to and then select your dmg file which you would like to crack the password for. The password file will then be read into RAM and the password cracking will commence.

According to the length of your password this could take a long, long time, but when it’s done you will have your password, assuming it was in the dictionary of passwords you used. Â Dictionary files can be downloaded from a variety of sources, some collections taking up gigabytes upon gigabytes of space and covering every possible keyboard combination. Â Therefore, the longer the password that you use and the more complex the password is, the longer it will take to break the encryption.
“So, would your holiness care to change her password?” – The Plague
Similar Articles:
- Deep Freeze, All Quick & Dirty-like
- Running TFTP on Mac OS X
- Creating Accounts in OS X Server with serversetup
- Change Default Application for File Types in OS X
- Scripting Fast User Switching
In: Mac OS X, Mac OS X Server, Mac Security · Tagged with: crack dmg password, dmg, DMG password, find lost password, Hacking, Mac OS X, password cracking



on June 27, 2009 at 7:03 am
Permalink
I got Ryan to retire Spartan after I wrote crowbarDMG. Just make sure to run check for updates after you install. It fixes a sparseimage issue. https://www.georgestarcher.com/?p=228
on June 27, 2009 at 8:49 am
Permalink
Thanks. I’ll do it next. You can do more than a 100MB dictionary file with it I’m guessing?
on June 28, 2009 at 12:43 pm
Permalink
yes it will run the dictionary file till the file ends. I don’t pull it to ram like Ryan did.
on January 30, 2010 at 12:45 pm
Permalink
[...] quer por “humanos” quer por ferramentas preparadas para gerar passwords aleatoriamente (veja o este exemplo) até obter sucesso. Portanto quanto mais complexa, mais tempo demorará ou mesmo impedirá [...]