Traceback (most recent call last):
File “mssqlclient.py”, line 24, in
from impacket.examples import logger
ImportError: No module named impacket.examples
Install impacket by cloning the git repository
I have python3 installed I hope you can help me.
I had the same problem.
Run this command to verify your python version
Once you find that out lets get rid of the files that were made when you pip installed so that we can redo it.
For python 2.7: rm -rf /usr/local/lib/python2.7/dist-packages/impacket*
For python 3(replace x once you find the version): rm -rf /usr/local/lib/python3.x/dist-packages/impacket*
Great you’re all cleaned up. Now, get rid of your impacket directory
sudo rm -rf impacket
Now we reinstall impacket with git clone.
git clone GitHub - SecureAuthCorp/impacket: Impacket is a collection of Python classes for working with netw
Go into your impacket directory: cd /pathto/impacket
NOW THIS IS VERY IMPORTANT:
For python3 type: sudo pip3 install .
DO NOT FORGET THE PERIOD AT THE END.
For python 2.xx type: sudo pip install .
Then you should be able to use the tool as implied with no problems. I hope this helps!