Closed ThePirateWhoSmellsOfSunflowers closed 6 years ago
Hey @ThePirateWhoSmellsOfSunflowers ... I had that error when trying to use pycryptodome
that writes over Crypto.Cipher
package.
Can you check that pycryptodome
is not installed there?
Also, please output
Crypto.__doc__
Crypto.__version__
Crypto.Cipher.__doc__
Yes, good catch!
After pip uninstall pycryptodome
, everything is working fine.
With pycryptodome :
>>> import Crypto
>>> Crypto.__doc__
>>> Crypto.__version__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute '__version__'
>>> Crypto.Cipher.__doc__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Cipher'
Without :
>>> import Crypto
>>> Crypto.__doc__
'Python Cryptography Toolkit\n\nA collection of cryptographic modules implementing various algorithms\nand protocols.\n\nSubpackages:\n\nCrypto.Cipher\n Secret-key (AES, DES, ARC4) and public-key encryption (RSA PKCS#1) algorithms\nCrypto.Hash\n Hashing algorithms (MD5, SHA, HMAC)\nCrypto.Protocol\n Cryptographic protocols (Chaffing, all-or-nothing transform, key derivation\n functions). This package does not contain any network protocols.\nCrypto.PublicKey\n Public-key encryption and signature algorithms (RSA, DSA)\nCrypto.Signature\n Public-key signature algorithms (RSA PKCS#1) \nCrypto.Util\n Various useful modules and functions (long-to-string conversion, random number\n generation, number theoretic functions)\n'
>>> Crypto.__version__
'2.6.1'
>>> Crypto.Cipher.__doc__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Cipher'
Now I have to figure out why I have this package installed :smiley:. Thanks again!
:sunflower:
Good to know @ThePirateWhoSmellsOfSunflowers!
Closing this one.
Hi @asolino!
An error is raised when I use impacket on Debian 9.2 fully patched (but not on Kali). The error seems to be raised by the pycrypto lib. Thanks !
:sunflower:
Versions
Both impacket's versions are from a fresh git clone
Debian
Kali
Stack traces (Debian)