Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 21 Jul 2015 23:12:32 +0200
From: magnum <john.magnum@...hmail.com>
To: john-users@...ts.openwall.com
Subject: Re: syntax error in 7z2john

On 2015-07-21 23:06, Aleksey Cherepanov wrote:
> On Tue, Jul 21, 2015 at 02:50:01PM -0600, Matthew Smith wrote:
>> I am trying to get into a 7zip file I lost the password for.
>>
>> I originally downloaded and tried * John the Ripper 1.7.9-jumbo-5 (Windows
>> binaries, ZIP, 3845 KB)*, got the syntax error, and tried an earlier
>> version, and got the same error.
>>
>> I know nothing of python(I code another language) and I'm not sure what to
>> do.  I would really like to get this working.  Is there any workaround or
>> something I can do?
>>
>> Here's the error, found in :
>>
>> C:\john\run>7z2john myfile.7z
>>    File "C:\john\run\7z2john.py", line 786
>>      print "%s:$7z$0$%s$%s$%s$%s$%s$%s$%s$%s$%s" % (fname,
>>
>> SyntaxError: invalid syntax
>
> It seems that you use python3. Please try python2.

Even if that fixes the Python problem, you will end up with an *ancient* 
version of 7z format. IIRC it was almost useless, with false positives 
and stuff. Please try latest (should be topmost) 1.8.x jumbo from 
http://openwall.info/wiki/john/custom-builds instead - it will handle 
newer Python too.

magnum


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.