Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150721210658.GA10327@openwall.com>
Date: Wed, 22 Jul 2015 00:06:59 +0300
From: Aleksey Cherepanov <lyosha@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: syntax error in 7z2john

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.

Thanks!

-- 
Regards,
Aleksey Cherepanov

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.