FS#69545 - [john] python 3.9 - deprecated decodestring method was removed from base64 module

Attached to Project: Community Packages
Opened by Alexandre ZANNI (noraj) - Friday, 05 February 2021, 14:26 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 02 September 2023, 14:40 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:


Additional info:
* package version(s) 1.9.0.jumbo1-5
* link to upstream bug report: https://github.com/openwall/john/issues/4564

Workaround to add in prepare():

sed 's/decodestring/decodebytes/' ""${srcdir}/run/ssh2john.py"

Step to reproduce:

$ ssh2john ~/.ssh/id_rsa
Traceback (most recent call last):
File "/usr/bin/ssh2john", line 193, in <module>
read_private_key(filename)
File "/usr/bin/ssh2john", line 103, in read_private_key
data = base64.decodestring(data)
AttributeError: module 'base64' has no attribute 'decodestring'

More details in upstream bug report.
This task depends upon

Closed by  Jelle van der Waa (jelly)
Saturday, 02 September 2023, 14:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.9.0.jumbo1-9
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...