How to install mssqlclient.py in Kali Linux?

How to install mssqlclient in kali linux

Mssqlclient.py is one of the many scripts included in impacket repository, which is a collection of python classes to work with network protocols.

mssqlclient.py is an MSSQL client that supports SQL and Windows authentications and also, hashes! In addition to that, it also supports TLS.

Now let’s see how to install mssqlclient.py in Kali Linux step by step.

As I mentioned above, mssqlclient.py is one of the many scripts of impacket repository. So, we need to clone the repository in our system in order to use mssqlclient.py. And even before that, we need to check if python is installed in our system or not. (In most cases, python will be there in the system already.)

Install mssqlclient.py in Kali Linux

So, to install both version of python (just to be fail safe!) run following command as root:

pkg install python

pkg install python2

Clone impacket repository from git using following command.

git clone https://github.com/SecureAuthCorp/impacket

Now, run following command to change directory to impacket and to install requirements.txt

cd impacket

pip install -r requirements.txt

Just in case, if you run into some problem, run following commands.

pkg install pyhton2

pip2 install -r requirements.txt

Now, run following command.

python setup.py install

To access mssqlclient.py, run following command

cd examples

python mssqlclient.py

Now, here if you run into problem, then go back one directory and run setup.py with pyhton2. (In short, run following commands!)

cd ..

python2 setup.py install

Now, again go to examples directory to access mssqlclient.py. (Again, just run following commands.)

cd examples

python2 mssqlclient.py

That’s all! You have successfully installed impacket module and accessed mssqlclient.py. Enjoy!

If you found this article helpful. Please share it with other tech-savvies. It’ll help me to grow and will motivate to help more and more!

If you are facing any trouble, feel free discuss your issue in comment seciton. I will be happy to help you!

Stay safe.

Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *