Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 8 Aug 2012 14:03:47 +0530
From: Dhiru Kholia <dhiru.kholia@...il.com>
To: john-users@...ts.openwall.com
Subject: Re: Cracking Word files?

On Wed, Aug 8, 2012 at 5:07 AM, Solar Designer <solar@...nwall.com> wrote:
> On Tue, Aug 07, 2012 at 03:00:14AM +0200, Paul van Hoven wrote:
>> A small hint: I had to replace mktemp by mkdtemp in office2john.c in
>> order to get the file compiled.
>
> What error were you getting when trying to compile the original code?
> (I am aware that some systems now print deprecation warnings or even
> errors about mktemp(), but I thought Ubuntu was not one of those where
> mktemp() was treated as a fatal error.)

office2john.c works fine on CentOS 6.2 and Arch Linux without any changes.

Please post the errors you got when compiling under Ubuntu.

>> parallels@...ntu:~/Downloads/magnumripper-magnum-jumbo-47a6d4e/run$
>> ./office2john /media/psf/Home/Downloads/TestEncrypted.docx

I could successfully crack this file with JtR. No problems.

>> /media/psf/Home/Downloads/TestEncrypted.docx : office2johntNuMqb: File exists
> I think this is a consequence of your source code change above - perhaps
> your code, with the change, tries to create the directory twice.

I too think so.

> Dhiru - I think it'd be best to write cleaner C code rather than rewrite
> this in Python (as you said you were going to), unless you have a
> specific reason for that rewrite (e.g., some needed library only easily
> available from Python).

I could not figure out how to use libxml without giving it a file name
to operate on. Python libraries are easier to use and using them won't
involve dirty hacks.

-- 
Cheers,
Dhiru

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.