How To Install sqlninja on Fedora 34

sqlninja is A tool for SQL server injection and takeover

Introduction

In this tutorial we learn how to install sqlninja on Fedora 34.

What is sqlninja

Sqlninja is a tool targeted to exploit SQL Injection vulnerabilities on a web application that uses Microsoft SQL Server as its back-end. Its main goal is to provide remote access to vulnerable DB server.

We can use yum or dnf to install sqlninja on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install sqlninja.

Install sqlninja on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install sqlninja

Install sqlninja on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install sqlninja

How To Uninstall sqlninja on Fedora 34

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

sudo dnf remove sqlninja

sqlninja Package Contents on Fedora 34

/usr/sbin/sqlninja
/usr/share/doc/sqlninja
/usr/share/doc/sqlninja/ChangeLog
/usr/share/doc/sqlninja/LICENSE
/usr/share/doc/sqlninja/README
/usr/share/doc/sqlninja/README.fedora
/usr/share/doc/sqlninja/sqlninja-howto.html
/usr/share/doc/sqlninja/sqlninja.conf
/usr/share/sqlninja
/usr/share/sqlninja/backscan.pl
/usr/share/sqlninja/bruteforce.pl
/usr/share/sqlninja/dirshell.pl
/usr/share/sqlninja/dns.pl
/usr/share/sqlninja/escalation.pl
/usr/share/sqlninja/fingerprint.pl
/usr/share/sqlninja/getdata.pl
/usr/share/sqlninja/getdata_dns.pl
/usr/share/sqlninja/getdata_time.pl
/usr/share/sqlninja/icmp.pl
/usr/share/sqlninja/langs
/usr/share/sqlninja/langs/de.map
/usr/share/sqlninja/langs/empty.map
/usr/share/sqlninja/langs/en.map
/usr/share/sqlninja/langs/es.map
/usr/share/sqlninja/langs/fr.map
/usr/share/sqlninja/langs/it.map
/usr/share/sqlninja/langs/pt.map
/usr/share/sqlninja/metasploit.pl
/usr/share/sqlninja/resurrectxp.pl
/usr/share/sqlninja/revshell.pl
/usr/share/sqlninja/session.pl
/usr/share/sqlninja/sqlcmd.pl
/usr/share/sqlninja/test.pl
/usr/share/sqlninja/upload.pl
/usr/share/sqlninja/utils.pl

References

Summary

In this tutorial we learn how to install sqlninja on Fedora 34 using yum and dnf.