How To Install sqlninja on Kali Linux

In this tutorial we learn how to install sqlninja on Kali Linux. sqlninja is SQL server injection and takeover tool

Introduction

In this tutorial we learn how to install sqlninja on Kali Linux.

What is sqlninja

sqlninja is:

Fancy going from a SQL Injection on Microsoft SQL Server to a full GUI access on the DB? Take a few new SQL Injection tricks, add a couple of remote shots in the registry to disable Data Execution Prevention, mix with a little Perl that automatically generates a debug script, put all this in a shaker with a Metasploit wrapper, shake well and you have just one of the attack modules of sqlninja!

There are three methods to install sqlninja on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install sqlninja Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install sqlninja using apt-get by running the following command:

sudo apt-get -y install sqlninja

Install sqlninja Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install sqlninja using apt by running the following command:

sudo apt -y install sqlninja

Install sqlninja Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install sqlninja using aptitude by running the following command:

sudo aptitude -y install sqlninja

How To Uninstall sqlninja on Kali Linux

To uninstall only the sqlninja package we can use the following command:

sudo apt-get remove sqlninja

Uninstall sqlninja And Its Dependencies

To uninstall sqlninja and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove sqlninja

Remove sqlninja Configurations and Data

To remove sqlninja configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge sqlninja

Remove sqlninja configuration, data, and all of its dependencies

We can use the following command to remove sqlninja configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge sqlninja

Dependencies

sqlninja have the following dependencies:

References

Summary

In this tutorial we learn how to install sqlninja package on Kali Linux using different package management tools: apt, apt-get and aptitude.