Date: Wed, 30 Jan 2013 01:32:14 +0200 From: Milen Rangelov <gat3way@...il.com> To: john-dev@...ts.openwall.com Subject: Re: dmg2john I think you should declare an uint64, do the calculations, then pass it to print_hex. Also long is not long long, result would likely not be what you expected. On Wed, Jan 30, 2013 at 12:42 AM, magnum <john.magnum@...hmail.com> wrote: > On 29 Jan, 2013, at 23:15 , magnum <john.magnum@...hmail.com> wrote: > > On 29 Jan, 2013, at 22:37 , magnum <john.magnum@...hmail.com> wrote: > > On 29 Jan, 2013, at 2:04 , Solar Designer <solar@...nwall.com> wrote: > >>> On Tue, Jan 29, 2013 at 01:28:57AM +0400, Solar Designer wrote: > >>> I chose to post a different patch in response to Jeremiah's message on > >>> john-users. That's because there's also a printf format string that > >>> uses "%d", and cno and data_size are also of type int in > dmg_fmt_plug.c. > >>> > >>> The patch that I posted should be good for up to 8 TB. > >> > > > > I sent a patch to Jeremiah for trying out. It just adds this (to be used > with Solar's patch as well): > > > > @@ -161,7 +161,7 @@ static void hash_plugin_parse_hash(char *filename) > > printf("*%d*", header2.encrypted_keyblob_size); > > print_hex(header2.encrypted_keyblob, > header2.encrypted_keyblob_size); > > printf("*%d*%d*", cno, data_size); > > - print_hex(chunk + cno * 4096, data_size); > > + print_hex(chunk + (long)cno * 4096, data_size); > > printf("*1*"); > > print_hex(chunk, 4096); > > printf("\n"); > > > > This works for me, except the output is mostly zeros and John can't > crack it. Maybe that is the other bug mentioned that I see now? > > Unfortunately he got the same mostly zero output with the real file. I > give up here. > > magnum > Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.