Python Impacket Error
by Zeroxx - November 18, 2019 at 12:25 AM
#1
I've just installed Impacket on my Kali VM and it doesn't seem to be able to run at all. I'm using it for crackmapexec but neither work for some odd reason. I've already searched through the issues on the GitHub of the author, but none of the fixes are actually fixing anything for me. So I'm at a loss right now, any help would be appreciated.

This is specifically what I'm seeing when I try to run 'lookupsid':

Traceback (most recent call last):
  File "lookupsid.py", line 24, in <module>
    from impacket.dcerpc.v5 import transport, lsat, lsad
  File "/usr/lib/python2.7/dist-packages/impacket/dcerpc/v5/transport.py", line 18, in <module>
    from impacket.smbconnection import smb, SMBConnection
  File "/usr/lib/python2.7/dist-packages/impacket/smbconnection.py", line 20, in <module>
    from impacket import smb, smb3, nmb, nt_errors, LOG
  File "/usr/lib/python2.7/dist-packages/impacket/smb.py", line 49, in <module>
    from pyasn1.type.univ import noValue
ImportError: cannot import name noValue


And this is what I'm seeing when I try to run 'crackmapexec':

Traceback (most recent call last):
  File "/usr/bin/crackmapexec", line 11, in <module>
    load_entry_point('crackmapexec==3.1.5', 'console_scripts', 'crackmapexec')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/dist-packages/cme/crackmapexec.py", line 10, in <module>
    from cme.connection import Connection
  File "/usr/lib/python2.7/dist-packages/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cme/connection.py", line 8, in <module>
    from impacket.smbconnection import SMBConnection, SessionError
  File "/usr/lib/python2.7/dist-packages/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/impacket/smbconnection.py", line 20, in <module>
    from impacket import smb, smb3, nmb, nt_errors, LOG
  File "/usr/lib/python2.7/dist-packages/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/impacket/smb.py", line 49, in <module>
    from pyasn1.type.univ import noValue
ImportError: cannot import name noValue
Reply
#2
I suggest to you to use pipenv when using some tools like that with too much dependencies.
Reply

Possibly Related Threads…
Thread Author Replies Views Last Post
{help} Canvas 7.26 Ubuntu 18.04 error when running henadarr 0 429 July 10, 2021 at 06:06 AM
Last Post: henadarr
Acunetix 13 error adding targets ! xeons 10 718 November 29, 2020 at 01:13 PM
Last Post: xeons
[NEED HELP] RDP ERROR BLACK SCREEN AND CURSOR badass_kid 3 557 July 28, 2020 at 01:35 PM
Last Post: badass_kid

 Users browsing this thread: 1 Guest(s)