FS#61617 - [impacket] 0.9.18-1 import error cryptodome

Attached to Project: Community Packages
Opened by Jean Razack (Razack) - Sunday, 03 February 2019, 18:15 GMT
Last edited by Toolybird (Toolybird) - Thursday, 20 April 2023, 22:23 GMT
Task Type Bug Report
Category Packages
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 0
Private No

Details

Description:

by execute application (in my case smbmap) depencens on impacket got a error somethin like "from Cryptodome.Crypto import ... ImportError: No module named Cryptodome"


Additional info:
impacket 0.9.18-1
python2-pycryptodome 3.7.3-1

Steps to reproduce:
execute any script that use impacket, psexecec.py

fix:

rename all imports in impacket from "Cryptodome" to "Crypto"
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 20 April 2023, 22:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  impacket 0.9.20-1
Comment by Eduard Toloza (edu4rdshl) - Wednesday, 15 May 2019, 03:35 GMT
That isn't the right fix, the right fix is just changing the python2-crypto dependency (that actually install python2-pycryptodome and isn't needed) to python2-pycryptodomex (https://github.com/SecureAuthCorp/impacket/blob/master/requirements.txt#L4.

Razack, JFYI: if you want you can use the smbmap package from BlackArch that's fixed.

I adjunt the patch with the package bumped to latest version also.

Loading...