mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #359] New Formats (wishlist) #99
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kholia on GitHub (Aug 1, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/359
@alienjax commented on GitHub (Aug 28, 2013):
Update dmg2john to work with .sparseimage and .sparsebundle
@kholia commented on GitHub (Aug 28, 2013):
@gat3way do you have support for .sparseimage and .sparsebundle in your DMG plug-in?
@gat3way commented on GitHub (Aug 28, 2013):
I think it's broken right now...the dmg plugin will accept the file, but
cracking would likely give you false negatives.
On Wed, Aug 28, 2013 at 10:00 AM, Dhiru Kholia notifications@github.comwrote:
@alienjax commented on GitHub (Aug 28, 2013):
dmg2john.py will accept a .sparseimage and output a hash, but john won't output the password.
A .sparsebundle disk image is basically a folder/bundle with a directory called "Bands" inside with the entire contents of the disk divided in ~8mb chunks, numbered by hex. (although some chunks maybe smaller or missing entirely)
There's a small file (122kb) inside the .sparsebundle called "token" which appears to be the header part, starting with "encrcdsa". (An unencrypted .sparsebundle will have a token file with 0kb) Using dmg2john on "token" will return an error due to the following:
When I used cat to join "token" with /Bands/0 (or even all the bands) dmg2john produced a hash file, but again john didn't output the password.
@kholia commented on GitHub (Aug 29, 2013):
@alienjizz are .sparseimage and .sparsebundle formats "popular" enough?
I will take a look (at some point) but @gat3way might be faster at it.
@magnumripper does this look like something you would be interested in?
@gat3way commented on GitHub (Aug 29, 2013):
I think the only thing that needs to be done for that format are the
heuristic checks in the dmg, the ones that we perform for dmg apparently do
not work for sparseimage. Other than this, everything should be the same
for both dmg and sparseimage. Some sample sparseimages would be needed to
validate. I spent some time on that a while ago but then a higher priority
stuff came so I left it unfinished. It should be pretty straightforward to
deal with once you got enough samples I believe.
Regards,
Milen.
On Thu, Aug 29, 2013 at 1:12 PM, Dhiru Kholia notifications@github.comwrote:
@magnumripper commented on GitHub (Aug 29, 2013):
On 29 Aug, 2013, at 12:12 , Dhiru Kholia notifications@github.com wrote:
I don't think so. I had not even heard of it until now.
@kholia commented on GitHub (Aug 29, 2013):
@magnumripper I now know why you are so busy and non-attentive these days!
Stop focussing on your ice-cream business and write code ;)
@magnumripper commented on GitHub (Aug 29, 2013):
Oh, but the ice cream biz is so much cooler (lulz I kill me)
@alienjax commented on GitHub (Aug 29, 2013):
@kholia It's hard to judge what's popular "enough", Sparse Bundle was introduced in OSX Leopard, it has the sparse capability (to grow as needed) and is divided in chunks. It's used by "Time Machine" - which can use encryption, and by FileVault (up until Lion). The internet is full of requests for help with .sparsebundle disk images by people using these features.
Disk Utility has a "sparse bundle disk image" option when creating disk images, it looks and behaves like a plain DMG disk image, and afaik uses the same encryption technique, as evident by the "token" file starting with "encrcdsa".
As a matter of fact I believe the samples you have up at https://github.com/kholia/VileFault/tree/master/tests are the same as a .sparsebundle created by Disk Utility. (the first four files)
@magnumripper commented on GitHub (Aug 30, 2013):
Aha, so we have samples. Maybe I'll have a look at it.
So what is the difference between sparse image and sparse bundle?
@magnumripper commented on GitHub (Aug 30, 2013):
OK, re-reading all the above I think I get it:
@kholia commented on GitHub (Aug 31, 2013):
I am committing new disk images to https://github.com/kholia/moar-apple-disk-images.
Let me know if you guys need something specific.
At some point, I will merge these images into VileFault repository.
@alienjax commented on GitHub (Sep 2, 2013):
I fiddled around a bit more with the various file types, and have some files that I can upload to help with the process. If you tell me how/where to upload them I will gladly do so.
A re-joined unencrypted bundle (.sparsebundle/bands/<0...ff> topped off by .sparsebundle/token) is apparently identical to a .dmg file and is mounted by the system without a hitch. Encrypted, the system will authenticate the disk image correctly but gives a "Not Recognized" error. The following is from the log:
Joining .sparsebundle/bands/... while leaving token in place didn't give any errors, it mounted normally.
In many aspects a sparse seems more different than the other two.
@magnumripper commented on GitHub (Sep 2, 2013):
If they are not too large they can be uploaded to http://openwall.info/wiki/john/sample-non-hashes#Apple-DMG-files
@alienjax commented on GitHub (Sep 2, 2013):
@magnumripper Thanks! The information has been added.
Sample files are here https://github.com/alienjizz/UDIF
@alienjax commented on GitHub (Sep 4, 2013):
Got it figured out! The bundle is missing the "datasize" int64 at decimal byte 56 in the token file, and can be easily extrapolated by "dataoffset". The data chunks needed for scrapping are located in .sparsebundle/bands/0, and can be located by:
afaik with a .sparsebundle it's always 8388608 for the file size and 122368 for offset.
(variable names taken from dmg2john.py)
@magnumripper commented on GitHub (Sep 4, 2013):
Excellent! If you produce any code I'll be happy to accept a pull request.
@mledford commented on GitHub (Oct 9, 2013):
I have a sparseimage I am trying to work with but john won't recognize the output from dmg2john. Doing some detective work got me here. It seems that a sparseimage is different enough that it won't work. What is the status for this support? Is there anything I can do to lend a hand in getting it working?
@kholia commented on GitHub (Oct 9, 2013):
@mledford if you can convince @magnumripper to stop killing me over the valid() stuff, I can try to add this support this coming weekend.
@mledford let me warn you that @magnumripper is hard to please.
@magnumripper commented on GitHub (Oct 9, 2013):
LOL, I rather see you spend time on DMG before any hardening, any day of the week. The valid safety demands ultimately comes from Solar - I'm just trying to help! BTW I fixed some of my own formats now too, I'm not that much better than you (it's easier for me cause I wrote like five formats and you wrote more like 500).
@mledford commented on GitHub (Oct 9, 2013):
Great!
In doing some more research I found the following: http://nah6.com/~itsme/cvs-xdadevtools/iphone/tools/dumpencrdsa.pl
I haven't had a chance to use it yet but it looks like it might fill in some holes in your header. For example my sparseimage has the value 0x02 for the keycount and keys field documented at the end of that linked file. Furthermore, when I run:
for the sparseimage I'm working with it returns:
Hopefully this is helpful.
Also, let me know if this is the proper place to continue talking about this or if it should be moved elsewhere.
@mledford commented on GitHub (Oct 10, 2013):
I have solved part of the problem by modifying dmg2john to be able to handle multiple keys. In my particular sparseimage I have two keys—a password and a private key. Using the aforementioned perl script as my guide I have been able to modify part of dmg2john to search for and use the first password header that is found. For the sparseimage I am working with I am now at the same point I believe you were mentioning earlier in the thread. I'll clean up the code and provide a pull request if you are interested.
@kholia commented on GitHub (Oct 11, 2013):
@mledford
That would be great. Please go ahead.
@mledford commented on GitHub (Oct 11, 2013):
@kholia
Good news! I made some additional changes that should allow encrypted sparseimage files to be recognized. It works on some test sparseimage files I created and even better I was able to recover the password on the sparseimage file I've been working with! I'll clean up the code to, hopefully, make it more acceptable and send the pull request.
@kholia commented on GitHub (Oct 11, 2013):
@mledford
Awesome. I am waiting for it :-)
@mledford commented on GitHub (Oct 11, 2013):
@kholia
Pull request submitted. https://github.com/magnumripper/JohnTheRipper/pull/390
@magnumripper commented on GitHub (Jan 9, 2014):
Edited OP to be a Task List
@kholia commented on GitHub (Jan 8, 2015):
BitLocker stuff is in progress now (https://github.com/kholia/libbde).
@stephanschielke commented on GitHub (Jan 20, 2016):
Voting for BestCrypt (.jbc) container.
@kholia commented on GitHub (Jan 20, 2016):
https://www.jetico.com/linux/BestCrypt-2.0.10.tar.gz (has source code which is great).
Updated package is available at https://www.jetico.com/linux/BestCrypt-3.0.tar.gz.
https://www.jetico.com/bdk.zip (BestCrypt Development Kit) also seems useful.
Local copy of BestCrypt-3.0.0.tar.gz.
@kholia commented on GitHub (Feb 28, 2017):
https://www.symantec.com/connect/downloads/symantec-pgp-desktop-peer-review-source-code might be helpful for attacking PGP WDE.
@kholia commented on GitHub (Mar 11, 2017):
PR https://github.com/magnumripper/JohnTheRipper/pull/2448 adds support for Jetico BestCrypt.
@kholia commented on GitHub (Mar 15, 2017):
@stephanschielke
JtR jumbo (this repository) now supports cracking password protected Jetico BestCrypt containers (.jbc). Can you give it a try, and provide some feedback? Thanks.
@kholia commented on GitHub (Mar 20, 2017):
Removed
Revelation Password Managerfrom the list. It hasn't been updated in years, and no one seems to care about it.@kholia commented on GitHub (Mar 20, 2017):
Writing a format for
The Bat!requires significant reverse engineering effort.The Bat!changes its "KDF" quite frequently. Also, non one seems to care about it. I am removing it from this wishlist.@kholia commented on GitHub (Mar 20, 2017):
MS Money (2003 to 2007)is a dead product and no one seems to care about it. I am removing it from this wishlist.@kholia commented on GitHub (Mar 20, 2017):
Moved
PGP WDE, KeePass GPU, SSH GPU, PFX GPU items to new issues.Moved
Quicken (2008 to 2012, Google "Quicken Password Removal Tool")to a new issue.@kholia commented on GitHub (Jul 1, 2017):
MS Money support can be added with help from following projects.
http://jackcessencrypt.sourceforge.net/
http://jackcess.sourceforge.net/
@kholia commented on GitHub (Aug 16, 2017):
http://jessekornblum.com/presentations/dodcc09.pdf is a good read for BitLocker stuff.