No impacket.examples.mssqlshell

so, i wanna install impacket and it works, but when i trying to run i got this error. what should i do?

Traceback (most recent call last):
File “/home/phyn/impacket/examples/”, line 25, in
from impacket.examples.mssqlshell import SQLSHELL
ModuleNotFoundError: No module named ‘impacket.examples.mssqlshell’

1 Like

Hi, probably it’s because of the PATH. Maybe your user and root do not use the same python interpreter. You can probably run it by executing like this python3 home/phyn/impacket/examples/

The cleanest way is to reinstall maybe impacket from scratch. Grab the latest.

git clone
sudo pip3 install .

Or you can even check the requirements. python3 -m pip install -r requirements.txt


I have the same issue. Could you please tell me how to solve it? Above sulution did not help me.