 |
| A screenshot from the SQLmap official website |
In the previous tutorial, we hacked a website using nothing but a simple
browser on a Windows machine. It was a pretty clumsy method to say the
least. However, knowing the basics is necessary before we move on to the
advanced tools. In this tutorial, we'll be using Kali Linux (see the
top navigation bar to find how to install it if you haven't already) and
SqlMap (which comes preinstalled in Kali) to automate what we manually
did in the Manual SQL Injection tutorial to hack websites.
Now it is recommended that you go through the above tutorial once so
that you can get an idea about how to find vulnerable sites. In this
tutorial we'll skip the first few steps in which we find out whether a
website is vulnerable or not, as we already know from the previous
tutorial that
this website is vulnerable.
Kali Linux
First off, you need to have Kali linux (or backtrack) up and running on
your machine. Any other Linux distro might work, but you'll need to
install Sqlmap on your own. Now if you don't have Kali Linux installed,
you might want to go to this page, which will get you started on Beginner Hacking Using Kali Linux
Sqlmap
Basically its just a tool to make Sql Injection easier. Their
official website introduces
the tool as -"sqlmap is an open source penetration testing tool that
automates the process of detecting and exploiting SQL injection flaws
and taking over of database servers. It comes with a powerful detection
engine, many niche features for the ultimate penetration tester and a
broad range of switches lasting from database fingerprinting, over data
fetching from the database, to accessing the underlying file system and
executing commands on the operating system via out-of-band connections."
A lot of features can be found on the
SqlMap
website, the most important being - "Full support for MySQL, Oracle,
PostgreSQL, Microsoft SQL Server, Microsoft Access, IBM DB2, SQLite,
Firebird, Sybase and SAP MaxDB database management systems." That's
basically all the database management systems. Most of the time you'll
never come across anything other than MySql.
Hacking Websites Using Sqlmap in Kali linux