Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANWtx00CcvHA-TD_p=12y-eFMskfpc=T-B_YwK3qGN76fU4Lcg@mail.gmail.com>
Date: Wed, 6 Feb 2013 13:59:20 -0500
From: Rich Rumble <richrumble@...il.com>
To: john-dev@...ts.openwall.com
Subject: python *2john scripts

I've just tried both bleeding and the jumbo-7, and I get the following
error on odt2john.py

I'm using python 2.6

$ python odf2john.py Libre-Default_myhovercraftisfullofeels_.odt
Traceback (most recent call last):
  File "odf2john.py", line 104, in <module>
    process_file(sys.argv[i])
  File "odf2john.py", line 32, in process_file
    elements = list(r.iter())
AttributeError: _ElementInterface instance has no attribute 'iter'

I've used Cygwin's python and ActiveStates's with the same results for ODF.

For pdf2john I'm not sure why my cygwin python works but my
activestate one gives this error (separate machines btw):

Traceback (most recent call last):
  File "pdf2john.py", line 162, in <module>
    parser.parse()
  File "pdf2john.py", line 18, in parse
    trailer = self.get_trailer()
  File "pdf2john.py", line 108, in get_trailer
    raise "Can't find trailer"
TypeError: exceptions must be old-style classes or derived from
BaseException, not str

Office2John.py works for me against the samples from the wiki:
http://openwall.info/wiki/john/sample-non-hashes
-rich

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.